4609f887f4
Gentium has been re-released under a new, more liberal license. The Sil OFL (Open Font License) claims to be fully FLOSS compliant, and means that the restriction against including this port on a CDROM can be dropped. http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=OFL In addition, the authors of this font seem to have managed to change just about everything it is possible to change about their download tarball with the notable exception of the actual font glyphs... Note to committer: gentium/pkg-message has moved to gentium/files/pkg-message.in Also no more need for an entry in /usr/ports/LEGAL for this port. PR: ports/89930 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk>
80 lines
1.9 KiB
Makefile
80 lines
1.9 KiB
Makefile
# New ports collection makefile for: Gentium Font Family
|
|
# Date created: March 31 2004
|
|
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# This port is shamelessly copied from Joe Marcus Clarke's bitstream-vera
|
|
# port.
|
|
|
|
PORTNAME= gentium
|
|
PORTVERSION= 1.0.2
|
|
CATEGORIES= x11-fonts
|
|
MASTER_SITES= http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Gentium_102_L_tar&_sc=1&filename=/
|
|
DISTNAME= ttf-sil-${PORTNAME}_${PORTVERSION}
|
|
|
|
MAINTAINER= m.seaman@infracaninophile.co.uk
|
|
COMMENT= Gentium TrueType font collection
|
|
|
|
BUILD_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
USE_X_PREFIX= yes
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/ttf-sil-${PORTNAME}-${PORTVERSION:C@\.([[:digit:]]+)$@\1@}
|
|
|
|
PLIST_SUB= FONTSDIR="${FONTSDIR:S|${PREFIX}/||}" \
|
|
FONTNAME=${FONTNAME}
|
|
|
|
SUB_LIST= "FONTSDIR=${FONTSDIR}"
|
|
SUB_FILES= pkg-message
|
|
|
|
#
|
|
# Local variables
|
|
#
|
|
|
|
FONTNAME= ${PORTNAME}
|
|
FONTSDIR?= ${PREFIX}/lib/X11/fonts/${FONTNAME}
|
|
|
|
DOCSLIST= FONTLOG GENTIUM-FAQ Gentium-Greek-Specimen.pdf \
|
|
Gentium-RU-A3Proofs.pdf Gentium-RU-Specimen.pdf \
|
|
OFL-FAQ QUOTES README
|
|
|
|
.SILENT:
|
|
|
|
#
|
|
# Install
|
|
#
|
|
|
|
do-install: install-fonts install-conf install-docs
|
|
|
|
install-fonts:
|
|
${MKDIR} ${FONTSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.ttf ${FONTSDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/fonts.dir ${FONTSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/OFL ${FONTSDIR}
|
|
|
|
install-conf:
|
|
${MKDIR} ${PREFIX}/etc/fonts
|
|
if [ ! -f ${PREFIX}/etc/fonts/local.conf ]; then \
|
|
${INSTALL_DATA} ${WRKSRC}/local.conf ${PREFIX}/etc/fonts ; \
|
|
fi
|
|
${INSTALL_DATA} ${WRKSRC}/local.conf \
|
|
${PREFIX}/etc/fonts/local.conf-${FONTNAME}
|
|
|
|
install-docs:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
@for doc in ${DOCSLIST} ; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$doc ${DOCSDIR} ; \
|
|
done
|
|
.endif
|
|
|
|
post-install:
|
|
${ECHO_MSG} "===> Running fc-cache"
|
|
-${X11BASE}/bin/fc-cache -f -v ${FONTSDIR}
|
|
${ECHO_MSG}
|
|
${CAT} ${PKGMESSAGE}
|
|
${ECHO_MSG}
|
|
|
|
.include <bsd.port.mk>
|