summaryrefslogtreecommitdiff
path: root/package/jupp/Makefile
diff options
context:
space:
mode:
authormirabilos <tg@mirbsd.org>2015-07-25 12:13:24 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-07-25 16:21:04 +0200
commit1e2d92a55687bbb4ca0a1df64d4059ab8da7ca2f (patch)
tree2b76627ac2683f41d8a0c4198c27fc43897d344a /package/jupp/Makefile
parent2c9f60e5770c4e243531df52b2fc6abf4cf04981 (diff)
add jupp package
TODO: ADK_PACKAGE_JUPP_JOE and ADK_PACKAGE_JOE must conflict each other
Diffstat (limited to 'package/jupp/Makefile')
-rw-r--r--package/jupp/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/package/jupp/Makefile b/package/jupp/Makefile
new file mode 100644
index 000000000..b4c0961a4
--- /dev/null
+++ b/package/jupp/Makefile
@@ -0,0 +1,66 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${ADK_TOPDIR}/rules.mk
+
+PKG_NAME:= jupp
+PKG_VERSION:= 28
+PKG_RELEASE:= 1
+PKG_HASH:= be4d16cb44f002a3f6f5069471096c53d9c184b7366ef1a055422d2f0006851f
+PKG_DESCR:= wordstar-inspired text editor
+PKG_SECTION:= app/editor
+PKG_URL:= https://www.mirbsd.org/jupp.htm
+PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/jupp/}
+DISTFILES:= joe-3.1jupp${PKG_VERSION}.tgz
+
+WRKDIST= ${WRKDIR}/jupp
+
+PKG_FLAVOURS_JUPP:= CURSES EXTRAS JOE
+PKGFD_CURSES:= use ncurses for terminal control
+PKGFS_CURSES:= libncurses
+PKGFB_CURSES:= ncurses
+PKGFD_EXTRAS:= add syntax highlighting, charmaps
+PKGFD_JOE:= add jmacs, joe, jpico, jstar, rjoe
+
+include ${ADK_TOPDIR}/mk/package.mk
+$(eval $(call PKG_template,JUPP,jupp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+XAKE_FLAGS+= sysconfjoesubdir=/jupp
+
+ifeq (${ADK_PACKAGE_JUPP_CURSES},y)
+# disable SELinux still
+CONFIGURE_ENV+= ac_cv_search_is_selinux_enabled=no
+else
+# disable curses/termcap support, SELinux support
+CONFIGURE_ARGS+= --disable-curses --disable-termcap --disable-search-libs
+endif
+
+# necessary workaround for GNU libc
+ifeq (${ADK_TARGET_LIB_GLIBC},y)
+CONFIGURE_ARGS+= --disable-getpwnam
+endif
+
+# unneeded
+CONFIGURE_ARGS+= --disable-termidx
+
+jupp-install:
+ ${INSTALL_DIR} ${IDIR_JUPP}/usr/bin
+ ${CP} ${WRKINST}/usr/bin/joe ${IDIR_JUPP}/usr/bin/jupp
+ifneq (${ADK_PACKAGE_JUPP_EXTRAS}${ADK_PACKAGE_JUPP_JOE},)
+ ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp
+endif
+ifeq (${ADK_PACKAGE_JUPP_EXTRAS},y)
+ ${CP} ${WRKINST}/etc/jupp/jupprc ${IDIR_JUPP}/etc/jupp/
+ ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp/charmaps
+ ${INSTALL_DIR} ${IDIR_JUPP}/etc/jupp/syntax
+ ${CP} ${WRKINST}/etc/jupp/charmaps/* ${IDIR_JUPP}/etc/jupp/charmaps/
+ ${CP} ${WRKINST}/etc/jupp/syntax/* ${IDIR_JUPP}/etc/jupp/syntax/
+endif
+ifeq (${ADK_PACKAGE_JUPP_JOE},y)
+ for x in jmacs joe jpico jstar rjoe; do \
+ ln -s jupp ${IDIR_JUPP}/usr/bin/$$x; \
+ ${CP} ${WRKINST}/etc/jupp/$${x}rc ${IDIR_JUPP}/etc/jupp/; \
+ done
+endif
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk