pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/ghostscript-gpl print/ghostscript-gpl: Reduce di...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5783f5e158e1
branches:  trunk
changeset: 393394:5783f5e158e1
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Mar 17 18:20:14 2019 +0000

description:
print/ghostscript-gpl: Reduce diffs to -agpl

Add PAPERSIZE to BUILD_DEFS.
Change HOMEPAGE; the sourceforge ghostscript page is stale.

Other than those minor changes, reorder lines in a way that should
have no functional effect, but which makes Makefile closer to
../print/ghostscript-agpl/Makefile.

diffstat:

 print/ghostscript-gpl/Makefile |  25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diffs (96 lines):

diff -r f0495134ac04 -r 5783f5e158e1 print/ghostscript-gpl/Makefile
--- a/print/ghostscript-gpl/Makefile    Sun Mar 17 18:02:26 2019 +0000
+++ b/print/ghostscript-gpl/Makefile    Sun Mar 17 18:20:14 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2019/02/15 02:02:33 gdt Exp $
+# $NetBSD: Makefile,v 1.47 2019/03/17 18:20:14 gdt Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-gpl/}
@@ -9,7 +9,7 @@
 EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://ghostscript.sourceforge.net/
+HOMEPAGE=      https://ghostscript.com/
 COMMENT=       Postscript interpreter
 
 # Plus adobe verbatim for Resources/CMap.
@@ -26,15 +26,19 @@
 CONFLICTS+=            ghostscript-gnu-x11-[0-9]*
 CONFLICTS+=            ghostscript-gnu-nox11-[0-9]*
 
+USE_LANGUAGES+=                c c++
 USE_TOOLS+=            gmake perl:run lex pkg-config
-USE_LANGUAGES+=                c c++
 GNU_CONFIGURE=         yes
 UNLIMIT_RESOURCES+=    datasize        # gsromfs1.c
 
 BUILD_TARGET=          so
 INSTALL_TARGET=                soinstall
+
 CONFIGURE_ARGS+=       --with-omni=no  # otherwise pulls in libstdc++
 CONFIGURE_ARGS+=       --with-system-libtiff
+CONFIGURE_ENV+=                LPLIBDIR=${PREFIX}/lib
+CONFIGURE_ENV+=                ZLIB_DIR=${BUILDLINK_PREFIX.zlib}/lib
+CONFIGURE_ENV.HPUX+=   ac_cv_func_fopen64=no
 
 REPLACE_PERL+=         toolbin/localcluster/clusterpush.pl
 REPLACE_PERL+=         toolbin/checkdeps.pl
@@ -55,7 +59,9 @@
 .include "../../mk/bsd.prefs.mk"
 .include "../../mk/compiler.mk"
 
+# \todo Remove "a4" as that is not valid according to pkglint.
 .if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4")
+BUILD_DEFS+=           PAPERSIZE
 CFLAGS+=               -DA4
 .endif
 
@@ -67,8 +73,6 @@
 SUBST_FILES.resdir=    Resource/Init/gs_res.ps
 SUBST_SED.resdir=      -e "s|/Resource/|${GS_RESOURCEDIR}/|g"
 
-CONFIGURE_ENV.HPUX+=   ac_cv_func_fopen64=no
-
 # On Linux-*-x86_64, there was an error message:
 # gp_unix.o: relocation R_X86_64_32 against `a local symbol' can not be
 # used when making a shared object; recompile with -fPIC
@@ -85,9 +89,6 @@
 # require linking against libiconv when it should do so.
 BUILDLINK_TRANSFORM.IRIX+=     l:fontconfig:fontconfig:iconv
 
-CONFIGURE_ENV+=                LPLIBDIR=${PREFIX}/lib
-CONFIGURE_ENV+=                ZLIB_DIR=${BUILDLINK_PREFIX.zlib}/lib
-
 # On OpenBSD 5.3, libxcb is required libXt.
 LDFLAGS.OpenBSD+=      -lxcb
 
@@ -101,11 +102,11 @@
 post-extract:
        ${MKDIR} ${WRKSRC}/bin
        ${MKDIR} ${WRKSRC}/obj
+       ${RM} -rf ${WRKSRC}/freetype
 #      ${RM} -rf ${WRKSRC}/jasper
        ${RM} -rf ${WRKSRC}/libpng
        ${RM} -rf ${WRKSRC}/tiff
        ${RM} -rf ${WRKSRC}/zlib
-       ${RM} -rf ${WRKSRC}/freetype
 
 #  To allow outside customization, rename cidfmap
 #       (if you look at inside of the file, it is logically empty)
@@ -116,11 +117,11 @@
 post-install:
        ${LN} -sf gsc ${DESTDIR}${PREFIX}/bin/gs
 
-.include "../../print/libpaper/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/freetype2/buildlink3.mk"
 # pkgsrc jasper is too new
 #.include "../../graphics/jasper/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../print/libpaper/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index