mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
- Enable Frei0r module on FreeBSD 6.X after the OpenCV upgrade.
Approved by: tabthorpe (mentor, implicit)
This commit is contained in:
parent
b70aa3476d
commit
6c900db1d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260263
@ -6,6 +6,7 @@
|
||||
|
||||
PORTNAME= mlt
|
||||
PORTVERSION= 0.5.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
||||
|
||||
@ -23,7 +24,7 @@ GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --disable-debug \
|
||||
--enable-gpl
|
||||
USE_GMAKE= yes
|
||||
MAKE_ENV= LDFLAGS="-lc" # required by FreeBSD 6
|
||||
MAKE_ENV= LDFLAGS="-lc" # Required by FreeBSD 6.X.
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/mlt
|
||||
|
||||
@ -34,7 +35,7 @@ PORTDOCS= AUTHORS ChangeLog NEWS README docs demo
|
||||
|
||||
OPTIONS= AVFORMAT "Avformat module" on \
|
||||
DV "Quasar DV Codec module" on \
|
||||
FREI0R "Frei0r module (broken on FreeBSD 6.X)" on \
|
||||
FREI0R "Frei0r module" on \
|
||||
GTK2 "GTK2 module" on \
|
||||
JACKRACK "JACK Rack module" on \
|
||||
KINO "Kino module" on \
|
||||
@ -48,7 +49,7 @@ OPTIONS= AVFORMAT "Avformat module" on \
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.ifdef(WITH_AVFORMAT)
|
||||
.ifndef(WITHOUT_AVFORMAT)
|
||||
LIB_DEPENDS+= avformat.1:${PORTSDIR}/multimedia/ffmpeg
|
||||
CONFIGURE_ARGS+= --enable-avformat \
|
||||
--avformat-swscale
|
||||
@ -58,7 +59,7 @@ CONFIGURE_ARGS+= --disable-avformat
|
||||
PLIST_SUB+= AVFORMAT="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_DV)
|
||||
.ifndef(WITHOUT_DV)
|
||||
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv
|
||||
CONFIGURE_ARGS+= --enable-dv
|
||||
PLIST_SUB+= DV=""
|
||||
@ -67,7 +68,16 @@ CONFIGURE_ARGS+= --disable-dv
|
||||
PLIST_SUB+= DV="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_GTK2)
|
||||
.ifndef(WITHOUT_FREI0R)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
|
||||
CONFIGURE_ARGS+= --enable-frei0r
|
||||
PLIST_SUB+= FREI0R=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-frei0r
|
||||
PLIST_SUB+= FREI0R="@comment "
|
||||
.endif
|
||||
|
||||
.ifndef(WITHOUT_GTK2)
|
||||
CONFIGURE_ARGS+= --enable-gtk2
|
||||
USE_GNOME+= gdkpixbuf gtk20 pango
|
||||
PLIST_SUB+= GTK2=""
|
||||
@ -76,7 +86,7 @@ CONFIGURE_ARGS+= --disable-gtk2
|
||||
PLIST_SUB+= GTK2="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_JACKRACK)
|
||||
.ifndef(WITHOUT_JACKRACK)
|
||||
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
||||
CONFIGURE_ARGS+= --enable-jackrack
|
||||
@ -86,7 +96,7 @@ CONFIGURE_ARGS+= --disable-jackrack
|
||||
PLIST_SUB+= JACKRACK="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_KINO)
|
||||
.ifndef(WITHOUT_KINO)
|
||||
LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv \
|
||||
quicktime.0:${PORTSDIR}/multimedia/libquicktime
|
||||
CONFIGURE_ARGS+= --enable-kino
|
||||
@ -102,7 +112,7 @@ CONFIGURE_ARGS+= --enable-mmx
|
||||
CONFIGURE_ARGS+= --disable-mmx
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_QIMAGE)
|
||||
.ifndef(WITHOUT_QIMAGE)
|
||||
CONFIGURE_ARGS+= --enable-qimage \
|
||||
--qimage-includedir="${QT_INCDIR}" \
|
||||
--qimage-libdir="${QT_LIBDIR}"
|
||||
@ -113,7 +123,7 @@ CONFIGURE_ARGS+= --disable-qimage
|
||||
PLIST_SUB+= QIMAGE="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_RESAMPLE)
|
||||
.ifndef(WITHOUT_RESAMPLE)
|
||||
LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
|
||||
CONFIGURE_ARGS+= --enable-resample
|
||||
PLIST_SUB+= RESAMPLE=""
|
||||
@ -122,7 +132,7 @@ CONFIGURE_ARGS+= --disable-resample
|
||||
PLIST_SUB+= RESAMPLE="@comment "
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_SOX)
|
||||
.ifndef(WITHOUT_SOX)
|
||||
LIB_DEPENDS+= sox.1:${PORTSDIR}/audio/sox
|
||||
CONFIGURE_ARGS+= --enable-sox
|
||||
PLIST_SUB+= SOX=""
|
||||
@ -143,7 +153,7 @@ CONFIGURE_ARGS+= --enable-sse2
|
||||
CONFIGURE_ARGS+= --disable-sse2
|
||||
.endif
|
||||
|
||||
.ifdef(WITH_VORBIS)
|
||||
.ifndef(WITHOUT_VORBIS)
|
||||
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis
|
||||
CONFIGURE_ARGS+= --enable-vorbis
|
||||
PLIST_SUB+= VORBIS=""
|
||||
@ -154,16 +164,6 @@ PLIST_SUB+= VORBIS="@comment "
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# frei0r depends on OpenCV, which is not available on FreeBSD 6
|
||||
.if defined(WITH_FREI0R) && ${OSVERSION} >= 700042
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
|
||||
CONFIGURE_ARGS+= --enable-frei0r
|
||||
PLIST_SUB+= FREI0R=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-frei0r
|
||||
PLIST_SUB+= FREI0R="@comment "
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
.if ${OSVERSION} < 700041
|
||||
${REINPLACE_CMD} -E -e 's|^(LDFLAGS.*)|\1 -lthr|' \
|
||||
|
Loading…
Reference in New Issue
Block a user