From 454204bb8b2f5b90a2de545fc6a703034997b001 Mon Sep 17 00:00:00 2001 From: lioux Date: Wed, 3 Jul 2002 19:15:17 +0000 Subject: USE_REINPLACE --- multimedia/libdv/Makefile | 18 +++++++++--------- multimedia/libdv/files/patch-encodedv::dvconnect.c | 10 ++++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 multimedia/libdv/files/patch-encodedv::dvconnect.c (limited to 'multimedia/libdv') diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile index 96450a2f3228..f8e843b5cbab 100644 --- a/multimedia/libdv/Makefile +++ b/multimedia/libdv/Makefile @@ -18,6 +18,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ USE_GNOMELIBS= yes USE_GTK= yes +USE_REINPLACE= yes USE_XLIB= yes XFREE86_VERSION= 4 GNU_CONFIGURE= yes @@ -52,21 +53,20 @@ pre-everything:: @${ECHO_MSG} '===>' post-patch: - @${PERL} -pi -e 's|(pkgconfigdir =).+?(/pkgconfig)|\1 ${LOCALBASE}/libdata\2|' \ + @${REINPLACE_CMD} -E \ + -e 's|(pkgconfigdir =).+(/pkgconfig)|\1 ${LOCALBASE}/libdata\2|' \ ${WRKSRC}/Makefile.in - @${PERL} -pi -e 's|(-lXv)|\1 -lXext -L${X11BASE}/lib|; \ + @${REINPLACE_CMD} -E -e 's|(-lXv)|\1 -lXext -L${X11BASE}/lib|; \ s@(PKG_CONFIG --(cflags|libs) )"\$$REQUIRES"@\1 gtk@' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} - @${PERL} -pi -e 's|stdint.h|sys/types.h|' \ + @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|' \ ${WRKSRC}/libdv/dv_types.h \ ${WRKSRC}/libdv/encode.c - @${PERL} -pi -e 's|void\s+swab.+||' ${WRKSRC}/libdv/encode.c - @${PERL} -pi -e 's|SDL/|SDL11/|' ${WRKSRC}/playdv/display.h - @${PERL} -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/encodedv/dvavi.c \ + @${REINPLACE_CMD} -E -e 's|^void swab.+$$||' ${WRKSRC}/libdv/encode.c + @${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/playdv/display.h + @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/encodedv/dvavi.c \ ${WRKSRC}/encodedv/dvconnect.c - @${PERL} -pi -e 's|(^.+?)|#include \n\1|' \ - ${WRKSRC}/encodedv/dvconnect.c - @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|' \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \ ${WRKSRC}/encodedv/Makefile.in post-install: diff --git a/multimedia/libdv/files/patch-encodedv::dvconnect.c b/multimedia/libdv/files/patch-encodedv::dvconnect.c new file mode 100644 index 000000000000..b180dad296f5 --- /dev/null +++ b/multimedia/libdv/files/patch-encodedv::dvconnect.c @@ -0,0 +1,10 @@ +--- encodedv/dvconnect.c.orig Wed Jul 3 14:44:37 2002 ++++ encodedv/dvconnect.c Wed Jul 3 14:51:44 2002 +@@ -26,6 +26,7 @@ + + #include + #include ++#include + #include + #include + #include -- cgit