diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-12 18:34:46 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-12 18:34:46 +0800 |
commit | c9a16767f1848302b7ee4bb49ddcbac52d489ad5 (patch) | |
tree | 1aae4ab22bf7a2dda9a06a005fdcfb73e66b5ce5 /editors/the | |
parent | a5c02e972e35e059aa5e9dc0b268ff605f241fbf (diff) | |
download | freebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.tar.gz freebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.tar.zst freebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.zip |
Convert to new options framework
Diffstat (limited to 'editors/the')
-rw-r--r-- | editors/the/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/editors/the/Makefile b/editors/the/Makefile index 90a06be8a715..234c654a5192 100644 --- a/editors/the/Makefile +++ b/editors/the/Makefile @@ -27,8 +27,10 @@ ALL_TARGET= all html MAN1= the.1 -OPTIONS= XAW3D "Enable Xaw3D" off \ - XCURSES "Build XCurses (X11) version" off +OPTIONS_DEFINE= XAW3D XCURSES REXX_REGINA DOCS +XAW3D_DESC= Enable Xaw3D +XCURSES_DESC= Build XCurses (X11) version +REXX_REGINA_DESC= Enable Rexx interpreter .include <bsd.port.pre.mk> @@ -36,12 +38,12 @@ OPTIONS= XAW3D "Enable Xaw3D" off \ BROKEN= Does not configure on powerpc .endif -.if defined(WITH_XAW3D) +.if ${PORT_OPTIONS:MXAW3D} CONFIGURE_ARGS+=--with-xaw3d LIB_DEPENDS+= Xaw3d.8:${PORTSDIR}/x11-toolkits/Xaw3d .endif -.if defined(WITH_XCURSES) +.if ${PORT_OPTIONS:MXCURSES} CONFIGURE_ARGS+=--with-xcurses \ --with-cursesincdir=${LOCALBASE}/include \ --with-curseslibdir=${LOCALBASE}/lib @@ -52,7 +54,7 @@ PLIST_SUB= XCURSES="" NCURSES="@comment " PLIST_SUB= XCURSES="@comment " NCURSES="" .endif -.if defined(WITH_REXX_REGINA) +.if ${PORT_OPTIONS:MREXX_REGINA} BUILD_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina RUN_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina CONFIGURE_ARGS+= --with-rexx=regina @@ -63,12 +65,12 @@ CONFIGURE_ARGS+= --with-rexx=rexximc .endif post-install: -.if defined(WITH_XCURSES) +.if ${PORT_OPTIONS:MXCURSES} @${LN} -sf xthe ${PREFIX}/bin/the .else @${LN} -sf nthe ${PREFIX}/bin/the .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${PREFIX}/share/doc/THE ${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/THE .endif |