From 5d4541f0f627768159b65f3416ddce91311496e4 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 8 Sep 2009 19:02:11 +0000 Subject: Do not depend on libtools's mode detection but pass down --mode=XXX correctly. --- print/cups/distinfo | 4 +++- print/cups/patches/patch-ae | 55 +++++++++++++++++++++++++++++++++++++++++++++ print/cups/patches/patch-af | 13 +++++++++++ 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 print/cups/patches/patch-ae create mode 100644 print/cups/patches/patch-af diff --git a/print/cups/distinfo b/print/cups/distinfo index cf080270af1..b4f04f21e6c 100644 --- a/print/cups/distinfo +++ b/print/cups/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.62 2009/08/05 17:19:16 drochner Exp $ +$NetBSD: distinfo,v 1.63 2009/09/08 19:02:11 joerg Exp $ SHA1 (cups-1.3.11-source.tar.bz2) = c8304ee8d631bb370fc10fc1fffbe8ebae413df2 RMD160 (cups-1.3.11-source.tar.bz2) = aa263fe29350cee307bbd72ef2f5cb061c2476e0 @@ -7,6 +7,8 @@ SHA1 (patch-aa) = 51ff6e66f881e445adca768d4cf2f6bd18fc36dd SHA1 (patch-ab) = 0b8c6662b836775c693da7ebc613ca7a5594840a SHA1 (patch-ac) = 02fab706563f7ba01d66530f9462759689c09f04 SHA1 (patch-ad) = 6695c344453495cd960460733a80d50654786c60 +SHA1 (patch-ae) = 4b2c1e8821856ba69d6af72a5b96a7b88c346656 +SHA1 (patch-af) = 5445e6b5ced9dee71f48208369728e9d298dd0bb SHA1 (patch-an) = 5c12e6de5d83659011c6050786049756e4aa4b49 SHA1 (patch-ao) = c9f93c7d69d934677a605197959a162dfb1658eb SHA1 (patch-at) = eea32b989402c353f5f1644348c1042a3d4ddfa1 diff --git a/print/cups/patches/patch-ae b/print/cups/patches/patch-ae new file mode 100644 index 00000000000..04f4388fcc4 --- /dev/null +++ b/print/cups/patches/patch-ae @@ -0,0 +1,55 @@ +$NetBSD: patch-ae,v 1.24 2009/09/08 19:02:11 joerg Exp $ + +--- Makedefs.in.orig 2009-09-07 18:00:35.000000000 +0200 ++++ Makedefs.in +@@ -19,8 +19,10 @@ + + AR = @AR@ + AWK = @AWK@ +-CC = @LIBTOOL@ @CC@ +-CXX = @LIBTOOL@ @CXX@ ++CC_COMPILE = @LIBTOOL@ --mode=compile @CC@ ++CXX_COMPILE = @LIBTOOL@ --mode=compile @CXX@ ++CC = @LIBTOOL@ --mode=link @CC@ ++CXX = @LIBTOOL@ --mode=link @CXX@ + DSO = @DSO@ + HTMLDOC = @HTMLDOC@ + INSTALL = @INSTALL@ +@@ -40,11 +42,11 @@ STRIP = @STRIP@ + # Installation programs... + # + +-INSTALL_BIN = $(LIBTOOL) $(INSTALL) -m 755 ++INSTALL_BIN = $(LIBTOOL) --mode=install $(INSTALL) -m 755 + INSTALL_CONFIG = $(INSTALL) -m @CUPS_CONFIG_FILE_PERM@ + INSTALL_DATA = $(INSTALL) -m 644 + INSTALL_DIR = $(INSTALL) -d +-INSTALL_LIB = $(LIBTOOL) $(INSTALL) -m 755 ++INSTALL_LIB = $(LIBTOOL) --mode=install $(INSTALL) -m 755 + INSTALL_MAN = $(INSTALL) -m 644 + INSTALL_SCRIPT = $(INSTALL) -m 755 + +@@ -246,19 +248,19 @@ DBUSDIR = @DBUSDIR@ + + .c.o: + echo Compiling $<... +- $(CC) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c $< ++ $(CC_COMPILE) $(ARCHFLAGS) $(OPTIM) $(ALL_CFLAGS) -c $< + + .c.32.o: + echo Compiling 32-bit $<... +- $(CC) $(ARCH32FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< ++ $(CC_COMPILE) $(ARCH32FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< + + .c.64.o: + echo Compiling 64-bit $<... +- $(CC) $(ARCH64FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< ++ $(CC_COMPILE) $(ARCH64FLAGS) $(OPTIM) $(ALL_CFLAGS) -c -o $@ $< + + .cxx.o: + echo Compiling $<... +- $(CXX) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c $< ++ $(CXX_COMPILE) $(ARCHFLAGS) $(OPTIM) $(ALL_CXXFLAGS) -c $< + + .man.1 .man.1m .man.5 .man.7 .man.8: + echo Linking $<... diff --git a/print/cups/patches/patch-af b/print/cups/patches/patch-af new file mode 100644 index 00000000000..e92f59fffb7 --- /dev/null +++ b/print/cups/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.18 2009/09/08 19:02:11 joerg Exp $ + +--- backend/Makefile.orig 2009-09-07 18:28:31.000000000 +0200 ++++ backend/Makefile +@@ -55,7 +55,7 @@ depend: + install: all + $(INSTALL_DIR) -m 755 $(SERVERBIN)/backend + for file in $(RBACKENDS); do \ +- $(LIBTOOL) $(INSTALL) -m 700 $$file $(SERVERBIN)/backend; \ ++ $(LIBTOOL) --mode=install $(INSTALL) -m 700 $$file $(SERVERBIN)/backend; \ + done + for file in $(UBACKENDS); do \ + $(INSTALL_BIN) $$file $(SERVERBIN)/backend; \ -- cgit v1.2.3