blob: 6c35c1c625ff328810b422b2baa7a1b075da9f23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= lives
PORTVERSION= 2.8.4
PORTREVISION= 4
CATEGORIES= multimedia
MASTER_SITES= http://lives-video.com/releases/
DISTNAME= LiVES-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Video editing system
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:multimedia/v4l_compat \
${LOCALBASE}/bin/analyseplugin:audio/ladspa
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libjack.so:audio/jack \
libogg.so:audio/libogg \
libpulse.so:audio/pulseaudio \
liboil-0.3.so:devel/liboil \
libprojectM.so:graphics/libprojectm \
libvisual-0.4.so:graphics/libvisual04 \
libopencv_calib3d.so:graphics/opencv \
libopencv_core.so:graphics/opencv-core \
libpng16.so:graphics/png \
libfftw3.so:math/fftw3 \
libfftw3f.so:math/fftw3-float \
libavcodec.so:multimedia/ffmpeg \
libdv.so:multimedia/libdv \
libtheora.so:multimedia/libtheora \
libmjpegutils.so:multimedia/mjpegtools \
libschroedinger-1.0.so:multimedia/schroedinger
RUN_DEPENDS= ${LOCALBASE}/bin/analyseplugin:audio/ladspa \
mpg123:audio/mpg123 \
sox:audio/sox \
ogg123:audio/vorbis-tools \
convert:graphics/ImageMagick \
sswf:graphics/sswf \
mencoder:multimedia/mencoder \
mplayer:multimedia/mplayer \
ogmmerge:multimedia/ogmtools \
transcode:multimedia/transcode \
x264:multimedia/x264 \
cdrecord:sysutils/cdrtools
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= compiler:c++11-lib gettext-runtime ghostscript:run libtool \
localbase pathfix perl5 pkgconfig python shebangfix tar:bzip2
SHEBANG_FILES= build-lives-rfx-plugin build-lives-rfx-plugin-multi \
smogrify tools/autolives.pl lives-plugins/plugins/encoders/*_encoder \
lives-plugins/marcos-encoders/*encoder* \
lives-plugins/plugins/encoders/multi_encoder3 \
lives-plugins/plugins/playback/audiostream/audiostreamer.pl
GNU_CONFIGURE= yes
USE_XORG= x11
USE_GL= gl
USE_SDL= sdl
USE_GNOME= cairo gdkpixbuf2 gtk30 intltool
USE_LDCONFIG= yes
CONFIGURE_ARGS= --disable-ldvgrab
INSTALL_TARGET= install-strip
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
OPTIONS_DEFINE= DOCS DOXYGEN FREI0R MATROSKA NLS
OPTIONS_SUB= yes
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
DOXYGEN_CONFIGURE_OFF= --disable-doxygen
FREI0R_BUILD_DEPENDS= frei0r>0:graphics/frei0r
FREI0R_RUN_DEPENDS= frei0r>0:graphics/frei0r
FREI0R_CONFIGURE_ENV_OFF= ac_cv_header_frei0r_h=no
MATROSKA_RUN_DEPENDS= mkvmerge:multimedia/mkvtoolnix
NLS_USES= gettext-tools
NLS_CONFIGURE_OFF= --disable-nls
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \
's/^LIBS = $$/&@LIBS@/'
@${REINPLACE_CMD} -e 's| install-docDATA||g; s|-$$(VERSION)||g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|: install-data-local |: |g; s|-ldl||' \
${WRKSRC}/lives-plugins/weed-plugins/gdk/Makefile.in \
${WRKSRC}/lives-plugins/weed-plugins/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/local/lib/|${LOCALBASE}/lib/|g' \
${WRKSRC}/lives-plugins/weed-plugins/frei0r.c
@${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
@${REINPLACE_CMD} '/selectRandom/d' \
${WRKSRC}/lives-plugins/weed-plugins/projectM.cpp
@${REINPLACE_CMD} 's|/usr/bin/perl|${perl_CMD}|' \
${WRKSRC}/build-lives-rfx-plugin
pre-build-NLS-on:
@(cd ${WRKSRC}/po && ${DO_MAKE_BUILD} update-po)
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
post-install-DOXYGEN-on:
@(cd ${STAGEDIR}${PREFIX} && ${FIND} ${DOCSDIR:S|${PREFIX}/||}/html \
! -type d >> ${TMPPLIST})
.include <bsd.port.mk>
|