aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libdv
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-07-03 19:15:17 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-07-03 19:15:17 +0000
commit6bbf6dab165a729301f9432ab7e8ec4609dde2d7 (patch)
treecdd777297ced0b449b13b17da430bc5f5caeea29 /multimedia/libdv
parent3eae406cebbf2ed89cefe245cd0b2557186f84b6 (diff)
downloadports-6bbf6dab165a729301f9432ab7e8ec4609dde2d7.tar.gz
ports-6bbf6dab165a729301f9432ab7e8ec4609dde2d7.zip
Notes
Diffstat (limited to 'multimedia/libdv')
-rw-r--r--multimedia/libdv/Makefile18
-rw-r--r--multimedia/libdv/files/patch-encodedv::dvconnect.c10
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>