[package] update libIDL2 to 0.8.13 (#5924)
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsigc++
11 PKG_VERSION:=2.2.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/libsigc++/2.2
16 PKG_MD5SUM:=f4574b343eebc4bff66a9e1e5ce6e490
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libsigcxx
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=typesafe callback system for standard C++
26 URL:=http://libsigc++.sourceforge.net/
27 DEPENDS:=+libstdcpp
28 endef
29
30 define Package/libsigcxx/description
31 It allows you to define signals and to connect those signals to any
32 callback function, either global or a member function, regardless of
33 whether it is static or virtual.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 TARGET_CPPFLAGS += \
39 -fno-strict-aliasing -fno-inline \
40
41 CONFIGURE_ARGS += \
42 --enable-shared \
43 --enable-static \
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
57 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
59 endef
60
61 define Package/libsigcxx/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,libsigcxx))
67