2012-11-05 23:17:15 +01:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2007-01-26 16:56:13 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lives
|
2013-12-12 17:14:12 +01:00
|
|
|
PORTVERSION= 2.2.2
|
2007-01-26 16:56:13 +01:00
|
|
|
CATEGORIES= multimedia
|
2012-01-20 00:17:19 +01:00
|
|
|
MASTER_SITES= http://salsaman.home.xs4all.nl/lives/current/
|
2009-07-26 22:46:25 +02:00
|
|
|
DISTNAME= LiVES-${PORTVERSION}
|
2007-01-26 16:56:13 +01:00
|
|
|
|
2011-03-23 17:58:01 +01:00
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
2007-01-26 16:56:13 +01:00
|
|
|
COMMENT= Video editing system
|
|
|
|
|
2012-01-20 00:17:19 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-11-05 23:17:15 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:${PORTSDIR}/multimedia/v4l_compat \
|
|
|
|
${LOCALBASE}/bin/analyseplugin:${PORTSDIR}/audio/ladspa
|
2013-08-29 17:01:46 +02:00
|
|
|
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib \
|
|
|
|
libjack.so:${PORTSDIR}/audio/jack \
|
|
|
|
libpulse.so:${PORTSDIR}/audio/pulseaudio \
|
|
|
|
liboil-0.3.so:${PORTSDIR}/devel/liboil \
|
|
|
|
libvisual-0.4.so:${PORTSDIR}/graphics/libvisual04 \
|
|
|
|
libopencv_calib3d.so:${PORTSDIR}/graphics/opencv \
|
|
|
|
libfftw3.so:${PORTSDIR}/math/fftw3 \
|
|
|
|
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
|
|
|
|
libavcodec.so:${PORTSDIR}/multimedia/ffmpeg \
|
|
|
|
libdv.so:${PORTSDIR}/multimedia/libdv \
|
|
|
|
libmjpegutils.so:${PORTSDIR}/multimedia/mjpegtools \
|
|
|
|
libschroedinger-1.0.so:${PORTSDIR}/multimedia/schroedinger
|
2012-11-05 23:17:15 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/analyseplugin:${PORTSDIR}/audio/ladspa \
|
|
|
|
mpg123:${PORTSDIR}/audio/mpg123 \
|
2007-01-26 16:56:13 +01:00
|
|
|
sox:${PORTSDIR}/audio/sox \
|
|
|
|
ogg123:${PORTSDIR}/audio/vorbis-tools \
|
2009-06-18 14:22:57 +02:00
|
|
|
convert:${PORTSDIR}/graphics/ImageMagick \
|
2007-01-26 16:56:13 +01:00
|
|
|
sswf:${PORTSDIR}/graphics/sswf \
|
2009-06-18 14:22:57 +02:00
|
|
|
mencoder:${PORTSDIR}/multimedia/mencoder \
|
|
|
|
mkvmerge:${PORTSDIR}/multimedia/mkvtoolnix \
|
|
|
|
mplayer:${PORTSDIR}/multimedia/mplayer \
|
|
|
|
ogmmerge:${PORTSDIR}/multimedia/ogmtools \
|
|
|
|
transcode:${PORTSDIR}/multimedia/transcode \
|
|
|
|
x264:${PORTSDIR}/multimedia/x264 \
|
2013-04-26 14:35:50 +02:00
|
|
|
xmms:${PORTSDIR}/multimedia/xmms \
|
|
|
|
cdrecord:${PORTSDIR}/sysutils/cdrtools
|
2007-01-26 16:56:13 +01:00
|
|
|
|
2007-03-16 21:10:13 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:L}
|
2009-06-18 14:22:57 +02:00
|
|
|
|
2013-08-29 17:01:46 +02:00
|
|
|
USES= pkgconfig perl5
|
2007-01-26 16:56:13 +01:00
|
|
|
USE_BZIP2= yes
|
2012-12-19 00:41:59 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-01-12 18:49:16 +01:00
|
|
|
USE_CSTD= gnu89
|
2007-01-26 16:56:13 +01:00
|
|
|
USE_PYTHON= yes
|
2007-03-28 09:09:24 +02:00
|
|
|
USE_GHOSTSCRIPT_RUN= yes
|
2013-04-18 00:25:38 +02:00
|
|
|
USE_GNOME= gtk20
|
2012-12-19 00:41:59 +01:00
|
|
|
USE_LDCONFIG= yes
|
2010-10-17 11:43:36 +02:00
|
|
|
|
2013-04-18 00:25:38 +02:00
|
|
|
CONFIGURE_ARGS= --disable-ldvgrab --disable-gtk3
|
2009-06-18 14:22:57 +02:00
|
|
|
|
2013-02-07 18:06:44 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -fPIC
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -pthread
|
2009-06-18 14:22:57 +02:00
|
|
|
|
|
|
|
DOC_FILES= AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED README \
|
|
|
|
OMC/lives-OMC.txt \
|
|
|
|
RFX/LiVES-Perl.odt RFX/rfxbuilder.odt RFX/RFX.spec \
|
|
|
|
docs/clip_format.txt \
|
|
|
|
lives-plugins/marcos-encoders/README.multi_encoder \
|
|
|
|
weed-docs/weedspec.txt weed-docs/weedevents.txt
|
|
|
|
|
2008-04-09 17:51:53 +02:00
|
|
|
PORT_VERBS= lives LiVES _encoder.py midistart midistop smogrify sendOSC
|
2007-01-26 16:56:13 +01:00
|
|
|
|
2013-06-19 19:00:05 +02:00
|
|
|
OPTIONS_DEFINE= DOCS DOXYGEN FREI0R NLS
|
|
|
|
OPTIONS_SUB= yes
|
2012-06-08 00:44:21 +02:00
|
|
|
|
2013-06-19 19:00:05 +02:00
|
|
|
DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:${PORTSDIR}/devel/doxygen
|
|
|
|
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
|
|
|
|
FREI0R_BUILD_DEPENDS= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
|
|
|
|
FREI0R_RUN_DEPENDS= ${LOCALBASE}/include/frei0r.h:${PORTSDIR}/graphics/frei0r
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_OFF= --disable-nls
|
2009-07-26 22:46:25 +02:00
|
|
|
|
2013-06-19 19:00:05 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2012-04-14 20:04:19 +02:00
|
|
|
|
2013-06-19 19:00:05 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MFREI0R}
|
2009-07-26 22:46:25 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_header_frei0r_h=no
|
2012-01-20 00:17:19 +01:00
|
|
|
.endif
|
|
|
|
|
2007-01-26 16:56:13 +01:00
|
|
|
post-patch:
|
2012-12-19 00:41:59 +01:00
|
|
|
@${REINPLACE_CMD} -e 's| install-docDATA||g; s|-$$(VERSION)||g' \
|
2012-01-20 00:17:19 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
2012-12-19 00:41:59 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|: install-data-local |: |g; s|-ldl||' \
|
2012-01-20 00:17:19 +01:00
|
|
|
${WRKSRC}/lives-plugins/weed-plugins/gdk/Makefile.in \
|
|
|
|
${WRKSRC}/lives-plugins/weed-plugins/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|off64_t|off_t|g ; s|lseek64|lseek|g' \
|
|
|
|
${WRKSRC}/src/audio.c \
|
|
|
|
${WRKSRC}/lives-plugins/plugins/decoders/dv_decoder.c \
|
|
|
|
${WRKSRC}/lives-plugins/plugins/decoders/ogg_decoder.h
|
2009-11-02 11:54:30 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/lib/|${LOCALBASE}/lib/|g' \
|
2009-07-26 22:46:25 +02:00
|
|
|
${WRKSRC}/lives-plugins/weed-plugins/frei0r.c
|
2012-12-19 00:41:59 +01:00
|
|
|
@${REINPLACE_CMD} 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/libweed/Makefile.in
|
2012-11-05 23:17:15 +01:00
|
|
|
@${REINPLACE_CMD} 's|/bin/touch|/usr/bin/touch|g' \
|
2012-04-26 00:47:59 +02:00
|
|
|
${WRKSRC}/src/callbacks.c \
|
|
|
|
${WRKSRC}/src/saveplay.c \
|
|
|
|
${WRKSRC}/src/utils.c
|
2013-01-29 18:49:45 +01:00
|
|
|
@${REINPLACE_CMD} '/cp -rf/ s|data/|data|g; /cp -rf/ s|icons/|icons|g' \
|
|
|
|
${WRKSRC}/lives-plugins/weed-plugins/cairo/Makefile.in \
|
|
|
|
${WRKSRC}/lives-plugins/weed-plugins/Makefile.in
|
2009-11-20 07:06:40 +01:00
|
|
|
|
2009-06-18 14:22:57 +02:00
|
|
|
post-install:
|
2013-10-27 22:40:27 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${STAGEDIR}${PREFIX}/bin && ${RM} lives && ${LN} -s lives-exe lives
|
|
|
|
|
2013-06-19 19:00:05 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
2013-11-01 20:48:44 +01:00
|
|
|
@cd ${STAGEDIR}${PREFIX} && \
|
|
|
|
${FIND} ${DOCSDIR:S|${PREFIX}/||}/html ! -type d >> ${TMPPLIST} && \
|
2013-06-19 19:00:05 +02:00
|
|
|
${FIND} ${DOCSDIR:S|${PREFIX}/||} -type d | ${SORT} -r | \
|
|
|
|
${SED} 's|^|@dirrm |' >> ${TMPPLIST}
|
2009-06-18 14:22:57 +02:00
|
|
|
.endif
|
2007-01-26 16:56:13 +01:00
|
|
|
|
2012-01-20 00:17:19 +01:00
|
|
|
.include <bsd.port.mk>
|