summaryrefslogtreecommitdiff
path: root/emulators/advancemenu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/advancemenu/Makefile')
-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