diff options
author | lioux <lioux@FreeBSD.org> | 2002-07-04 03:15:17 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-07-04 03:15:17 +0800 |
commit | 454204bb8b2f5b90a2de545fc6a703034997b001 (patch) | |
tree | ae0a80efd63faba316fb1abe79782b22cedd731c /multimedia/libdv | |
parent | 097a62797d4241e3e5fac68147f5752908ce8387 (diff) | |
download | freebsd-ports-gnome-454204bb8b2f5b90a2de545fc6a703034997b001.tar.gz freebsd-ports-gnome-454204bb8b2f5b90a2de545fc6a703034997b001.tar.zst freebsd-ports-gnome-454204bb8b2f5b90a2de545fc6a703034997b001.zip |
USE_REINPLACE
Diffstat (limited to 'multimedia/libdv')
-rw-r--r-- | multimedia/libdv/Makefile | 18 | ||||
-rw-r--r-- | multimedia/libdv/files/patch-encodedv::dvconnect.c | 10 |
2 files changed, 19 insertions, 9 deletions
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|(^.+?<sys/mman.h>)|#include <sys/types.h>\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 <stdio.h> + #include <sys/ioctl.h> ++#include <sys/types.h> + #include <sys/mman.h> + #include <sys/time.h> + #include <unistd.h> |