d37ce8e1a4
- Remove 0001-fix-static.patch - Fixed upstream - Remove 0002-fix-stack-protector-check.patch - Fixed upstream - Remove 0003-mantohtml.patch - Replaced by 0001-Remove-man-from-BUILDDIRS-in- configure.patch - Add 0002-Do-not-use-genstrings.patch - Add CUPS_PDFTOPS option to Config.in.legacy - This support was moved to the cups-filters package. Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com> [Thomas: - rewrap patch description in patch 0001 - adjust patch 0002 to completely remove the call to genstrings instead of commenting it, and remove the potentially confusing 'echo' above it - add a third patch that sanitizes the installation process to avoid non-working stripping, owernship changes, etc.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
77 lines
1.8 KiB
Makefile
77 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# cups
|
|
#
|
|
################################################################################
|
|
|
|
CUPS_VERSION = 2.1.2
|
|
CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.bz2
|
|
CUPS_SITE = http://www.cups.org/software/$(CUPS_VERSION)
|
|
CUPS_LICENSE = GPLv2 LGPLv2
|
|
CUPS_LICENSE_FILES = LICENSE.txt
|
|
CUPS_INSTALL_STAGING = YES
|
|
CUPS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) DSTROOT=$(STAGING_DIR) install
|
|
CUPS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
|
|
|
|
CUPS_CONF_OPTS = \
|
|
--without-perl \
|
|
--without-java \
|
|
--without-php \
|
|
--disable-gssapi \
|
|
--libdir=/usr/lib
|
|
CUPS_CONFIG_SCRIPTS = cups-config
|
|
CUPS_DEPENDENCIES = \
|
|
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
CUPS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system \
|
|
--enable-systemd
|
|
CUPS_DEPENDENCIES += systemd
|
|
else
|
|
CUPS_CONF_OPTS += --disable-systemd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
|
CUPS_CONF_OPTS += --enable-dbus
|
|
CUPS_DEPENDENCIES += dbus
|
|
else
|
|
CUPS_CONF_OPTS += --disable-dbus
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
CUPS_CONF_OPTS += --enable-gnutls
|
|
CUPS_DEPENDENCIES += gnutls
|
|
else
|
|
CUPS_CONF_OPTS += --disable-gnutls
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
CUPS_CONF_OPTS += --with-python
|
|
CUPS_DEPENDENCIES += python
|
|
else
|
|
CUPS_CONF_OPTS += --without-python
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
CUPS_CONF_OPTS += --enable-libusb
|
|
CUPS_DEPENDENCIES += libusb
|
|
else
|
|
CUPS_CONF_OPTS += --disable-libusb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPAPER),y)
|
|
CUPS_CONF_OPTS += --enable-libpaper
|
|
CUPS_DEPENDENCIES += libpaper
|
|
else
|
|
CUPS_CONF_OPTS += --disable-libpaper
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
CUPS_DEPENDENCIES += avahi
|
|
CUPS_CONF_OPTS += --enable-avahi
|
|
else
|
|
CUPS_CONF_OPTS += --disable-avahi
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|