mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= liberation-fonts-ttf
|
|
PORTVERSION= 2.00.1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= https://fedorahosted.org/releases/l/i/liberation-fonts/ \
|
|
${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= thierry
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Liberation fonts from Red Hat to replace MS TTF fonts
|
|
|
|
LICENSE= OFL11
|
|
|
|
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
|
|
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
|
|
|
|
USE_XORG= x11
|
|
|
|
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
SUB_LIST= FONTDIR=${FONTDIR}
|
|
|
|
FONTNAME= Liberation
|
|
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
|
|
INSTDAT= AUTHORS fonts.dir fonts.scale
|
|
|
|
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
|
|
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${MKFONTSCL_CMD}
|
|
${REINPLACE_CMD} -e 's|-misc-|-redhat-|' ${WRKSRC}/fonts.scale
|
|
cd ${WRKSRC} && ${MKFONTDIR_CMD}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${FONTDIR}
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_DATA} ${INSTDAT} *.ttf ${STAGEDIR}${FONTDIR}
|
|
|
|
.include <bsd.port.mk>
|