aboutsummaryrefslogtreecommitdiff
path: root/package/cups
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-02-07 12:35:05 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-02-08 22:34:26 +0100
commita5ce8576748421b6dece97a665e575d7dfc9fbe8 (patch)
treed872f865298312833109804f95d5355fc919efc7 /package/cups
parent580225af20b6c692da76eb43b20382a47b3ed170 (diff)
downloadbuildroot-a5ce8576748421b6dece97a665e575d7dfc9fbe8.tar.gz
buildroot-a5ce8576748421b6dece97a665e575d7dfc9fbe8.tar.bz2
package: use <pkg>_CONFIG_SCRIPTS wherever possible
Use the <pkg>_CONFIG_SCRIPTS mechanism in all packages for which it does all what the package was doing. A few packages, like libxslt, are for now left out, since they need some additional fixup (for example a fixup of includedir). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/cups')
-rw-r--r--package/cups/cups.mk10
1 files changed, 1 insertions, 9 deletions
diff --git a/package/cups/cups.mk b/package/cups/cups.mk
index 3eb83eac9c..f8ace71f94 100644
--- a/package/cups/cups.mk
+++ b/package/cups/cups.mk
@@ -15,6 +15,7 @@ CUPS_CONF_OPT = --without-perl \
--disable-gnutls \
--disable-gssapi \
--libdir=/usr/lib
+CUPS_CONFIG_SCRIPTS = cups-config
CUPS_DEPENDENCIES = $(if $(BR2_PACKAGE_ZLIB),zlib) \
$(if $(BR2_PACKAGE_LIBPNG),libpng) \
@@ -61,13 +62,4 @@ CUPS_DEPENDENCIES += host-autoconf
CUPS_PRE_CONFIGURE_HOOKS += CUPS_FIXUP_AUTOCONF
-# Fixup prefix= and exec_prefix= in cups-config
-define CUPS_FIXUP_CUPS_CONFIG
- $(SED) 's%^prefix=/usr%prefix=$(STAGING_DIR)/usr%' \
- -e 's%^exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \
- $(STAGING_DIR)/usr/bin/cups-config
-endef
-
-CUPS_POST_INSTALL_STAGING_HOOKS += CUPS_FIXUP_CUPS_CONFIG
-
$(eval $(autotools-package))