aboutsummaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-07-17 21:07:13 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-07-17 21:07:13 +0000
commit4fa432409574e5245b42a67d101fded1e5995e40 (patch)
treefcba12040d49854b1300ef49aad9cc88deb89095 /multimedia
parent5d84fbd9af8ffeaf17be7255455b3351c116a916 (diff)
downloadports-4fa432409574e5245b42a67d101fded1e5995e40.tar.gz
ports-4fa432409574e5245b42a67d101fded1e5995e40.zip
o Fix build in -STABLE (USE_LIBTOOL fix)
o Use opportunity to fine tune post-patch target PR: 40652 Prompted by: jbw <j.bw@verizon.net>
Notes
Notes: svn path=/head/; revision=63149
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mjpegtools/Makefile16
-rw-r--r--multimedia/mjpegtools/pkg-plist6
2 files changed, 12 insertions, 10 deletions
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile
index 5ba17e1ea0e6..7112b45a67a7 100644
--- a/multimedia/mjpegtools/Makefile
+++ b/multimedia/mjpegtools/Makefile
@@ -21,12 +21,13 @@ LIB_DEPENDS= aviplay-0.7.0:${PORTSDIR}/graphics/avifile \
USE_GNOMENG= yes
USE_GNOME= glib12
USE_GMAKE= yes
+USE_LIBTOOL= yes
USE_REINPLACE= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}" \
- LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}"
+ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS:S/"//g}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS:S/"//g}"
WANT_GNOME= yes
MAN1= divxdec.1 jpeg2yuv.1 lav2divx.1 lav2mpeg.1 lav2wav.1 lav2yuv.1 \
@@ -133,18 +134,25 @@ post-patch:
@${REINPLACE_CMD} -E -e 's@(-l(jpeg|openquicktime|png))@-L${LOCALBASE}/lib \1@; \
s|(-I) (\$$with_quicktime)|\1\2/include/openquicktime|; \
s|(with_quicktime/)(openquicktime)(.h)|\1include/\2/\2\3|; \
- s|-ldl||; \
+ s,-ldl([[:space:]]|"),\1,; \
s|(-ldv)|-L${LOCALBASE}/lib \1 ${PTHREAD_LIBS:S/"//g}|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' \
${WRKSRC}/lavtools/liblavplay.c \
${WRKSRC}/lavtools/yuvplay.c
.ifdef(WITH_QUICKTIME)
- @${REINPLACE_CMD} -E -e 's|^(have_openquicktime=).+|\1true|' \
+ @${REINPLACE_CMD} -E -e 's|^(have_openquicktime=).+$$|\1true|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
@${REINPLACE_CMD} -e 's|HAVE_OPENQUICKTIME|__FreeBSD__|' \
${WRKSRC}/lavtools/lav_io.h
.endif
+# a bug that is happening with configure. It's not detecting that
+# FreeBSD has pthreads. It might happen in other OSes but I'm not
+# risking such a general patch
+.if ${OPSYS:L} == "freebsd"
+ @${REINPLACE_CMD} -E -e 's|^(have_pthread=).+$$|\1true|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+.endif
pre-build:
.ifdef(WITH_QUICKTIME)
diff --git a/multimedia/mjpegtools/pkg-plist b/multimedia/mjpegtools/pkg-plist
index 6681a5ab063c..51b9c1a892cb 100644
--- a/multimedia/mjpegtools/pkg-plist
+++ b/multimedia/mjpegtools/pkg-plist
@@ -41,20 +41,14 @@ include/mjpegtools/mjpeg_types.h
include/mjpegtools/mpegconsts.h
include/mjpegtools/mpegtimecode.h
include/mjpegtools/yuv4mpeg.h
-lib/liblavfile-1.6.so
lib/liblavfile-1.6.so.0
lib/liblavfile.a
-lib/liblavfile.la
lib/liblavfile.so
-lib/liblavjpeg-1.6.so
lib/liblavjpeg-1.6.so.0
lib/liblavjpeg.a
-lib/liblavjpeg.la
lib/liblavjpeg.so
-lib/liblavplay-1.6.so
lib/liblavplay-1.6.so.0
lib/liblavplay.a
-lib/liblavplay.la
lib/liblavplay.so
lib/libmjpegutils.a
libdata/pkgconfig/mjpegtools.pc