aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/sourcecodepro-ttf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fonts/sourcecodepro-ttf/Makefile')
-rw-r--r--x11-fonts/sourcecodepro-ttf/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/x11-fonts/sourcecodepro-ttf/Makefile b/x11-fonts/sourcecodepro-ttf/Makefile
new file mode 100644
index 000000000000..feec8d7b8277
--- /dev/null
+++ b/x11-fonts/sourcecodepro-ttf/Makefile
@@ -0,0 +1,51 @@
+# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
+# $FreeBSD$
+
+PORTNAME= sourcecodepro-ttf
+PORTVERSION= 1.009
+CATEGORIES= x11-fonts
+MASTER_SITES= SF/sourcecodepro.adobe
+DISTNAME= SourceCodePro_FontsOnly-${PORTVERSION}
+
+MAINTAINER= masaki@club.kyutech.ac.jp
+COMMENT= A set of fonts by Adobe designed for coders
+
+LICENSE= OFL
+LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+LICENSE_PERMS= auto-accept
+
+BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
+ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
+
+USE_ZIP= yes
+USE_XORG= x11
+
+PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
+
+SUB_FILES= pkg-message
+PKGMESSAGE= ${WRKDIR}/pkg-message
+SUB_LIST= FONTDIR=${FONTDIR}
+
+FONTNAME= SourceCodePro
+FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
+INSTDAT= fonts.dir fonts.scale
+
+MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
+MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
+
+do-build:
+ cd ${WRKSRC}/ && ${MKFONTSCL_CMD}
+ cd ${WRKSRC}/ && ${MKFONTDIR_CMD}
+
+do-install:
+ ${MKDIR} ${FONTDIR}
+ cd ${WRKSRC}/ && \
+ ${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>