/trunk/package/built/golded/Makefile

https://gitlab.com/BGCX262/zyxel-keenetic-packages-svn-to-git · Makefile · 45 lines · 31 code · 11 blank · 3 comment · 0 complexity · 11b256242855552e64ea0c43fd73ae19 MD5 · raw file

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=golded
  6. PKG_VERSION:=115-20110223
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=gps$(PKG_VERSION).tar.bz2
  9. PKG_SOURCE_URL:=@SF/golded-plus/Golded%2B%201.1.5%20snapshots
  10. PKG_MD5SUM:=6a1d63e7a39ced6e9907e2c8b8e1e666
  11. include $(INCLUDE_DIR)/package.mk
  12. PKG_UNPACK:=bzip2 -c -d $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xf -
  13. define Package/golded
  14. TITLE:=Fidonet Mail Reader/Editor
  15. SECTION:=utilities
  16. CATEGORY:=Utilities
  17. URL:=http://sourceforge.net/projects/golded-plus
  18. DEPENDS:=+libncursesw +libstdcpp
  19. endef
  20. define Build/Prepare
  21. $(call Build/Prepare/Default)
  22. $(CP) $(PKG_BUILD_DIR)/golded3/mygolded.__h $(PKG_BUILD_DIR)/golded3/mygolded.h
  23. endef
  24. define Package/golded/description
  25. This is a successor of the well-known GoldED Fidonet Mail Reader/Editor.
  26. endef
  27. MAKE_FLAGS+=WIDE_NCURSES=1 PLATFORM=lnx
  28. MAKE_VARS+=LNKFLAGS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib"
  29. TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/ncursesw
  30. define Package/golded/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/{gedlnx,gnlnx,golded,rddtlnx} $(1)/usr/bin/
  33. endef
  34. $(eval $(call BuildPackage,golded))