blob: ea4c4c4d36fba2a68a11a0860aaaacc602b5e4d7 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: print/freetype-tools
# Date created: Jul 29, 2005
# Whom: rafan@infor.org
#
# $FreeBSD$
#
PORTNAME= freetype-tools
PORTVERSION= 1.3.1
PORTREVISION= 6
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \
http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \
http://www.funet.fi/pub/mirrors/ftp.freetype.org/%SUBDIR%/ \
http://ftp.sunet.se/pub/text-processing/freetype/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/freetype/&,} \
ftp://ftp.freetype.org/freetype/%SUBDIR%/
MASTER_SITE_SUBDIR= freetype1
DISTNAME= freetype-${PORTVERSION}
MAINTAINER= rafan@FreeBSD.org
COMMENT= Tools for FreeType 1
LIB_DEPENDS= ttf.4:${PORTSDIR}/print/freetype
RUN_DEPENDS= ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX-base \
t1asm:${PORTSDIR}/print/t1utils
BUILD_DEPENDS= ${RUN_DEPENDS}
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:22
CONFIGURE_ARGS= --disable-nls --enable-static --enable-shared
TEXMFMAIN= ${PREFIX}/share/texmf
MAN1= ttf2bdf.1 ttf2tfm.1 ttf2pk.1
PORTSCOUT= limit:^1\.
post-patch:
@${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
${WRKSRC}/configure
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|LIBTOOL =.*|LIBTOOL = ${LIBTOOL}|'
@${FIND} ${WRKSRC} -name '*.orig' -delete
@${REINPLACE_CMD} -e 's|^PROGRAMS = t1asm|PROGRAMS =|' \
${WRKSRC}/contrib/ttf2pfb/Makefile.in
post-build:
@cd ${WRKSRC}/contrib/ttf2bdf && ./configure --prefix=${PREFIX} && ${GMAKE}
@cd ${WRKSRC}/contrib/ttf2pfb && ./configure --prefix=${PREFIX} && ${GMAKE}
@cd ${WRKSRC}/contrib/ttf2pk && ./configure --prefix=${PREFIX} --with-kpathsea-dir=${LOCALBASE} && ${GMAKE}
@cd ${WRKSRC}/contrib/ttfbanner && ./configure --prefix=${PREFIX} && ${GMAKE}
do-install:
@cd ${WRKSRC}/contrib/ttf2bdf && ${GMAKE} install
@cd ${WRKSRC}/contrib/ttf2pfb && ${GMAKE} install
@cd ${WRKSRC}/contrib/ttf2pk && ${GMAKE} install
@cd ${WRKSRC}/contrib/ttfbanner && ${GMAKE} install
@${MKDIR} ${TEXMFMAIN}/ttf2pk
@for f in ${WRKSRC}/contrib/ttf2pk/data/*; do \
${INSTALL_DATA} $$f ${TEXMFMAIN}/ttf2pk; \
done
@${LN} -fs ${TEXMFMAIN}/ttf2pk ${TEXMFMAIN}/ttf2tfm
.include <bsd.port.mk>
|