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.

73 lines
1.5 KiB

11 years ago
  1. #
  2. # Copyright (C) 2010-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:=miniupnpc
  9. PKG_VERSION:=1.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://miniupnp.free.fr/files
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=5ef3ba321e6df72d6519b728b292073e
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/miniupnpc/Default
  18. TITLE:=Lightweight UPnP
  19. URL:=http://miniupnp.tuxfamily.org/
  20. endef
  21. define Package/miniupnpc
  22. $(call Package/miniupnpc/Default)
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Firewall
  26. TITLE+= client
  27. DEPENDS:=+libminiupnpc
  28. endef
  29. define Package/libminiupnpc
  30. $(call Package/miniupnpc/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. TITLE+= library
  34. endef
  35. TARGET_CFLAGS += $(FPIC)
  36. MAKE_FLAGS += \
  37. OS="Linux" \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/miniupnpc
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/miniupnpc/*.h \
  42. $(1)/usr/include/miniupnpc/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
  46. $(1)/usr/lib/
  47. endef
  48. define Package/miniupnpc/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upnpc $(1)/usr/bin/
  51. endef
  52. define Package/libminiupnpc/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(INSTALL_BIN) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libminiupnpc.so.* \
  56. $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,miniupnpc))
  59. $(eval $(call BuildPackage,libminiupnpc))