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.

62 lines
1.6 KiB

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