You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libsigc++
  9. PKG_VERSION:=2.5.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@GNOME/libsigc++/2.5
  13. PKG_MD5SUM:=0b74492da5f640ab69888a984c6520d7
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libsigcxx
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=typesafe callback system for standard C++
  23. URL:=http://libsigc.sourceforge.net/
  24. DEPENDS:=+libstdcpp
  25. endef
  26. define Package/libsigcxx/description
  27. It allows you to define signals and to connect those signals to any
  28. callback function, either global or a member function, regardless of
  29. whether it is static or virtual.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. TARGET_CPPFLAGS += \
  33. -fno-strict-aliasing -fno-inline \
  34. CONFIGURE_ARGS += \
  35. --enable-shared \
  36. --enable-static \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/sigc++-2.0 $(1)/usr/include/
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.{a,so*} $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/sigc++-2.0 $(1)/usr/lib/
  43. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sigc++-2.0.pc $(1)/usr/lib/pkgconfig/
  45. endef
  46. define Package/libsigcxx/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigc-2.0.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libsigcxx))