[packages] libiconv-full: autoreconf is broken with this package, use patch-libtool...
[openwrt/svn-archive/archive.git] / libs / libsigc++ / Makefile
1 #
2 # Copyright (C) 2006-2012 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.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/libsigc++/2.2
16 PKG_MD5SUM:=73419b477f3bb9ddb9905c88a92f4b4c
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
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 TARGET_CFLAGS += $(FPIC)
38
39 TARGET_CPPFLAGS += \
40 -fno-strict-aliasing -fno-inline \
41
42 CONFIGURE_ARGS += \
43 --enable-shared \
44 --enable-static \
45
46 define Build/InstallDev
47 $(INSTALL_DIR) $(1)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
52 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
54 endef
55
56 define Package/libsigcxx/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,libsigcxx))