diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2012-07-09 13:32:11 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2012-07-09 13:32:11 +0800 |
commit | 6286977633ca22a9d6c09b5d298d1b1c928dfba4 (patch) | |
tree | a2592f26f2795c2710e4b39cdeaf646e14ee6d57 /x11-fonts | |
parent | 861828ea15d820480c7914e4cd00fbb6c0e8fc04 (diff) | |
download | freebsd-ports-gnome-6286977633ca22a9d6c09b5d298d1b1c928dfba4.tar.gz freebsd-ports-gnome-6286977633ca22a9d6c09b5d298d1b1c928dfba4.tar.zst freebsd-ports-gnome-6286977633ca22a9d6c09b5d298d1b1c928dfba4.zip |
- Convert to new options framework
- Cosmetic change
Diffstat (limited to 'x11-fonts')
-rw-r--r-- | x11-fonts/dejavu/Makefile | 23 |
1 files changed, 12 insertions, 11 deletions
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 <bsd.port.options.mk> -.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} |