blob: 11c47091d1813dc0b3e5db9c7c7348534f2da8cf (
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
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.48 2012/02/02 09:34:32 hans Exp $
DISTNAME= t1lib-5.1.2
PKGREVISION= 6
CATEGORIES= fonts devel graphics
MASTER_SITES= ${MASTER_SITE_SUNSITE:=libs/graphics/}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Library for generating bitmaps from Adobe Type 1 fonts
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
MAKE_JOBS_SAFE= no
USE_LIBTOOL= yes
USE_TOOLS+= gmake pax
GNU_CONFIGURE= yes
BUILD_TARGET= without_doc
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
DATADIR= ${PREFIX}/share/${PKGBASE}
CONF_FILES= ${EGDIR}/t1lib.config.sample ${DATADIR}/t1lib.config
CONF_FILES+= ${EGDIR}/FontDataBase ${DATADIR}/FontDataBase
.include "options.mk"
PLIST_VARS+= x11
.if !empty(PKG_OPTIONS:Mx11)
PLIST.x11= yes
.else
CONFIGURE_ARGS+= --without-x
.endif
SUBST_CLASSES+= paths
SUBST_FILES.paths= t1lib.config.sample
SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
SUBST_STAGE.paths= post-patch
post-extract:
${CP} ${FILESDIR}/t1lib.config.sample ${WRKSRC}
pre-build:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${DATADIR}
cd ${WRKSRC}; \
pax -rw Fonts ${DESTDIR}${DATADIR}; \
${CHMOD} go+r ${DESTDIR}${DATADIR}/Fonts/enc/IsoLatin2.enc; \
pax -rw -s "/doc/${PKGBASE}/" doc ${DESTDIR}${PREFIX}/share/doc
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/t1lib.config.sample ${DESTDIR}${EGDIR}
cd ${WRKSRC}/examples; \
pax -rw FontDataBase t1example1.c t1lib.config ${DESTDIR}${EGDIR}
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|