[package] update libsigc++ to 2.2.3, do not build docs and tests
[openwrt/svn-archive/archive.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:=1
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:=+uclibcxx
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 CONFIGURE_ARGS += \
40 --enable-shared \
41 --enable-static \
42
43 CONFIGURE_VARS += \
44 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
45 CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
46 LDFLAGS="$$$$LDFLAGS" \
47 LIBS="-nodefaultlibs -luClibc++ -lm -lgcc" \
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
61 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libsigcxx/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libsigcxx))
71