aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/mkfontalias/Makefile
blob: 02e70a6a1e10c3ccc29d9cb6a2fb65bf496a4cb8 (plain) (blame)
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
# New ports collection makefile for:   mkfontalias
# Date created:        26 September 2001
# Whom:                Stijn Hoop <stijn@win.tue.nl>
#
# $FreeBSD$
#

PORTNAME=   mkfontalias
PORTVERSION=    0.3
CATEGORIES= x11-fonts
MASTER_SITES=   http://home.c2i.net/dark/
DISTNAME=   mkfontalias.py
EXTRACT_SUFX=

MAINTAINER= stijn@win.tue.nl
COMMENT=    Python script to make fonts.alias files for X

PLIST_FILES=    bin/mkfontalias
USE_PYTHON= yes
USE_X_PREFIX=   yes

EXTRACT_CMD=        ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKSRC}

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

.ifndef WITH_DPI
DPI=        75
.else
DPI=        ${WITH_DPI}
.endif

post-patch:
    ${MV} ${WRKSRC}/mkfontalias.py ${WRKSRC}/mkfontalias.py.tmp
    ${SED} -e "s,/usr/bin/python,${LOCALBASE}/bin/python," \
        -e "s#'75', '75'#'${DPI}', '${DPI}'#" \
        ${WRKSRC}/mkfontalias.py.tmp > ${WRKSRC}/mkfontalias.py

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/mkfontalias.py ${PREFIX}/bin/mkfontalias

.include <bsd.port.mk>