43d8706ee04542ec867b127c8958823335e6ab7f
[packages.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.2.3
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/
17 PKG_MD5SUM:=f4574b343eebc4bff66a9e1e5ce6e490
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 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/Compile
47         $(MAKE) -C $(PKG_BUILD_DIR) \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
49                 all install
50 endef
51
52 define Build/InstallDev
53         $(INSTALL_DIR) $(1)/usr/include
54         $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
55         $(INSTALL_DIR) $(1)/usr/lib
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
57         $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
58         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libsigcxx/install
63         $(INSTALL_DIR) $(1)/usr/lib
64         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libsigcxx))
68