| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.26 2017/05/19 13:29:04 prlw1 Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2017/05/24 15:19:12 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= ghostscript-${GS_VERSION} | | 3 | DISTNAME= ghostscript-${GS_VERSION} |
4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/} | | 4 | PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/} |
5 | PKGREVISION= 13 | | 5 | PKGREVISION= 13 |
6 | CATEGORIES= print | | 6 | CATEGORIES= print |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/} |
8 | MASTER_SITES+= http://ghostscript.com/releases/ | | 8 | MASTER_SITES+= http://ghostscript.com/releases/ |
9 | EXTRACT_SUFX= .tar.bz2 | | 9 | EXTRACT_SUFX= .tar.bz2 |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://ghostscript.sourceforge.net/ | | 12 | HOMEPAGE= http://ghostscript.sourceforge.net/ |
13 | COMMENT= Postscript interpreter | | 13 | COMMENT= Postscript interpreter |
14 | | | 14 | |
| @@ -65,26 +65,30 @@ SUBST_STAGE.resdir= post-extract | | | @@ -65,26 +65,30 @@ SUBST_STAGE.resdir= post-extract |
65 | SUBST_MESSAGE.resdir= Fixing resource directory path | | 65 | SUBST_MESSAGE.resdir= Fixing resource directory path |
66 | SUBST_FILES.resdir= Resource/Init/gs_res.ps | | 66 | SUBST_FILES.resdir= Resource/Init/gs_res.ps |
67 | SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" | | 67 | SUBST_SED.resdir= -e "s|/Resource/|${GS_RESOURCEDIR}/|g" |
68 | | | 68 | |
69 | CONFIGURE_ENV.HPUX+= ac_cv_func_fopen64=no | | 69 | CONFIGURE_ENV.HPUX+= ac_cv_func_fopen64=no |
70 | | | 70 | |
71 | # On Linux-*-x86_64, there was an error message: | | 71 | # On Linux-*-x86_64, there was an error message: |
72 | # gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be | | 72 | # gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be |
73 | # used when making a shared object; recompile with -fPIC | | 73 | # used when making a shared object; recompile with -fPIC |
74 | .if !empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang) | | 74 | .if !empty(PKGSRC_COMPILER:Mgcc) || !empty(PKGSRC_COMPILER:Mclang) |
75 | CFLAGS+= -fPIC | | 75 | CFLAGS+= -fPIC |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
| | | 78 | .if ${OPSYS} == "SunOS" && !empty(CC_VERSION:Mgcc-[7-9]*) |
| | | 79 | CPPFLAGS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
| | | 80 | .endif |
| | | 81 | |
78 | # Interim IRIX build fix, the real problem is that fontconfig.pc doesn't | | 82 | # Interim IRIX build fix, the real problem is that fontconfig.pc doesn't |
79 | # require linking against libiconv when it should do so. | | 83 | # require linking against libiconv when it should do so. |
80 | BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv | | 84 | BUILDLINK_TRANSFORM.IRIX+= l:fontconfig:fontconfig:iconv |
81 | | | 85 | |
82 | CONFIGURE_ENV+= LPLIBDIR=${PREFIX}/lib | | 86 | CONFIGURE_ENV+= LPLIBDIR=${PREFIX}/lib |
83 | | | 87 | |
84 | # On OpenBSD 5.3, libxcb is required libXt. | | 88 | # On OpenBSD 5.3, libxcb is required libXt. |
85 | LDFLAGS.OpenBSD+= -lxcb | | 89 | LDFLAGS.OpenBSD+= -lxcb |
86 | | | 90 | |
87 | .if ${OS_VARIANT} == "SCOOSR5" | | 91 | .if ${OS_VARIANT} == "SCOOSR5" |
88 | # SCO OpenServer 5.0.7/3.2 has windows.h, and configure expacts it for MS Windows. | | 92 | # SCO OpenServer 5.0.7/3.2 has windows.h, and configure expacts it for MS Windows. |
89 | CONFIGURE_ENV+= ac_cv_header_windows_h=no | | 93 | CONFIGURE_ENV+= ac_cv_header_windows_h=no |
90 | .endif | | 94 | .endif |