summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-08-18 14:13:17 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-08-18 14:13:17 +0000
commitf7e2f115ee9c75e6c3c0b77ac0071e6e22afe472 (patch)
tree3dfa2cfc29f259f9c7670cc9667b8618a8fe156d
parent60685c074ad61a25d438728f5a720230f26be684 (diff)
downloadfreebsd-ports-f7e2f115ee9c75e6c3c0b77ac0071e6e22afe472.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)
-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>