| @@ -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 | |
3 | DISTNAME= ghostscript-8.71 | | 3 | DISTNAME= ghostscript-8.71 |
4 | PKGREVISION= 7 | | 4 | PKGREVISION= 7 |
5 | CATEGORIES= print | | 5 | CATEGORIES= print |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} |
7 | MASTER_SITES+= http://ghostscript.com/releases/ | | 7 | MASTER_SITES+= http://ghostscript.com/releases/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://ghostscript.sourceforge.net/ | | 10 | HOMEPAGE= http://ghostscript.sourceforge.net/ |
11 | COMMENT= Postscript interpreter | | 11 | COMMENT= Postscript interpreter |
12 | | | 12 | |
13 | # Plus adobe verbatim for Resources/CMap. | | 13 | # Plus adobe verbatim for Resources/CMap. |
14 | LICENSE= gnu-gpl-v3 | | 14 | LICENSE= gnu-gpl-v3 |
| @@ -49,27 +49,27 @@ REQD_DIRS+= share/ghostscript | | | @@ -49,27 +49,27 @@ REQD_DIRS+= share/ghostscript |
49 | SUBST_CLASSES+= resdir | | 49 | SUBST_CLASSES+= resdir |
50 | SUBST_STAGE.resdir= post-extract | | 50 | SUBST_STAGE.resdir= post-extract |
51 | SUBST_MESSAGE.resdir= Fixing resource directory path | | 51 | SUBST_MESSAGE.resdir= Fixing resource directory path |
52 | SUBST_FILES.resdir= Resource/Init/gs_res.ps | | 52 | SUBST_FILES.resdir= Resource/Init/gs_res.ps |
53 | SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" | | 53 | SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" |
54 | | | 54 | |
55 | .if ${OPSYS} == "HPUX" | | 55 | .if ${OPSYS} == "HPUX" |
56 | CONFIGURE_ENV+= ac_cv_func_fopen64=no | | 56 | CONFIGURE_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) |
63 | CFLAGS+= -fPIC | | 63 | CFLAGS+= -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" |
69 | BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv | | 69 | BUILDLINK_TRANSFORM+= l:fontconfig:fontconfig:iconv |
70 | .endif | | 70 | .endif |
71 | | | 71 | |
72 | CONFIGURE_ENV+= LPLIBDIR=${LOCALBASE}/lib | | 72 | CONFIGURE_ENV+= LPLIBDIR=${LOCALBASE}/lib |
73 | | | 73 | |
74 | post-extract: | | 74 | post-extract: |
75 | ${MKDIR} ${WRKSRC}/bin | | 75 | ${MKDIR} ${WRKSRC}/bin |