1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 1a50607b0417cf230f7b3609c091e71e8d8e91185a4a3897f7925cd3b44cceba
10 PKG_DESCR
:= wordstar-inspired text editor
11 PKG_SECTION
:= app
/editor
12 PKG_URL
:= https
://www.mirbsd.org
/jupp.htm
13 PKG_SITES
:= ${MASTER_SITE_MIRBSD
:distfiles
/=dist/jupp
/}
14 DISTFILES
:= joe-3.1jupp
${PKG_VERSION}.tgz
16 WRKDIST
= ${WRKDIR}/jupp
18 PKG_FLAVOURS_JUPP
:= CURSES EXTRAS JOE
19 PKGFD_CURSES
:= use ncurses for terminal control
20 PKGFS_CURSES
:= libncurses
21 PKGFB_CURSES
:= ncurses
22 PKGFD_EXTRAS
:= add syntax highlighting
, charmaps
23 PKGFD_JOE
:= add jmacs
, joe
, jpico
, jstar
, rjoe
25 include ${ADK_TOPDIR}/mk
/package.mk
26 $(eval
$(call PKG_template
,JUPP
,jupp
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
28 XAKE_FLAGS
+= sysconfjoesubdir
=/jupp
30 ifeq (${ADK_PACKAGE_JUPP_CURSES},y
)
31 # disable SELinux still
32 CONFIGURE_ENV
+= ac_cv_search_is_selinux_enabled
=no
34 # disable curses/termcap support, SELinux support
35 CONFIGURE_ARGS
+= --disable-curses
--disable-termcap
--disable-search-libs
38 # necessary workaround for GNU libc
39 ifeq (${ADK_TARGET_LIB_GLIBC},y
)
40 CONFIGURE_ARGS
+= --disable-getpwnam
44 CONFIGURE_ARGS
+= --disable-termidx
47 ${INSTALL_DIR} ${IDIR_JUPP}/usr
/bin
48 ${CP} ${WRKINST}/usr
/bin
/joe
${IDIR_JUPP}/usr
/bin
/jupp
49 ifneq (${ADK_PACKAGE_JUPP_EXTRAS}${ADK_PACKAGE_JUPP_JOE},)
50 ${INSTALL_DIR} ${IDIR_JUPP}/etc
/jupp
52 ifeq (${ADK_PACKAGE_JUPP_EXTRAS},y
)
53 ${CP} ${WRKINST}/etc
/jupp
/jupprc
${IDIR_JUPP}/etc
/jupp
/
54 ${INSTALL_DIR} ${IDIR_JUPP}/etc
/jupp
/charmaps
55 ${INSTALL_DIR} ${IDIR_JUPP}/etc
/jupp
/syntax
56 ${CP} ${WRKINST}/etc
/jupp
/charmaps
/* ${IDIR_JUPP}/etc
/jupp
/charmaps
/
57 ${CP} ${WRKINST}/etc
/jupp
/syntax
/* ${IDIR_JUPP}/etc
/jupp
/syntax
/
59 ifeq (${ADK_PACKAGE_JUPP_JOE},y
)
60 for x in jmacs joe jpico jstar rjoe
; do \
61 ln
-s jupp
${IDIR_JUPP}/usr
/bin
/$$x; \
62 ${CP} ${WRKINST}/etc
/jupp
/$${x}rc
${IDIR_JUPP}/etc
/jupp
/; \
66 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk