mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 04:18:55 -04:00
23 lines
967 B
Plaintext
23 lines
967 B
Plaintext
$NetBSD: patch-ao,v 1.2 2011/10/11 03:12:55 jnemeth Exp $
|
|
|
|
--- build_tools/mkpkgconfig.orig 2011-08-25 15:27:06.000000000 +0000
|
|
+++ build_tools/mkpkgconfig
|
|
@@ -21,12 +21,15 @@ else
|
|
fi
|
|
|
|
## Clean out CFLAGS for the spec file.
|
|
+## pkgsrc -- the regex below isn't sed compatible, so always use perl
|
|
+EXTREGEX="perl -pe"
|
|
|
|
-LOCAL_CFLAGS=`echo $CFLAGS | ${EXTREGEX} 's/\s*-pipe\s*//g' | ${EXTREGEX} 's/-[Wmp]\S*\s*//g' | \
|
|
+LOCAL_CFLAGS=`echo $CFLAGS | ${EXTREGEX} 's/\-pipe\s*//g' | ${EXTREGEX} 's/-[Wmp]\S*\s*//g' | \
|
|
${EXTREGEX} 's/-I(include|\.\.\/include) //g' | \
|
|
${EXTREGEX} 's/-DINSTALL_PREFIX=\S* //g' | \
|
|
${EXTREGEX} 's/-DASTERISK_VERSION=\S* //g' | \
|
|
- ${EXTREGEX} 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g'`
|
|
+ ${EXTREGEX} 's/-DAST(ETCDIR|LIBDIR|VARLIBDIR|VARRUNDIR|SPOOLDIR|LOGDIR|CONFPATH|MODDIR|AGIDIR)=\S* //g' | \
|
|
+ ${EXTREGEX} "s;${WRKSRC};${PREFIX};g"`
|
|
|
|
|
|
cat <<EOF > "$PPATH/asterisk.pc"
|