aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/advancemenu
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-12 18:34:46 +0800
committerbapt <bapt@FreeBSD.org>2012-06-12 18:34:46 +0800
commitc9a16767f1848302b7ee4bb49ddcbac52d489ad5 (patch)
tree1aae4ab22bf7a2dda9a06a005fdcfb73e66b5ce5 /emulators/advancemenu
parenta5c02e972e35e059aa5e9dc0b268ff605f241fbf (diff)
downloadfreebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.tar.gz
freebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.tar.zst
freebsd-ports-gnome-c9a16767f1848302b7ee4bb49ddcbac52d489ad5.zip
Convert to new options framework
Diffstat (limited to 'emulators/advancemenu')
-rw-r--r--emulators/advancemenu/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/emulators/advancemenu/Makefile b/emulators/advancemenu/Makefile
index e49737656292..6c86df379023 100644
--- a/emulators/advancemenu/Makefile
+++ b/emulators/advancemenu/Makefile
@@ -23,8 +23,8 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-OPTIONS= FREETYPE "Enable FreeType2 support" off \
- SLANG "Enable sLang support (for video driver)" off
+OPTIONS_DEFINE= FREETYPE SLANG DOCS
+SLANG_DESC= Enable sLang support (for video driver)
MAN1= advmenu.1
@@ -34,13 +34,13 @@ MAN1= advmenu.1
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
.endif
-.if defined(WITH_FREETYPE)
+.if ${PORT_OPTIONS:MFREETYPE}
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
.else
CONFIGURE_ARGS+=--disable-freetype
.endif
-.if defined(WITH_SLANG)
+.if ${PORT_OPTIONS:MSLANG}
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
.else
CONFIGURE_ARGS+=--disable-slang
@@ -49,7 +49,7 @@ CONFIGURE_ARGS+=--disable-slang
post-patch:
@${REINPLACE_CMD} -Ee 's|^(pkg.*)/advance|\1/${PORTNAME}|; /pkgdir/d' \
${WRKSRC}/advance/advance.mak
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/pkgdocdir/d' ${WRKSRC}/advance/advance.mak
.endif