1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/x11-fonts/sourcecodepro-ttf/Makefile
2013-11-05 06:46:58 +00:00

50 lines
1.1 KiB
Makefile

# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
# $FreeBSD$
PORTNAME= sourcecodepro-ttf
PORTVERSION= 1.017
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= OFL11
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
NO_STAGE= yes
do-build:
cd ${WRKSRC}/TTF/ && ${MKFONTSCL_CMD}
cd ${WRKSRC}/TTF/ && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${FONTDIR}
cd ${WRKSRC}/TTF/ && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>