Convert to new options framework

This commit is contained in:
Baptiste Daroussin 2012-10-05 23:31:24 +00:00
parent 721f9eef6d
commit 4a8757b754
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305324

View file

@ -31,11 +31,13 @@ SUBDIRS= "Equinox Evolution" "Equinox Evolution Dawn" \
EXAMPLES= "Equinox Evolution.crx" "Equinox Evolution Dawn.crx" \
"Equinox Evolution Dusk.crx" "Equinox Evolution Midnight.crx"
OPTIONS= ANIMATION "Enable animation support" on
OPTIONS_DEFINE= ANIMATION EXAMPLES DOCS
OPTIONS_DEFAULT= ANIMATION
ANIMATION_DESC= Enable animation support
.include <bsd.port.options.mk>
.if defined(WITH_ANIMATION)
.if ${PORT_OPTIONS:MANIMATION}
CONFIGURE_ARGS+= --enable-animation
.endif
@ -51,13 +53,13 @@ post-install:
${FIND} ${DATADIR}/${i} -type d -exec ${CHMOD} 755 {} +
${FIND} ${DATADIR}/${i} -type f -exec ${CHMOD} ${SHAREMODE} {} +
.endfor
.if !defined(NOPORTEXAMPLES)
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}
.for i in ${EXAMPLES}
${INSTALL_DATA} ${WRKDIR}/$i ${EXAMPLESDIR}
.endfor
.endif
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif