1 # Created by: giffunip@asme.org
7 MASTER_SITES= http://downloads.sourceforge.net/hessling-editor/
8 DISTNAME= THE-${PORTVERSION:S/.r/RC/}
10 MAINTAINER= comet.berkeley@gmail.com
11 COMMENT= The Hessling Editor, like the VM/CMS xedit editor
16 CONFIGURE_ARGS= --with-rexxincdir=${LOCALBASE}/include \
17 --with-rexxlibdir=${LOCALBASE}/lib
19 CPPFLAGS+= -I${LOCALBASE}/include
21 OPTIONS_DEFINE= DOCS XAW3D
22 OPTIONS_SINGLE= DISPLAY REXX
23 OPTIONS_SINGLE_DISPLAY= NCURSES XCURSES
24 OPTIONS_SINGLE_REXX= REXX_IMC REGINA
25 OPTIONS_DEFAULT= NCURSES REGINA
28 XAW3D_DESC= Enable Xaw3D
29 NCURSES_DESC= Build standard NCurses version
30 XCURSES_DESC= Build XCurses (X11) version
31 REXX_IMC_DESC= Use Rexx/imc interpreter
32 REGINA_DESC= Use Regina Rexx interpreter
34 XAW3D_CONFIGURE_WITH= xaw3d
35 XAW3D_BUILD_DEPENDS= ${LOCALBASE}/lib/libXaw3d.a:x11-toolkits/Xaw3d
38 NCURSES_CONFIGURE_ON= --with-ncurses \
39 --with-cursesincdir=${NCURSESINC} \
40 --with-curseslibdir=${NCURSESLIB}
42 XCURSES_LIB_DEPENDS= libXCurses.so:devel/pdcurses
43 XCURSES_CONFIGURE_ON= --with-xcurses \
44 --with-cursesincdir=${LOCALBASE}/include \
45 --with-curseslibdir=${LOCALBASE}/lib
46 XCURSES_CFLAGS= -I${LOCALBASE}/include \
47 -I${LOCALBASE}/include/xcurses
49 REXX_IMC_CONFIGURE_ON= --with-rexx=rexximc
50 REXX_IMC_BUILD_DEPENDS= rexx:lang/rexx-imc
51 REXX_IMC_RUN_DEPENDS= rexx:lang/rexx-imc
52 REXX_IMC_BROKEN= fails to build with REXX_IMC option
54 REGINA_CONFIGURE_ON= --with-rexx=regina
55 REGINA_BUILD_DEPENDS= regina:lang/rexx-regina
56 REGINA_RUN_DEPENDS= regina:lang/rexx-regina
59 ${REINPLACE_CMD} -e 's|(datadir)/THE|(datadir)/the|g' \
60 -e 's|/share/THE|/share/the|g' ${WRKSRC}/Makefile.in
61 ${REINPLACE_CMD} -e 's|ltermcap|lncurses|g' ${WRKSRC}/configure
62 ${REINPLACE_CMD} -e '/FUNCTION_KEY/d' ${WRKSRC}/the.c
65 ${MKDIR} ${STAGEDIR}${DOCSDIR}
66 ${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
67 ${INSTALL_DATA} ${WRKSRC}/the64.gif ${STAGEDIR}${DOCSDIR}
68 ${INSTALL_DATA} ${WRKSRC}/the64.png ${STAGEDIR}${DOCSDIR}
70 do-install-XCURSES-on:
71 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xthe
72 ${LN} -sf xthe ${STAGEDIR}${PREFIX}/bin/the
74 do-install-NCURSES-on:
75 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nthe
76 ${LN} -sf nthe ${STAGEDIR}${PREFIX}/bin/the
78 .include <bsd.port.mk>