# New ports collection makefile for: dejavu # Date created: Dec 23 2004 # Whom: Michael Johnson # # $FreeBSD$ # PORTNAME= dejavu PORTVERSION= 1.7 CATEGORIES= x11-fonts MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} DISTNAME= ${PORTNAME}-ttf-${PORTVERSION} MAINTAINER= ahze@FreeBSD.org COMMENT= Bitstream Vera Fonts clone with a wider range of characters BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig RUN_DEPENDS= ${BUILD_DEPENDS} USE_X_PREFIX= yes NO_BUILD= yes PORTDOCS= README PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" MSG_FILE= ${PKGDIR}/pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message FONTNAME= ${PORTNAME} FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME} post-patch: ${SED} 's|%%FONTSDIR%%|${FONTSDIR}|g' ${MSG_FILE} > ${PKGMESSAGE} do-install: ${MKDIR} ${FONTSDIR} ${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR} ${INSTALL_DATA} ${FILESDIR}/fonts.dir ${FONTSDIR} .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif post-install: ${ECHO_MSG} "===> Running fc-cache" -${X11BASE}/bin/fc-cache -f -v ${FONTSDIR} ${ECHO_MSG} ${CAT} ${PKGMESSAGE} ${ECHO_MSG} .include