diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2018-06-12 09:45:14 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2018-06-12 09:45:14 +0000 |
commit | 9a60a2e4c546c63e50ed3d5597c5533b138946f4 (patch) | |
tree | a2effec62daa5e6f6d778b9d83d9c09299678f15 /print/ghostscript9-agpl-base/files/patch-configure | |
parent | - Update WWW (diff) |
Clean up print/ghostscript9-agpl-base and print/ghostscript9-agpl-x11 and
update them to version 9.23. Share CMap data with graphics/poppler-data
and update that to 0.4.9.
Details for print/ghostscript9-agpl-base:
- Update to 9.23.
- Drop external epag device.
- Always use fontconfig to find fonts.
- Use ports openjpeg instead of bundled.
- Use bundled lcms2, because upstream forked it.
- Drop dependency on gsfonts. Newer versions of the fonts are already
included.
- Depend on poppler-data for CMap files. It has the same maps except
Identity-H, Identity-UTF16-H, and Identity-V.
- Resolve conflict with gambc by moving bin/gsc to bin/gs instead of
symlinking.
- Configure with --with-libiconv=maybe instead of --with-libiconv=native to
prevent detecting libiconv from converters/libiconv if it happens to be
installed. Also remove the ICONV option because it's part of the base
system in all supported versions of FreeBSD.
- Enable thread safety.
- Remove all driver options and simply build with --with-drivers=ALL. They
don't take up much space and don't require additional dependencies so
options don't provide much value. This makes the port a lot easier to
maintain.
- Set the internal font path to ${LOCALBASE}/share/fonts because the
upstream default doesn't make much sense on FreeBSD.
- Make dependency on libijs optional because it only seems to be used by
print/hpijs which is deprecated.
- Extract all directories and remove unwanted directories in post-patch so
contents can be examined after 'make extract'.
- Strip gs and libgs.so. Reported by stage-qa.
- Install color profiles in share/color/icc, where other programs can find
them.
- Remove old patches.
Details for print/ghostscript9-agpl-x11:
- Keep the Makefile similar to ghostscript9-agpl-base Makefile.
- Set PATCHDIR to ghostscript9-agpl-base/files so patches are shared.
Details for graphics/poppler-data:
- Update to 0.4.9.
- Replace post-patch with MAKE_ARGS.
- Add post-install to make all CMap files available in share/cmap so
Ghostscript can use them too. Unfortunately, Poppler requires these files
organised in subdirectories and Ghostscript wants them all in one
directory, hence the hardlinks.
PR: 228546
Approved by: maintainer timeout (15 days)
Notes
Notes:
svn path=/head/; revision=472239
Diffstat (limited to 'print/ghostscript9-agpl-base/files/patch-configure')
-rw-r--r-- | print/ghostscript9-agpl-base/files/patch-configure | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/print/ghostscript9-agpl-base/files/patch-configure b/print/ghostscript9-agpl-base/files/patch-configure new file mode 100644 index 000000000000..bab24d238ea2 --- /dev/null +++ b/print/ghostscript9-agpl-base/files/patch-configure @@ -0,0 +1,76 @@ +--- configure.orig 2018-03-21 08:49:04 UTC ++++ configure +@@ -5100,7 +5100,7 @@ if test "${enable_threadsafe+set}" = set; then : + fi + + if test x$enable_threadsafe = xyes ; then +- CFLAGS="-DGS_THREADSAFE" ++ CFLAGS="$CFLAGS -DGS_THREADSAFE" + fi + + +@@ -9950,42 +9950,42 @@ if test x$enable_threadsafe = xyes; then + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$P_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- P_DEVS0=`echo $P_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ P_DEVS0=`echo $P_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$F_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- F_DEVS0=`echo $F_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ F_DEVS0=`echo $F_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$CUPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- CUPS_DEVS0=`echo $CUPS_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ CUPS_DEVS0=`echo $CUPS_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$XPS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- XPS_DEVS0=`echo $XPS_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ XPS_DEVS0=`echo $XPS_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$IJS_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- IJS_DEVS0=`echo $IJS_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ IJS_DEVS0=`echo $IJS_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$PNG_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- PNG_DEVS0=`echo $PNG_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ PNG_DEVS0=`echo $PNG_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$X11_DEVS0{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- X11_DEVS0=`echo $X11_DEVS0 | sed "s/\b$ntsdev\b//g"` ++ X11_DEVS0=`echo $X11_DEVS0 | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + for ntsdev in $NTS_DEVS ; do + NTS_EXCLUDES="$(echo \"$JBIG2_DEVS{@:0}\" | grep -o $ntsdev) $NTS_EXCLUDES" +- JBIG2_DEVS=`echo $JBIG2_DEVS | sed "s/\b$ntsdev\b//g"` ++ JBIG2_DEVS=`echo $JBIG2_DEVS | sed "s/[[:<:]]$ntsdev[[:>:]]//g"` + done + + NTS_EXCLUDES=`echo "$NTS_EXCLUDES" | tr " " "\n" | sort | uniq | tr "\n" " "` +@@ -10145,7 +10145,12 @@ if test "${enable_dynamic+set}" = set; then : + DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" + ;; + *BSD) +- DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" ++ INSTALL_SHARED="install-shared" ++ if test "x$X_DEVS" != x; then ++ DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" ++ else ++ DYNAMIC_DEVS="" ++ fi + DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" + X11_DEVS="" + OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" |