huge propset, fixes eol-style on everything and sets keywords and copyright on all...
[packages.git] / libs / libsigc++ / Makefile
1
2 # Copyright (C) 2006 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.0.17
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.0/
17 PKG_MD5SUM:=fde0ee69e3125e982746d9fe005763e1
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libsigcxx
26   NAME:=libsigc++
27   SECTION:=libs
28   CATEGORY:=Libraries
29   TITLE:=typesafe callback system for standard C++
30   DESCRIPTION:=\
31         It allows you to define signals and to connect those signals to any \\\
32         callback function, either global or a member function, regardless of \\\
33         whether it is static or virtual.
34   URL:=http://libsigc++.sourceforge.net
35 endef
36
37 define Build/Configure
38         $(call Build/Configure/Default)
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46
47 define Build/InstallDev
48         mkdir -p $(STAGING_DIR)/usr/include
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(STAGING_DIR)/usr/include/
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib/
51 endef
52
53 define Build/UninstallDev
54         rm -rf \
55                 $(STAGING_DIR)/usr/include/sigc++-2.0 \
56                 $(STAGING_DIR)/usr/lib/libsigc-2.0.* \
57                 $(STAGING_DIR)/usr/lib/sigc++-2.0
58                 
59 endef
60
61 define Package/libsigcxx/install
62         $(INSTALL_DIR) $(1)/usr/lib
63         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.* $(1)/usr/lib/
64         $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libsigcxx))