clean up ossp-js makefile and fix avr32 compile
[openwrt/svn-archive/archive.git] / libs / libsigc++ / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libsigc++
12 PKG_VERSION:=2.0.18
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.0/
17 PKG_MD5SUM:=ddebf5aafc8525d10366a8724abc9f28
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libsigcxx
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=typesafe callback system for standard C++
27 URL:=http://libsigc++.sourceforge.net/
28 DEPENDS:=+libstdcpp
29 endef
30
31 define Package/libsigcxx/description
32 It allows you to define signals and to connect those signals to any
33 callback function, either global or a member function, regardless of
34 whether it is static or virtual.
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-shared \
39 --enable-static \
40
41 CONFIGURE_VARS += \
42 CXXFLAGS="$$$$CXXFLAGS -fno-rtti" \
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
56 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
58 endef
59
60 define Package/libsigcxx/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libsigcxx))
66