Skip to content

Commit 3563a1c

Browse files
committed
lv2 support
1 parent 6181785 commit 3563a1c

File tree

6 files changed

+89
-19
lines changed

6 files changed

+89
-19
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ubuntu:20.04 AS build
33
ENV DEBIAN_FRONTEND noninteractive
44

55
RUN apt-get update \
6-
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev \
6+
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev python \
77
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
88
&& update-ca-certificates
99

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ This script will download different packages with different licenses from variou
1919
These sources are out of control by the developers of this script. By downloading and using this script, you are fully aware of this.
2020

2121
Use this script at your own risk. I maintain this script in my spare time.
22-
Please do not file bug reports for systems other than Debian 10 and macOS 10.15.x
23-
because I don't have the resources and the time to maintain other systems.
22+
Please do not file bug reports for systems other than Debian 10 and macOS 10.15.x,
23+
because I don't have the resources or time to maintain other systems.
2424

2525
## Supported Codecs
2626
* `x264`: H.264 Video Codec (MPEG-4 AVC)

build-ffmpeg

Lines changed: 82 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,91 @@ if ! command_exists "curl"; then
240240
exit 1
241241
fi
242242

243+
if ! command_exists "python"; then
244+
echo "Python command not found. Lv2 filter will not be available.";
245+
fi
246+
243247

244248
##
245249
## build tools
246250
##
247251

