Add initial scripts for lv2, still missing dependencies.
This commit is contained in:
		
							parent
							
								
									3119034c92
								
							
						
					
					
						commit
						2f8b0e7dc2
					
				
					 4 changed files with 78 additions and 1 deletions
				
			
		| 
						 | 
					@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND noninteractive
 | 
				
			||||||
RUN \
 | 
					RUN \
 | 
				
			||||||
    apt-get -y update && \
 | 
					    apt-get -y update && \
 | 
				
			||||||
    apt-get -y dist-upgrade && \
 | 
					    apt-get -y dist-upgrade && \
 | 
				
			||||||
    apt-get -y install build-essential yasm nasm pkg-config git curl wget cmake unzip subversion autoconf automake libtool autopoint cmake clang texinfo texi2html gperf gettext itstool ragel libc6-dev gtk-doc-tools gobject-introspection gawk meson ninja-build p7zip-full python3-distutils python3-apt && \
 | 
					    apt-get -y install build-essential yasm nasm pkg-config git curl wget cmake unzip subversion autoconf automake libtool autopoint cmake clang texinfo texi2html gperf gettext itstool ragel libc6-dev gtk-doc-tools gobject-introspection gawk meson ninja-build p7zip-full python3-distutils python3-apt python-is-python3 && \
 | 
				
			||||||
    apt-get -y clean
 | 
					    apt-get -y clean
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV CARGO_HOME="/opt/cargo" RUSTUP_HOME="/opt/rustup" PATH="/opt/cargo/bin:${PATH}"
 | 
					ENV CARGO_HOME="/opt/cargo" RUSTUP_HOME="/opt/rustup" PATH="/opt/cargo/bin:${PATH}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,6 +18,7 @@ ffbuild_dockerbuild() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    local myconf=(
 | 
					    local myconf=(
 | 
				
			||||||
        --prefix="$FFBUILD_PREFIX"
 | 
					        --prefix="$FFBUILD_PREFIX"
 | 
				
			||||||
 | 
					        --without-python
 | 
				
			||||||
        --disable-maintainer-mode
 | 
					        --disable-maintainer-mode
 | 
				
			||||||
        --disable-shared
 | 
					        --disable-shared
 | 
				
			||||||
        --enable-static
 | 
					        --enable-static
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										32
									
								
								scripts.d/45-lv2.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										32
									
								
								scripts.d/45-lv2.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LV2_REPO="https://gitlab.com/lv2/lv2.git"
 | 
				
			||||||
 | 
					LV2_COMMIT="ba34a58b32839491335b5bcbda46e11c4b209cbc"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_enabled() {
 | 
				
			||||||
 | 
					    return 0
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_dockerstage() {
 | 
				
			||||||
 | 
					    to_df "ADD $SELF /stage.sh"
 | 
				
			||||||
 | 
					    to_df "RUN run_stage"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_dockerbuild() {
 | 
				
			||||||
 | 
					    git-mini-clone "$LV2_REPO" "$LV2_COMMIT" lv2
 | 
				
			||||||
 | 
					    cd lv2
 | 
				
			||||||
 | 
					    git submodule update --init --recursive --depth 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    local mywaf=(
 | 
				
			||||||
 | 
					        --prefix="$FFBUILD_PREFIX"
 | 
				
			||||||
 | 
					        --no-plugins
 | 
				
			||||||
 | 
					        --no-coverage
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
 | 
				
			||||||
 | 
					    ./waf -j$(nproc)
 | 
				
			||||||
 | 
					    ./waf install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cd ..
 | 
				
			||||||
 | 
					    rm -rf lv2
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										44
									
								
								scripts.d/50-lilv.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										44
									
								
								scripts.d/50-lilv.sh
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
					@ -0,0 +1,44 @@
 | 
				
			||||||
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LILV_REPO="https://gitlab.com/lv2/lilv.git"
 | 
				
			||||||
 | 
					LILV_COMMIT="71a2ff5170caaa052814cce19b3de927d10d0e24"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_enabled() {
 | 
				
			||||||
 | 
					    # Still has missing dependencies
 | 
				
			||||||
 | 
					    return -1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_dockerstage() {
 | 
				
			||||||
 | 
					    to_df "ADD $SELF /stage.sh"
 | 
				
			||||||
 | 
					    to_df "RUN run_stage"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_dockerbuild() {
 | 
				
			||||||
 | 
					    git-mini-clone "$LILV_REPO" "$LILV_COMMIT" lilv
 | 
				
			||||||
 | 
					    cd lilv
 | 
				
			||||||
 | 
					    git submodule update --init --recursive --depth 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    local mywaf=(
 | 
				
			||||||
 | 
					        --prefix="$FFBUILD_PREFIX"
 | 
				
			||||||
 | 
					        --static
 | 
				
			||||||
 | 
					        --no-shared
 | 
				
			||||||
 | 
					        --no-bindings
 | 
				
			||||||
 | 
					        --no-utils
 | 
				
			||||||
 | 
					        --no-bash-completion
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
 | 
				
			||||||
 | 
					    ./waf -j$(nproc)
 | 
				
			||||||
 | 
					    ./waf install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cd ..
 | 
				
			||||||
 | 
					    rm -rf lilv
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_configure() {
 | 
				
			||||||
 | 
					    echo --enable-lv2
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ffbuild_unconfigure() {
 | 
				
			||||||
 | 
					    echo --disable-lv2
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue