2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
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
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libsigcxx
26 TITLE:=typesafe callback system for standard C++
27 URL:=http://libsigc++.sourceforge.net/
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.
37 TARGET_CFLAGS += $(FPIC)
40 -fno-strict-aliasing -fno-inline \
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
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/
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/
67 $(eval $(call BuildPackage,libsigcxx))