diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2014-09-23 18:49:43 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2014-09-23 18:49:43 +0000 |
commit | 247b017ff7e38260b326afc222a844dab3440771 (patch) | |
tree | 200684377fcce2d2dfbbe704b36a16273a18792c /www/alef-webfont/Makefile | |
parent | 11e602281cdb73cc0946dec428768458ca451431 (diff) | |
download | ports-247b017ff7e38260b326afc222a844dab3440771.tar.gz ports-247b017ff7e38260b326afc222a844dab3440771.zip |
Notes
Diffstat (limited to 'www/alef-webfont/Makefile')
-rw-r--r-- | www/alef-webfont/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/alef-webfont/Makefile b/www/alef-webfont/Makefile new file mode 100644 index 000000000000..d6b8944dabd1 --- /dev/null +++ b/www/alef-webfont/Makefile @@ -0,0 +1,58 @@ +# Created by: cpm +# $FreeBSD$ + +PORTNAME= alef +PORTVERSION= 1.0 +CATEGORIES= www +MASTER_SITES= http://alef.hagilda.com/ +PKGNAMESUFFIX= -webfont +DISTNAME= Alef + +MAINTAINER= cpm@fbsd.es +COMMENT= Free multi-lingual font designed for screens + +LICENSE= OFL11 +LICENSE_FILE= ${WRKDIR}/OFL-license.txt + +BUILD_DEPENDS= ${LOCALBASE}/bin/mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \ + ${LOCALBASE}/bin/mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale + +USES= zip +NO_BUILD= yes +FONTSDIR= ${PREFIX}/lib/x11/fonts/${PORTNAME}${PKGNAMESUFFIX} +INSTDAT= fonts.dir fonts.scale + +PLIST_SUB= FONTSDIR="${FONTSDIR}" WWWDIR_REL="${WWWDIR_REL}${PKGNAMESUFFIX}" + +MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale +MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir + +OPTIONS_DEFINE= DOCS + +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} +PORTDOCS= COMING-SOON.txt readme.txt + +post-extract: + ${MKDIR} ${WRKSRC} + cd ${WRKDIR} && ${MV} TTF ${WRKSRC} + ${MV} ${WRKDIR}/--COMING-SOON--.txt ${WRKDIR}/COMING-SOON.txt + +pre-install: + ${MKFONTSCL_CMD} ${WRKDIR}/Alef-Webfont + ${MKFONTDIR_CMD} ${WRKDIR}/Alef-Webfont + +do-install: + ${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX} +.for f in Alef-bold.html Alef-regular.html stylesheet.css + ${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/${f} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX} +.endfor +.for i in eot svg ttf woff + ${MKDIR} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i} + ${INSTALL_DATA} ${WRKDIR}/Alef-Webfont/*.${i} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/${i} +.endfor + cd ${WRKDIR}/Alef-Webfont && ${INSTALL_DATA} ${INSTDAT} ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX}/ttf + ${CP} -pr ${WRKDIR}/Alef-Webfont/specimen_files ${STAGEDIR}${WWWDIR}${PKGNAMESUFFIX} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> |