lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1637B)


      1 #
      2 # Copyright (C) 2006-2015 OpenWrt.org
      3 #
      4 # This is free software, licensed under the GNU General Public License v2.
      5 # See /LICENSE for more information.
      6 #
      7 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=libsigc++
     11 PKG_VERSION:=2.5.4
     12 PKG_RELEASE:=1
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
     15 PKG_SOURCE_URL:=@GNOME/libsigc++/2.5
     16 PKG_MD5SUM:=0b74492da5f640ab69888a984c6520d7
     17 PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
     18 PKG_LICENSE:=LGPL-2.1
     19 
     20 PKG_FIXUP:=autoreconf
     21 PKG_INSTALL:=1
     22 
     23 include $(INCLUDE_DIR)/package.mk
     24 
     25 define Package/libsigcxx
     26   SECTION:=libs
     27   CATEGORY:=Libraries
     28   TITLE:=typesafe callback system for standard C++
     29   URL:=http://libsigc.sourceforge.net/
     30   DEPENDS:=+libstdcpp
     31 endef
     32 
     33 define Package/libsigcxx/description
     34  It allows you to define signals and to connect those signals to any
     35  callback function, either global or a member function, regardless of
     36  whether it is static or virtual.
     37 endef
     38 
     39 TARGET_CFLAGS += $(FPIC)
     40 
     41 TARGET_CPPFLAGS +=  \
     42 	-fno-strict-aliasing -fno-inline \
     43 
     44 CONFIGURE_ARGS += \
     45 	--enable-shared \
     46 	--enable-static \
     47 
     48 define Build/InstallDev
     49 	$(INSTALL_DIR) $(1)/usr/include
     50 	$(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
     51 	$(INSTALL_DIR) $(1)/usr/lib
     52 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
     53 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
     54 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     55 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
     56 endef
     57 
     58 define Package/libsigcxx/install
     59 	$(INSTALL_DIR) $(1)/usr/lib
     60 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
     61 endef
     62 
     63 $(eval $(call BuildPackage,libsigcxx))