# New ports collection makefile for: Liberation fonts # Date created: 17 May 2007 # Whom: Thierry Thomas # # $FreeBSD$ # PORTNAME= liberation-fonts-ttf PORTVERSION= 1.05.2.20091227 PORTEPOCH= 1 CATEGORIES= x11-fonts MASTER_SITES= https://fedorahosted.org/releases/l/i/liberation-fonts/ MAINTAINER= thierry@FreeBSD.org COMMENT= Liberation fonts from Red Hat to replace MS TTF fonts BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir USE_XORG= x11 NO_WRKSUBDIR= yes 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 License.txt ttf/fonts.dir ttf/fonts.scale MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir do-build: cd ${WRKSRC}/ttf && ${MKFONTSCL_CMD} ${REINPLACE_CMD} -e 's|-misc-|-redhat-|' ${WRKSRC}/ttf/fonts.scale cd ${WRKSRC}/ttf && ${MKFONTDIR_CMD} do-install: ${MKDIR} ${FONTDIR} cd ${WRKSRC} && \ ${INSTALL_DATA} ${INSTDAT} ttf/*.ttf ${FONTDIR} post-install: @${ECHO_MSG} @${CAT} ${PKGMESSAGE} @${ECHO_MSG} .include