blob: 6718da6f2555c53c4ea4d5d60d55819993bfe906 (
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
|
# $NetBSD: Makefile,v 1.3 2005/10/11 07:23:52 abs Exp $
#
DISTNAME= ghostscript-8.51
PKGNAME= ghostscript-afpl-8.51
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://ghostscript.sourceforge.net/
COMMENT= Postscript interpreter
CONFLICTS+= ghostscript{,-nox11}-[0-9]*
CONFLICTS+= ghostscript-esp{,-nox11}-[0-9]*
CONFLICTS+= ghostscript-gnu{,-nox11,-x11}-[0-9]*
CONFLICTS+= hpijs-[0-9]*
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
GS_SRCS= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES= ${GS_SRCS}
EXTRACT_ONLY= ${GS_SRCS}
# Adobe's JPEG implementation in their PDF/PS documents is non-standard,
# so we can't use an already installed libjpeg.so.
#
JPEG_SRCS= jpegsrc.v6b.tar.gz
JPEG_WRKSRC= ${WRKDIR}/jpeg-6b
SITES_${JPEG_SRCS}= ftp://ftp.uu.net/graphics/jpeg/
DISTFILES+= ${JPEG_SRCS}
EXTRACT_ONLY+= ${JPEG_SRCS}
GS_RESOURCEDIR= ${PREFIX}/share/ghostscript/Resource
post-extract:
${MKDIR} ${WRKSRC}/bin
${MKDIR} ${WRKSRC}/obj
${LN} -fs ${JPEG_WRKSRC} ${WRKSRC}/jpeg
${MV} ${WRKSRC}/jasper ${WRKSRC}/jasper.dontuse
cd ${WRKSRC}/lib; for file in gs_res.ps; do \
${SED} -e "s|/Resource/|${GS_RESOURCEDIR}/|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
.include "../../graphics/png/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jasper/buildlink3.mk"
.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|