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.
This commit is contained in:
dsainty 2007-10-22 11:56:46 +00:00
parent 9949b8ea43
commit 77c395ab30

View file

@ -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 @@ PKGNAME= cups-${VERS}
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_FILES.paths= ${WRKDIR}/cups.pam
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