From 6286977633ca22a9d6c09b5d298d1b1c928dfba4 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Mon, 9 Jul 2012 05:32:11 +0000 Subject: - Convert to new options framework - Cosmetic change --- x11-fonts/dejavu/Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'x11-fonts/dejavu') diff --git a/x11-fonts/dejavu/Makefile b/x11-fonts/dejavu/Makefile index deadd7f759a6..b74d10f64522 100644 --- a/x11-fonts/dejavu/Makefile +++ b/x11-fonts/dejavu/Makefile @@ -18,7 +18,8 @@ COMMENT= Bitstream Vera Fonts clone with a wider range of characters BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig -OPTIONS= LINKS "Install links of configuration files in conf.d" off +OPTIONS_DEFINE= DOCS LINKS +LINKS_DESC= Install links of configuration files in conf.d NO_BUILD= yes USE_BZIP2= yes @@ -34,7 +35,7 @@ SUB_LIST= FONTSDIR=${FONTSDIR} .include -.if defined(WITH_LINKS) +.if ${PORT_OPTIONS:MLINKS} FCDIR_LINKS= ${FCDIR_REL:S|conf.avail|conf.d|} PLIST_SUB+= FCDIR_LINKS="${FCDIR_LINKS}" .else @@ -42,20 +43,20 @@ PLIST_SUB+= FCDIR_LINKS="@comment " .endif do-install: - ${MKDIR} ${FONTSDIR} - ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${FCDIR} - ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${FONTSDIR} -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + ${MKDIR} ${FONTSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/fontconfig/*.conf ${FCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/ttf/*.ttf ${FONTSDIR}/ +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif -.if defined(WITH_LINKS) - cd ${PREFIX}/${FCDIR_LINKS} && ${LN} -fs ../conf.avail/*dejavu*.conf . +.if ${PORT_OPTIONS:MLINKS} + cd ${PREFIX}/${FCDIR_LINKS}/ && ${LN} -fs ../conf.avail/*dejavu*.conf . .endif post-install: @${ECHO_MSG} "===> Running fc-cache" - -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR} + -${LOCALBASE}/bin/fc-cache -f -v ${FONTSDIR}/ @${ECHO_MSG} @${CAT} ${PKGMESSAGE} @${ECHO_MSG} -- cgit