diff options
-rw-r--r-- | audio/libmtp/Makefile | 3 |
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> |