252+
if build "pkg-config"; then
253+
download "https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz"
254+
execute ./configure --silent --prefix="${WORKSPACE}" --with-pc-path="${WORKSPACE}"/lib/pkgconfig --with-internal-glib
255+
execute make -j $MJOBS
256+
execute make install
257+
build_done "pkg-config"
258+
fi
259+
260+
261+
if command_exists "python"; then
262+
263+
if build "lv2"; then
264+
download "https://lv2plug.in/spec/lv2-1.18.0.tar.bz2" "lv2-1.18.0.tar.bz2"
265+
execute ./waf configure --prefix="${WORKSPACE}" --lv2-user
266+
execute ./waf
267+
execute ./waf install
268+
269+
build_done "lv2"
270+
fi
271+
272+
if build "waflib"; then
273+
download "https://gitlab.com/drobilla/autowaf/-/archive/cc37724b9bfa889baebd8cb10f38b8c7cab83e37/autowaf-cc37724b9bfa889baebd8cb10f38b8c7cab83e37.tar.gz" "autowaf.tar.gz"
274+
build_done "waflib"
275+
fi
276+
277+
if build "serd"; then
278+
download "https://gitlab.com/drobilla/serd/-/archive/v0.30.6/serd-v0.30.6.tar.gz" "serd-v0.30.6.tar.gz"
279+
execute cp -r ${PACKAGES}/autowaf/* "${PACKAGES}/serd-v0.30.6/waflib/"
280+
execute ./waf configure --prefix="${WORKSPACE}" --static --no-shared --no-posix
281+
execute ./waf
282+
execute ./waf install
283+
build_done "serd"
284+
fi
285+
286+
if build "pcre"; then
287+
download "https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz" "pcre-8.44.tar.gz"
288+
execute ./configure --prefix="${WORKSPACE}" --disable-shared --enable-static
289+
execute make -j $MJOBS
290+
execute make install
291+
292+
build_done "pcre"
293+
fi
294+
295+
if build "sord"; then
296+
download "https://gitlab.com/drobilla/sord/-/archive/v0.16.6/sord-v0.16.6.tar.gz" "sord-v0.16.6.tar.gz"
297+
execute cp -r ${PACKAGES}/autowaf/* "${PACKAGES}/sord-v0.16.6/waflib/"
298+
execute ./waf configure --prefix="${WORKSPACE}" CFLAGS=${CFLAGS} --static --no-shared --no-utils
299+
execute ./waf CFLAGS=${CFLAGS}
300+
execute ./waf install
301+
302+
build_done "sord"
303+
fi
304+
305+
if build "sratom"; then
306+
download "https://gitlab.com/lv2/sratom/-/archive/v0.6.6/sratom-v0.6.6.tar.gz" "sratom-v0.6.6.tar.gz"
307+
execute cp -r ${PACKAGES}/autowaf/* "${PACKAGES}/sratom-v0.6.6/waflib/"
308+
execute ./waf configure --prefix="${WORKSPACE}" --static --no-shared
309+
execute ./waf
310+
execute ./waf install
311+
312+
build_done "sratom"
313+
fi
314+
315+
if build "lilv"; then
316+
download "https://gitlab.com/lv2/lilv/-/archive/v0.24.10/lilv-v0.24.10.tar.gz" "lilv-v0.24.10.tar.gz"
317+
execute cp -r ${PACKAGES}/autowaf/* "${PACKAGES}/lilv-v0.24.10/waflib/"
318+
execute ./waf configure --prefix="${WORKSPACE}" --static --no-shared --no-utils
319+
execute ./waf
320+
execute ./waf install
321+
CFLAGS+=" -I$WORKSPACE/include/lilv-0"
322+
build_done "lilv"
323+
fi
324+
325+
CONFIGURE_OPTIONS+=("--enable-lv2")
326+
fi
327+
248328
if build "yasm"; then
249329
download "https://github.com/yasm/yasm/releases/download/v1.3.0/yasm-1.3.0.tar.gz"
250330
execute ./configure --prefix="${WORKSPACE}"
@@ -261,17 +341,9 @@ if build "nasm"; then
261341
build_done "nasm"
262342
fi
263343

264-
if build "pkg-config"; then
265-
download "https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz"
266-
execute ./configure --silent --prefix="${WORKSPACE}" --with-pc-path="${WORKSPACE}"/lib/pkgconfig --with-internal-glib
267-
execute make -j $MJOBS
268-
execute make install
269-
build_done "pkg-config"
270-
fi
271-
272344
if build "zlib"; then
273345
download "https://www.zlib.net/zlib-1.2.11.tar.gz"
274-
execute ./configure --static --prefix="${WORKSPACE}"
346+
execute ./configure --static --prefix="${WORKSPACE}"
275347
execute make -j $MJOBS
276348
execute make install
277349
build_done "zlib"
@@ -281,7 +353,7 @@ if build "openssl"; then
281353
download "https://www.openssl.org/source/openssl-1.1.1h.tar.gz"
282354
execute ./config --prefix="${WORKSPACE}" --openssldir="${WORKSPACE}" --with-zlib-include="${WORKSPACE}"/include/ --with-zlib-lib="${WORKSPACE}"/lib no-shared zlib
283355
execute make -j $MJOBS
284-
execute make install
356+
execute make install_sw
285357

286358
build_done "openssl"
287359
fi
@@ -378,7 +450,6 @@ if build "vid_stab"; then
378450
fi
379451
CONFIGURE_OPTIONS+=("--enable-libvidstab")
380452

381-
382453
if build "av1"; then
383454
download "https://aomedia.googlesource.com/aom/+archive/b52ee6d44adaef8a08f6984390de050d64df9faa.tar.gz" "av1.tar.gz" "av1"
384455
make_dir "$PACKAGES"/aom_build
@@ -391,7 +462,6 @@ if build "av1"; then
391462
fi
392463
CONFIGURE_OPTIONS+=("--enable-libaom")
393464

394-
395465
##
396466
## audio library
397467
##

cuda-centos.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV NVIDIA_VISIBLE_DEVICES all
66
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
77

88
RUN yum group install -y "Development Tools" \
9-
&& yum install -y curl libva-devel \
9+
&& yum install -y curl libva-devel python2 \
1010
&& rm -rf /var/cache/yum/* \
1111
&& yum clean all
1212

cuda-ubuntu.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV NVIDIA_VISIBLE_DEVICES all
77
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
88

99
RUN apt-get update \
10-
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev \
10+
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev python \
1111
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
1212
&& update-ca-certificates
1313

full-static.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM nvidia/cuda:11.1-devel-ubuntu20.04 AS build
1+
FROM ubuntu:20.04 AS build
22

33
ENV DEBIAN_FRONTEND noninteractive
44
ENV NVIDIA_VISIBLE_DEVICES all
55
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
66

77
RUN apt-get update \
8-
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates \
8+
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates python \
99
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
1010
&& update-ca-certificates
1111

0 commit comments

Comments
 (0)