1################################################################################ 2# 3# gutenprint 4# 5################################################################################ 6 7GUTENPRINT_VERSION_MAJOR = 5.2 8GUTENPRINT_VERSION = $(GUTENPRINT_VERSION_MAJOR).14 9GUTENPRINT_SITE = http://downloads.sourceforge.net/project/gimp-print/gutenprint-$(GUTENPRINT_VERSION_MAJOR)/$(GUTENPRINT_VERSION) 10GUTENPRINT_SOURCE = gutenprint-$(GUTENPRINT_VERSION).tar.bz2 11GUTENPRINT_LICENSE = GPL-2.0+ 12GUTENPRINT_LICENSE_FILES = COPYING 13GUTENPRINT_CPE_ID_VENDOR = gutenprint_project 14 15# Needed, as we touch Makefile.am 16GUTENPRINT_AUTORECONF = YES 17 18# Needed by autoreconf 19define GUTENPRINT_CREATE_M4_DIR 20 mkdir -p $(@D)/m4local 21endef 22GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR 23HOST_GUTENPRINT_POST_PATCH_HOOKS += GUTENPRINT_CREATE_M4_DIR 24 25GUTENPRINT_DEPENDENCIES = \ 26 cups host-pkgconf \ 27 $(if $(BR2_PACKAGE_LIBICONV),libiconv) \ 28 $(if $(BR2_PACKAGE_LIBUSB),libusb) 29 30# host-gutenprint is needed to generate XML as part of compilation 31# the program that generates the xml also links against libgutenprint 32# so we need to build both a host package and a target package 33GUTENPRINT_DEPENDENCIES += host-gutenprint 34 35GUTENPRINT_CONF_ENV = \ 36 ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config \ 37 ac_cv_path_IJS_CONFIG="" 38 39GUTENPRINT_CONF_OPTS = \ 40 --disable-libgutenprintui2 \ 41 --disable-samples \ 42 --without-doc \ 43 --without-gimp2 \ 44 --disable-escputil \ 45 --disable-test \ 46 --disable-testpattern \ 47 --with-cups="/usr" \ 48 --with-sysroot="$(STAGING_DIR)" \ 49 --disable-cups-ppds 50 51# USE_PREGEN_XMLI18N_TMP_H is added by our patch 52GUTENPRINT_MAKE_ENV = BR2_USE_PREGEN_XMLI18N_TMP_H=$(HOST_DIR)/include/xmli18n-tmp.h 53 54HOST_GUTENPRINT_DEPENDENCIES = host-pkgconf 55# The host-gutenprint shall create the required header 56HOST_GUTENPRINT_MAKE_ENV = 57 58# Even with --without-cups, gutenprint will still add the output of 59# cups-config --cflags / --ldflags to it's compiler/linker flags if 60# available on host. 61# Notice: Because of the configure logic, it needs to be set to the 62# empty string to to disable this, not just to /bin/false like elsewhere. 63HOST_GUTENPRINT_CONF_ENV = ac_cv_path_CUPS_CONFIG='' 64 65HOST_GUTENPRINT_CONF_OPTS = \ 66 --disable-libgutenprintui2 \ 67 --disable-samples \ 68 --without-gimp2 \ 69 --without-doc \ 70 --without-foomatic \ 71 --without-foomatic3 \ 72 --disable-escputil \ 73 --disable-test \ 74 --disable-testpattern \ 75 --without-cups 76 77define HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER 78 cp $(@D)/src/xml/xmli18n-tmp.h $(HOST_DIR)/include 79endef 80HOST_GUTENPRINT_POST_BUILD_HOOKS += HOST_GUTENPRINT_POST_BUILD_INSTAL_TMP_HEADER 81 82define GUTENPRINT_POST_INSTALL_TARGET_FIXUP 83 mkdir -p $(TARGET_DIR)/usr/share/gutenprint/5.2 84 cp -rf $(HOST_DIR)/share/gutenprint/5.2/xml $(TARGET_DIR)/usr/share/gutenprint/5.2 85endef 86GUTENPRINT_POST_INSTALL_TARGET_HOOKS += GUTENPRINT_POST_INSTALL_TARGET_FIXUP 87 88$(eval $(autotools-package)) 89$(eval $(host-autotools-package)) 90