Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= jupp
  5. PKG_VERSION:= 38
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= c5cbe3f97683f6e513f611a60531feefb9b877f8cea4c6e9087b48631f69ed40
  8. PKG_DESCR:= wordstar-inspired text editor
  9. PKG_SECTION:= app/editor
  10. PKG_URL:= https://www.mirbsd.org/jupp.htm
  11. PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/jupp/}
  12. DISTFILES:= joe-3.1jupp${PKG_VERSION}.tgz
  13. WRKDIST= ${WRKDIR}/jupp
  14. PKG_FLAVOURS_JUPP:= CURSES EXTRAS JOE
  15. PKGFD_CURSES:= use ncurses for terminal control
  16. PKGFS_CURSES:= libncurses
  17. PKGFB_CURSES:= ncurses
  18. PKGFD_EXTRAS:= add syntax highlighting, charmaps
  19. PKGFD_JOE:= add jmacs, joe, jpico, jstar, rjoe
  20. include ${ADK_TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,JUPP,jupp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. XAKE_FLAGS+= sysconfjoesubdir=/jupp
  23. # not available
  24. CONFIGURE_ARGS+= --disable-selinux
  25. ifneq (${ADK_PACKAGE_JUPP_CURSES},y)
  26. # disable curses/termcap support
  27. CONFIGURE_ARGS+= --disable-curses --disable-termcap --disable-terminfo
  28. endif
  29. # necessary workaround for GNU libc
  30. ifeq (${ADK_TARGET_LIB_GLIBC},y)
  31. CONFIGURE_ARGS+= --disable-getpwnam
  32. endif
  33. # unneeded
  34. CONFIGURE_ARGS+= --disable-termidx
  35. jupp-install:
  36. ${INSTALL_DIR} ${IDIR_JUPP}/usr/bin
  37. ${CP} ${WRKINST}/usr/bin/joe ${IDIR_JUPP}/usr/bin/jupp
  38. ifneq (${ADK_PACKAGE_JUPP_EXTRAS}${ADK_PACKAGE_JUPP_JOE},)
  39. ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp
  40. endif
  41. ifeq (${ADK_PACKAGE_JUPP_EXTRAS},y)
  42. ${CP} ${WRKINST}/etc/jupp/jupprc ${IDIR_JUPP}/etc/jupp/
  43. ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp/charmaps
  44. ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp/syntax
  45. ${CP} ${WRKINST}/etc/jupp/charmaps/* ${IDIR_JUPP}/etc/jupp/charmaps/
  46. ${CP} ${WRKINST}/etc/jupp/syntax/* ${IDIR_JUPP}/etc/jupp/syntax/
  47. endif
  48. ifeq (${ADK_PACKAGE_JUPP_JOE},y)
  49. for x in jmacs joe jpico jstar rjoe; do \
  50. ln -s jupp ${IDIR_JUPP}/usr/bin/$$x; \
  51. ${CP} ${WRKINST}/etc/jupp/$${x}rc ${IDIR_JUPP}/etc/jupp/; \
  52. done
  53. endif
  54. include ${ADK_TOPDIR}/mk/pkg-bottom.mk