diff options
author | lioux <lioux@FreeBSD.org> | 2002-07-18 05:07:13 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-07-18 05:07:13 +0800 |
commit | 1029840b22aa3d416cbc6deb060f7b58aeb83634 (patch) | |
tree | 1c9860e4fbb1cce6883ed0b1c083285236afced7 /multimedia | |
parent | 3a690db4a041481c7646a99bf9dfdffdb5fc78b6 (diff) | |
download | freebsd-ports-gnome-1029840b22aa3d416cbc6deb060f7b58aeb83634.tar.gz freebsd-ports-gnome-1029840b22aa3d416cbc6deb060f7b58aeb83634.tar.zst freebsd-ports-gnome-1029840b22aa3d416cbc6deb060f7b58aeb83634.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>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/mjpegtools/Makefile | 16 | ||||
-rw-r--r-- | multimedia/mjpegtools/pkg-plist | 6 |
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 |