- Switch USE_GMAKE to USES=gmake - Define supported options so users can see them in config dialogs - Use OPTIONS_SUB for plist alteration - Convert to options macros for better readability - Use PORTDOCS where it makes sense
45 lines
1,010 B
Makefile
45 lines
1,010 B
Makefile
# Ports collection makefile for: freefont-ttf
|
|
# Date created: 2005-12-17
|
|
# Whom: Andreas Kohn <andreas@syndrom23.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= freefont-ttf
|
|
PORTVERSION= 20120503
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
MASTER_SITE_SUBDIR=freefont
|
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
|
COMMENT= Free UCS Outline Fonts
|
|
|
|
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
|
|
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USE_ZIP= yes
|
|
|
|
WRKSRC= ${WRKDIR}/freefont-${PORTVERSION}
|
|
INSTALLDIR= ${PREFIX}/lib/X11/fonts/${PORTNAME}
|
|
PORTDOCS= AUTHORS ChangeLog CREDITS README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontscale
|
|
cd ${WRKSRC} && ${LOCALBASE}/bin/mkfontdir
|
|
|
|
do-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
.endif
|
|
${MKDIR} ${INSTALLDIR}
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_DATA} fonts.dir fonts.scale *.ttf ${INSTALLDIR}
|
|
|
|
.include <bsd.port.mk>
|