Update databases/mariadb105-server to version 10.5.17
[dports.git] / editors / the / Makefile
1 PORTNAME=       the
2 PORTVERSION=    3.3.r4
3 PORTREVISION=   2
4 CATEGORIES=     editors
5 MASTER_SITES=   http://downloads.sourceforge.net/hessling-editor/
6 DISTNAME=       THE-${PORTVERSION:S/.r/RC/}
7
8 MAINTAINER=     comet.berkeley@gmail.com
9 COMMENT=        The Hessling Editor, like the VM/CMS xedit editor
10 WWW=            http://hessling-editor.sourceforge.net/
11
12 LICENSE=        GPLv2
13
14 GNU_CONFIGURE=  yes
15 CONFIGURE_ARGS= --with-rexxincdir=${LOCALBASE}/include \
16                 --with-rexxlibdir=${LOCALBASE}/lib
17 ALL_TARGET=     all html
18 CPPFLAGS+=      -I${LOCALBASE}/include
19
20 OPTIONS_DEFINE=         DOCS XAW3D
21 OPTIONS_SINGLE=         DISPLAY REXX
22 OPTIONS_SINGLE_DISPLAY= NCURSES XCURSES
23 OPTIONS_SINGLE_REXX=    REXX_IMC REGINA
24 OPTIONS_DEFAULT=        NCURSES REGINA
25 OPTIONS_SUB=            yes
26
27 XAW3D_DESC=             Enable Xaw3D
28 NCURSES_DESC=           Build standard NCurses version
29 XCURSES_DESC=           Build XCurses (X11) version
30 REXX_IMC_DESC=          Use Rexx/imc interpreter
31 REGINA_DESC=            Use Regina Rexx interpreter
32
33 XAW3D_CONFIGURE_WITH=   xaw3d
34 XAW3D_BUILD_DEPENDS=    ${LOCALBASE}/lib/libXaw3d.a:x11-toolkits/Xaw3d
35
36 NCURSES_USES=           ncurses
37 NCURSES_CONFIGURE_ON=   --with-ncurses \
38                         --with-cursesincdir=${NCURSESINC} \
39                         --with-curseslibdir=${NCURSESLIB}
40
41 XCURSES_LIB_DEPENDS=    libXCurses.so:devel/pdcurses
42 XCURSES_CONFIGURE_ON=   --with-xcurses \
43                         --with-cursesincdir=${LOCALBASE}/include \
44                         --with-curseslibdir=${LOCALBASE}/lib
45 XCURSES_CFLAGS=         -I${LOCALBASE}/include \
46                         -I${LOCALBASE}/include/xcurses
47
48 REXX_IMC_CONFIGURE_ON=  --with-rexx=rexximc
49 REXX_IMC_BUILD_DEPENDS= rexx:lang/rexx-imc
50 REXX_IMC_RUN_DEPENDS=   rexx:lang/rexx-imc
51 REXX_IMC_BROKEN=        fails to build with REXX_IMC option
52
53 REGINA_CONFIGURE_ON=    --with-rexx=regina
54 REGINA_BUILD_DEPENDS=   regina:lang/rexx-regina
55 REGINA_RUN_DEPENDS=     regina:lang/rexx-regina
56
57 post-extract:
58         ${REINPLACE_CMD} -e 's|(datadir)/THE|(datadir)/the|g' \
59                         -e 's|/share/THE|/share/the|g' ${WRKSRC}/Makefile.in
60         ${REINPLACE_CMD} -e 's|ltermcap|lncurses|g' ${WRKSRC}/configure
61         ${REINPLACE_CMD} -e '/FUNCTION_KEY/d' ${WRKSRC}/the.c
62
63 pre-install:
64         ${MKDIR}                                ${STAGEDIR}${DOCSDIR}
65         ${INSTALL_DATA} ${WRKSRC}/*.html        ${STAGEDIR}${DOCSDIR}
66         ${INSTALL_DATA} ${WRKSRC}/the64.gif     ${STAGEDIR}${DOCSDIR}
67         ${INSTALL_DATA} ${WRKSRC}/the64.png     ${STAGEDIR}${DOCSDIR}
68
69 do-install-XCURSES-on:
70         ${STRIP_CMD}    ${STAGEDIR}${PREFIX}/bin/xthe
71         ${LN} -sf xthe  ${STAGEDIR}${PREFIX}/bin/the
72
73 do-install-NCURSES-on:
74         ${STRIP_CMD}    ${STAGEDIR}${PREFIX}/bin/nthe
75         ${LN} -sf nthe  ${STAGEDIR}${PREFIX}/bin/the
76
77 .include <bsd.port.mk>