Thu Jul 21 17:06:18 2011 UTC ()
Clang build needs -fPIC too.


(joerg)
diff -r1.83 -r1.84 pkgsrc/print/ghostscript/Makefile

cvs diff -r1.83 -r1.84 pkgsrc/print/ghostscript/Makefile (expand / switch to unified diff)

--- pkgsrc/print/ghostscript/Makefile 2011/01/13 13:36:06 1.83
+++ pkgsrc/print/ghostscript/Makefile 2011/07/21 17:06:18 1.84
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.83 2011/01/13 13:36:06 wiz Exp $ 1# $NetBSD: Makefile,v 1.84 2011/07/21 17:06:18 joerg Exp $
2 2
3DISTNAME= ghostscript-8.71 3DISTNAME= ghostscript-8.71
4PKGREVISION= 7 4PKGREVISION= 7
5CATEGORIES= print 5CATEGORIES= print
6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} 6MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
7MASTER_SITES+= http://ghostscript.com/releases/ 7MASTER_SITES+= http://ghostscript.com/releases/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://ghostscript.sourceforge.net/ 10HOMEPAGE= http://ghostscript.sourceforge.net/
11COMMENT= Postscript interpreter 11COMMENT= Postscript interpreter
12 12
13# Plus adobe verbatim for Resources/CMap. 13# Plus adobe verbatim for Resources/CMap.
14LICENSE= gnu-gpl-v3 14LICENSE= gnu-gpl-v3
@@ -49,27 +49,27 @@ REQD_DIRS+= share/ghostscript @@ -49,27 +49,27 @@ REQD_DIRS+= share/ghostscript
49SUBST_CLASSES+= resdir 49SUBST_CLASSES+= resdir
50SUBST_STAGE.resdir= post-extract 50SUBST_STAGE.resdir= post-extract
51SUBST_MESSAGE.resdir= Fixing resource directory path 51SUBST_MESSAGE.resdir= Fixing resource directory path
52SUBST_FILES.resdir= Resource/Init/gs_res.ps 52SUBST_FILES.resdir= Resource/Init/gs_res.ps
53SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" 53SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
54 54
55.if ${OPSYS} == "HPUX" 55.if ${OPSYS} == "HPUX"
56CONFIGURE_ENV+= ac_cv_func_fopen64=no 56CONFIGURE_ENV+= ac_cv_func_fopen64=no
57.endif 57.endif
58 58
59# On Linux-*-x86_64, there was an error message: 59# On Linux-*-x86_64, there was an error message:
60# gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be 60# gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be
61# used when making a shared object; recompile with -fPIC 61# used when making a shared object; recompile with -fPIC
62.if !empty(PKGSRC_COMPILER:Mgcc) 62.if !empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang)
63CFLAGS+= -fPIC 63CFLAGS+= -fPIC
64.endif 64.endif
65 65
66# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't 66# Interim IRIX build fix, the real problem is that fontconfig.pc doesn't
67# require linking against libiconv when it should do so. 67# require linking against libiconv when it should do so.
68.if ${OPSYS} == "IRIX" 68.if ${OPSYS} == "IRIX"
69BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv 69BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv
70.endif 70.endif
71 71
72CONFIGURE_ENV+= LPLIBDIR=${LOCALBASE}/lib 72CONFIGURE_ENV+= LPLIBDIR=${LOCALBASE}/lib
73 73
74post-extract: 74post-extract:
75 ${MKDIR} ${WRKSRC}/bin 75 ${MKDIR} ${WRKSRC}/bin