pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/cups Fix the output of "cups-config --ldflags" t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3019b2087631
branches:  trunk
changeset: 534462:3019b2087631
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Mon Oct 22 11:56:46 2007 +0000

description:
Fix the output of "cups-config --ldflags" to output "-Wl,-R/usr/pkg" like
other config scripts do.

Bump PKGREVISION since client software may not correctly build or run
without this fix.

diffstat:

 print/cups/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 277af27b8908 -r 3019b2087631 print/cups/Makefile
--- a/print/cups/Makefile       Mon Oct 22 11:30:42 2007 +0000
+++ b/print/cups/Makefile       Mon Oct 22 11:56:46 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.126 2007/10/08 11:39:47 rillig Exp $
+# $NetBSD: Makefile,v 1.127 2007/10/22 11:56:46 dsainty Exp $
 #
 # The CUPS author is very good about taking back changes into the main
 # CUPS distribution.  The correct place to send patches or bug-fixes is:
@@ -9,6 +9,7 @@
 BASE_VERS=     1.2.12
 DIST_VERS=     ${BASE_VERS}
 VERS=          ${DIST_VERS:S/-/./g}
+PKGREVISION=   1
 CATEGORIES=    print
 MASTER_SITES=  http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
                ftp://ftp2.easysw.com/pub/cups/${BASE_VERS}/ \
@@ -136,6 +137,12 @@
 SUBST_SED.paths+=      -e 's,@LOCALBASE@,${LOCALBASE},g'
 SUBST_STAGE.paths=     post-patch
 
+SUBST_CLASSES+=                rpathfix
+SUBST_FILES.rpathfix=  cups-config.in
+SUBST_MESSAGE.rpathfix=        Adding rpath to cups-config.
+SUBST_SED.rpathfix=    -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${LOCALBASE}/lib|g'
+SUBST_STAGE.rpathfix=  post-patch
+
 pre-configure:
        cd ${WRKSRC} && aclocal && autoconf
 



Home | Main Index | Thread Index | Old Index