blob: a9a81b87efb31420ab5e0af98340f773c6dd2215 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: Liberation fonts
# Date created: 17 May 2007
# Whom: Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#
PORTNAME= liberation-fonts-ttf
PORTVERSION= 3
PORTREVISION= 1
CATEGORIES= x11-fonts
MASTER_SITES= https://www.redhat.com/f/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
WRKSRC= ${WRKDIR}/liberation-fonts-0.2
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= License.txt 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} ${FONTDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
|