2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 14:27:59 +01:00
|
|
|
#
|
|
|
|
# gutenprint
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-03-25 14:27:59 +01:00
|
|
|
|
2013-12-23 09:36:48 +01:00
|
|
|
GUTENPRINT_VERSION_MAJOR = 5.2
|
2016-01-24 20:49:33 +01:00
|
|
|
GUTENPRINT_VERSION = $(GUTENPRINT_VERSION_MAJOR).11
|
2013-12-23 09:36:48 +01:00
|
|
|
GUTENPRINT_SITE = http://downloads.sourceforge.net/project/gimp-print/gutenprint-$(GUTENPRINT_VERSION_MAJOR)/$(GUTENPRINT_VERSION)
|
2013-03-25 14:27:59 +01:00
|
|
|
GUTENPRINT_SOURCE = gutenprint-$(GUTENPRINT_VERSION).tar.bz2
|
2017-03-30 15:43:32 +02:00
|
|
|
GUTENPRINT_LICENSE = GPL-2.0+
|
2013-03-25 14:27:59 +01:00
|
|
|
GUTENPRINT_LICENSE_FILES = COPYING
|
|
|
|
|
2016-04-17 11:52:37 +02:00
|
|
|
# Needed, as we touch Makefile.am and configure.ac
|
2013-03-25 14:27:59 +01:00
|
|
|
GUTENPRINT_AUTORECONF = YES
|
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
GUTENPRINT_DEPENDENCIES = \
|
|
|
|
cups host-pkgconf \
|
2016-04-17 21:35:38 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
|
|
|
$(if $(BR2_PACKAGE_LIBUSB),libusb)
|
2013-03-25 14:27:59 +01:00
|
|
|
|
|
|
|
# host-gutenprint is needed to generate XML as part of compilation
|
|
|
|
# the program that generates the xml also links against libgutenprint
|
|
|
|
# so we need to build both a host package and a target package
|
|
|
|
GUTENPRINT_DEPENDENCIES += host-gutenprint
|
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
GUTENPRINT_CONF_ENV = \
|
|
|
|
ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config \
|
2013-06-28 18:46:34 +02:00
|
|
|
ac_cv_path_IJS_CONFIG=""
|
2013-05-12 20:41:41 +02:00
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
GUTENPRINT_CONF_OPTS = \
|
|
|
|
--disable-libgutenprintui2 \
|
|
|
|
--disable-samples \
|
|
|
|
--without-doc \
|
|
|
|
--without-gimp2 \
|
|
|
|
--without-foomatic \
|
|
|
|
--without-foomatic3 \
|
|
|
|
--disable-escputil \
|
|
|
|
--disable-test \
|
|
|
|
--disable-testpattern \
|
|
|
|
--with-cups="/usr" \
|
|
|
|
--with-sysroot="$(STAGING_DIR)" \
|
|
|
|
--disable-cups-ppds
|
2013-03-25 14:27:59 +01:00
|
|
|
|
|
|
|
# USE_PREGEN_XMLI18N_TMP_H is added by our patch
|
2017-07-05 13:14:22 +02:00
|
|
|
GUTENPRINT_MAKE_ENV = BR2_USE_PREGEN_XMLI18N_TMP_H=$(HOST_DIR)/include/xmli18n-tmp.h
|
2013-03-25 14:27:59 +01:00
|
|
|
|
2016-01-24 20:49:33 +01:00
|
|
|
HOST_GUTENPRINT_DEPENDENCIES = host-pkgconf
|
2013-03-25 14:27:59 +01:00
|
|
|
# The host-gutenprint shall create the required header
|
|
|
|
HOST_GUTENPRINT_MAKE_ENV =
|
|
|
|
|
2013-05-11 02:21:35 +02:00
|
|
|
# Even with --without-cups, gutenprint will still add the output of
|
|
|
|
# cups-config --cflags / --ldflags to it's compiler/linker flags if
|
|
|
|
# available on host.
|
|
|
|
# Notice: Because of the configure logic, it needs to be set to the
|
|
|
|
# empty string to to disable this, not just to /bin/false like elsewhere.
|
|
|
|
HOST_GUTENPRINT_CONF_ENV = ac_cv_path_CUPS_CONFIG=''
|
|
|
|
|
2014-12-30 08:36:23 +01:00
|
|
|
HOST_GUTENPRINT_CONF_OPTS = \
|
|
|
|
--disable-libgutenprintui2 \
|
|
|
|
--disable-samples \
|
|
|
|
--without-gimp2 \
|
|
|
|
--without-doc \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-nls-macos \
|
|
|
|
--without-foomatic \
|
|
|
|
--without-foomatic3 \
|
|
|
|
--disable-escputil \
|
|
|
|
--disable-test \
|
|
|
|
--disable-testpattern \
|
|
|
|
--without-cups
|
2013-03-25 14:27:59 +01:00
|
|
|
|
|
|
|
# Needed by autoreconf
|
|
|
|
define GUTENPRINT_CREATE_M4_DIR
|
|
|
|
mkdir -p $(@D)/m4local
|
|
|
|
endef
|
|
|
|
GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
|
2013-05-27 15:01:02 +02:00
|
|
|
HOST_GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR
|
2013-03-25 14:27:59 +01:00
|
|
|
|
|
|
|
define HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
|
2017-07-05 13:14:22 +02:00
|
|
|
cp $(@D)/src/xml/xmli18n-tmp.h $(HOST_DIR)/include
|
2013-03-25 14:27:59 +01:00
|
|
|
endef
|
|
|
|
HOST_GUTENPRINT_POST_BUILD_HOOKS += HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER
|
|
|
|
|
|
|
|
define GUTENPRINT_POST_INSTALL_TARGET_FIXUP
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/gutenprint/5.2
|
2017-07-05 13:14:23 +02:00
|
|
|
cp -rf $(HOST_DIR)/share/gutenprint/5.2/xml $(TARGET_DIR)/usr/share/gutenprint/5.2
|
2013-03-25 14:27:59 +01:00
|
|
|
endef
|
|
|
|
GUTENPRINT_POST_INSTALL_TARGET_HOOKS += GUTENPRINT_POST_INSTALL_TARGET_FIXUP
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|