2010-12-17 04:33:19 +00:00
|
|
|
#
|
2010-03-21 07:54:43 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2007-01-08 15:35:02 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libsigc++
|
2010-12-17 04:33:19 +00:00
|
|
|
PKG_VERSION:=2.2.8
|
2010-05-02 13:09:22 +00:00
|
|
|
PKG_RELEASE:=1
|
2007-01-08 15:35:02 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-06-13 17:01:55 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/libsigc++/2.2
|
2010-12-17 04:33:19 +00:00
|
|
|
PKG_MD5SUM:=1198425eab9fd605721a278c651b8dd8
|
2007-01-08 15:35:02 +00:00
|
|
|
|
2010-12-17 04:33:19 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2007-01-08 15:35:02 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libsigcxx
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=typesafe callback system for standard C++
|
2010-03-21 07:54:43 +00:00
|
|
|
URL:=http://libsigc.sourceforge.net/
|
2009-04-03 09:11:36 +00:00
|
|
|
DEPENDS:=+libstdcpp
|
2007-01-08 15:35:02 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-22 16:04:11 +00:00
|
|
|
define Package/libsigcxx/description
|
2010-05-02 13:09:22 +00:00
|
|
|
It allows you to define signals and to connect those signals to any
|
|
|
|
callback function, either global or a member function, regardless of
|
2007-09-22 16:04:11 +00:00
|
|
|
whether it is static or virtual.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2009-04-03 09:11:36 +00:00
|
|
|
TARGET_CPPFLAGS += \
|
|
|
|
-fno-strict-aliasing -fno-inline \
|
|
|
|
|
2007-09-22 16:04:11 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
2007-01-08 15:35:02 +00:00
|
|
|
define Build/InstallDev
|
2008-05-03 02:30:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
|
2008-05-03 02:30:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
|
2008-05-03 02:30:04 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
|
2007-01-08 15:35:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libsigcxx/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-09-22 16:04:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
|
2007-01-08 15:35:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libsigcxx))
|