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.

97 lines
2.6 KiB

  1. # Copyright (c) 2018 Thorsten Glaser <tg@mirbsd.org>
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=jupp
  7. PKG_VERSION:=3.1.40
  8. PKG_RELEASE:=1
  9. PKG_LICENSE:=GPL-1.0
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_libncurses
  14. PKG_SOURCE:=joe-$(basename ${PKG_VERSION})jupp$(subst .,,$(suffix ${PKG_VERSION})).tgz
  15. PKG_SOURCE_URL:=http://www.mirbsd.org/MirOS/dist/jupp/ \
  16. http://pub.allbsd.org/MirOS/dist/jupp/
  17. PKG_HASH:=4bed439cde7f2be294e96e49ef3e913ea90fbe5e914db888403e3a27e8035b1a
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/jupp/Default
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. SUBMENU:=Editors
  23. URL:=http://www.mirbsd.org/jupp.htm
  24. MAINTAINER:=Thorsten Glaser <tg@mirbsd.org>
  25. endef
  26. define Package/jupp
  27. $(call Package/jupp/Default)
  28. TITLE:=WordStar-inspired text editor
  29. DEPENDS:=+PACKAGE_libncurses:libncurses
  30. endef
  31. define Package/jupp/description
  32. jupp is a WordStar-inspired text and hex editor,
  33. for programmers and regular end users.
  34. endef
  35. define Package/jupp/chmod_plus_x
  36. # work around automagic check for +x
  37. chmod +x ${PKG_BUILD_DIR}/configure
  38. endef
  39. Hooks/Configure/Pre += Package/jupp/chmod_plus_x
  40. CONFIGURE_ARGS+= \
  41. --disable-selinux \
  42. --disable-termidx \
  43. --enable-sysconfjoesubdir=/jupp
  44. ifeq (,${CONFIG_PACKAGE_libncurses})
  45. CONFIGURE_ARGS+= \
  46. --disable-curses \
  47. --disable-termcap \
  48. --disable-terminfo
  49. endif
  50. define Package/jupp/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_BUILD_DIR)/joe $(1)/usr/bin/jupp
  53. endef
  54. define Package/jupp-data
  55. $(call Package/jupp/Default)
  56. TITLE:=jupp Emacs/JOE/Pico emulations, syntax highlighting
  57. PKGARCH:=all
  58. DEPENDS:=jupp
  59. CONFLICTS:=joe
  60. endef
  61. define Package/jupp-data/install
  62. $(INSTALL_DIR) $(1)/etc/jupp
  63. $(INSTALL_CONF) $(PKG_BUILD_DIR)/jmacsrc $(1)/etc/jupp/
  64. $(INSTALL_CONF) $(PKG_BUILD_DIR)/joerc $(1)/etc/jupp/
  65. $(INSTALL_CONF) $(PKG_BUILD_DIR)/jpicorc $(1)/etc/jupp/
  66. $(INSTALL_CONF) $(PKG_BUILD_DIR)/jstarrc $(1)/etc/jupp/
  67. $(INSTALL_CONF) $(PKG_BUILD_DIR)/jupprc $(1)/etc/jupp/
  68. $(INSTALL_DIR) $(1)/etc/jupp/charmaps
  69. $(INSTALL_CONF) $(PKG_BUILD_DIR)/charmaps/klingon $(1)/etc/jupp/charmaps/
  70. $(INSTALL_DIR) $(1)/etc/jupp/syntax
  71. $(INSTALL_CONF) $(PKG_BUILD_DIR)/syntax/*.jsf $(1)/etc/jupp/syntax/
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(LN) jupp $(1)/usr/bin/jmacs
  74. $(LN) jupp $(1)/usr/bin/joe
  75. $(LN) jupp $(1)/usr/bin/jpico
  76. $(LN) jupp $(1)/usr/bin/jstar
  77. endef
  78. define Package/jupp-data/conffiles
  79. /etc/jupp
  80. endef
  81. $(eval $(call BuildPackage,jupp))
  82. $(eval $(call BuildPackage,jupp-data))