2007-01-08 15:35:02 +00:00
|
|
|
#
|
2008-05-03 02:30:04 +00:00
|
|
|
# Copyright (C) 2006-2008 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.
|
|
|
|
#
|
2007-03-04 04:19:46 +00:00
|
|
|
# $Id$
|
2007-01-08 15:35:02 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libsigc++
|
2009-01-18 13:27:56 +00:00
|
|
|
PKG_VERSION:=2.2.3
|
2009-04-03 09:11:36 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-01-08 15:35:02 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-01-18 13:27:56 +00:00
|
|
|
PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/
|
|
|
|
PKG_MD5SUM:=f4574b343eebc4bff66a9e1e5ce6e490
|
2007-01-08 15:35:02 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
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++
|
2007-09-22 16:04:11 +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
|
|
|
|
It allows you to define signals and to connect those signals to any
|
|
|
|
callback function, either global or a member function, regardless of
|
|
|
|
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/Compile
|
2008-05-03 02:30:04 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2007-01-08 15:35:02 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
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))
|
2007-09-22 16:04:11 +00:00
|
|
|
|