aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-08-18 22:13:17 +0800
committersat <sat@FreeBSD.org>2007-08-18 22:13:17 +0800
commit02bf54d97c78e127dbe44b7a7e0d4438d0733b70 (patch)
treea567a2e4351cd277316339ac82179aa64862bfc8 /audio
parent83f79ef3e4f8a533fc7f1f799cad5e6112e08cb6 (diff)
downloadfreebsd-ports-gnome-02bf54d97c78e127dbe44b7a7e0d4438d0733b70.tar.gz
freebsd-ports-gnome-02bf54d97c78e127dbe44b7a7e0d4438d0733b70.tar.zst
freebsd-ports-gnome-02bf54d97c78e127dbe44b7a7e0d4438d0733b70.zip
- Change the order of cflags to prevent build failure when an old
version of libmtp is already installed Approved by: Petar Petrov <pesho.petrov@gmail.com> (maintainer)
Diffstat (limited to 'audio')
-rw-r--r--audio/libmtp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/libmtp/Makefile b/audio/libmtp/Makefile
index 5b148df4c180..0bc37a60f10a 100644
--- a/audio/libmtp/Makefile
+++ b/audio/libmtp/Makefile
@@ -27,5 +27,8 @@ LDFLAGS= -L${LOCALBASE}/lib -liconv
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
+# Change the order of cflags so that the right (new) header gets picked up
+ @${REINPLACE_CMD} -Ee 's|(\$$[(]CPPFLAGS[)]) (\$$[(]AM_CFLAGS[)])|\2 \1|'\
+ ${WRKSRC}/examples/Makefile.in
.include <bsd.port.mk>