From: Thomas Ehrhardt <e.thomas@gmx.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] ghostscript: not compiled to use freetype lib
Date: Wed, 25 Jul 2018 08:08:11 -0500 (CDT) [thread overview]
Message-ID: <1532524091103-0.post@n4.nabble.com> (raw)
With this patch ghostscript 9.23 use the freetype lib.
--- a/package/ghostscript/ghostscript.mk
+++ b/package/ghostscript/ghostscript.mk
@@ -10,6 +10,7 @@
GHOSTSCRIPT_LICENSE = AGPL-3.0
GHOSTSCRIPT_LICENSE_FILES = LICENSE
# 0001-Fix-cross-compilation-issue.patch
+# 0002-Fix-shared-lib-freetype.patch
GHOSTSCRIPT_AUTORECONF = YES
GHOSTSCRIPT_DEPENDENCIES = \
host-lcms2 \
@@ -32,9 +33,15 @@
endef
GHOSTSCRIPT_POST_PATCH_HOOKS += GHOSTSCRIPT_REMOVE_LIBS
+ifeq ($(BR2_PACKAGE_FREETYPE),y)
+GHOSTSCRIPT_DEPENDENCIES += host-freetype
+HOST_CXXFLAGS += -I$(HOST_DIR)/usr/include/freetype2
+endif
+
GHOSTSCRIPT_CONF_ENV = \
CCAUX="$(HOSTCC)" \
- CFLAGSAUX="$(HOST_CFLAGS) $(HOST_LDFLAGS)"
+ CFLAGSAUX="$(HOST_CFLAGS) $(HOST_LDFLAGS)" \
+ CXXFLAGS="$(HOST_CXXFLAGS)"
GHOSTSCRIPT_CONF_OPTS = \
--disable-compile-inits \
---
file package/ghostscript/0002-Fix-shared-lib-freetype.patch
--- a/configure.ac
+++ b/configure.ac
@@ -967,21 +967,12 @@
if test x"$FTSRCDIR" = x"src"; then
AC_MSG_RESULT([no])
- if test "x$PKGCONFIG" != x; then
- AC_MSG_CHECKING(for system freetype2 >= 2.4.2 with pkg-config)
- # pkg-config needs the libtool version, which != the freetype2
version <sigh!>
- # There is a table of corresponding ft2<->libtool numbers in
freetype/docs/VERSION.DLL
- if $PKGCONFIG --atleast-version=12.0.6 freetype2; then
- AC_MSG_RESULT(yes)
- FT_CFLAGS="$CFLAGS `$PKGCONFIG --cflags freetype2`"
- FT_LIBS="`$PKGCONFIG --libs freetype2`"
- FT_BRIDGE=1
- SHARE_FT=1
- else
- AC_MSG_RESULT(no)
- AC_MSG_WARN([freetype library source not found...using
native rasterizer])
- AFS=1
- fi
+ if test "x$BUILD_PKGCONFIG" != x; then
+ AC_MSG_RESULT(yes)
+ FT_CFLAGS="$CFLAGS `$BUILD_PKGCONFIG --cflags freetype2`"
+ FT_LIBS="`$BUILD_PKGCONFIG --libs freetype2`"
+ FT_BRIDGE=1
+ SHARE_FT=1
else
AC_CHECK_HEADER([ft2build.h], [FT_BRIDGE=1], [AFS=1])
--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/
next reply other threads:[~2018-07-25 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-25 13:08 Thomas Ehrhardt [this message]
2018-07-25 14:36 ` [Buildroot] [PATCH] ghostscript: not compiled to use freetype lib Thomas Petazzoni
2018-07-26 12:51 ` Thomas Ehrhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1532524091103-0.post@n4.nabble.com \
--to=e.thomas@gmx.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.