summaryrefslogtreecommitdiff
path: root/fonts/t1lib/Makefile
blob: f0c93605674574c0d6c1b5d86df69a511ce44aa7 (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
# $NetBSD: Makefile,v 1.4 2002/09/19 14:47:34 tron Exp $

DISTNAME=	t1lib-1.3.1
CATEGORIES=	fonts devel graphics
MASTER_SITES=	${MASTER_SITE_SUNSITE:=libs/graphics/} \
		ftp://ftp.foolabs.com/pub/xpdf/

MAINTAINER=	packages@netbsd.org
COMMENT=	library for generating bitmaps from Adobe Type 1 fonts

USE_BUILDLINK2=		YES
USE_GMAKE=		YES
GNU_CONFIGURE=		YES
USE_LIBTOOL=		YES
USE_X11=		YES
LTCONFIG_OVERRIDE=	${WRKSRC}/ac-tools/ltconfig

ALL_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

pre-build:
	${FIND} ${WRKSRC} -name "*.orig" | ${XARGS} ${RM}

post-install:
	${INSTALL_DATA_DIR} ${DATADIR}
	cd ${WRKSRC};							\
	${PAX} -rw Fonts ${DATADIR};					\
	${CHMOD} go+r ${DATADIR}/Fonts/enc/IsoLatin2.enc;		\
	${PAX} -rw -s "/doc/${PKGBASE}/" doc ${PREFIX}/share/doc

	${INSTALL_DATA_DIR} ${EGDIR}
	cd ${WRKSRC}/examples;						\
	${PAX} -rw FontDataBase t1example1.c t1lib.config ${EGDIR}
	${SED}	${FILES_SUBST_SED}					\
		${FILESDIR}/t1lib.config.sample > ${EGDIR}/t1lib.config.sample

.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"