mirror of
				https://github.com/simon987/sist2-build.git
				synced 2025-10-31 09:26:59 +00:00 
			
		
		
		
	initial comit
This commit is contained in:
		
						commit
						aad92b714d
					
				
							
								
								
									
										37
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | |||||||
|  | FROM ubuntu:18.04 | ||||||
|  | 
 | ||||||
|  | MAINTAINER simon987 <me@simon987.net> | ||||||
|  | 
 | ||||||
|  | RUN apt update | ||||||
|  | RUN apt install -y software-properties-common && add-apt-repository ppa:ubuntu-toolchain-r/test -y | ||||||
|  | RUN apt update && apt install -y gcc-7 g++-7 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 | ||||||
|  | 
 | ||||||
|  | RUN apt install -y pkg-config python3 yasm ragel \ | ||||||
|  |         automake autotools-dev wget libtool libssl-dev \ | ||||||
|  |         curl zip unzip tar xorg-dev libglu1-mesa-dev libxcursor-dev \ | ||||||
|  |         libxml2-dev libxinerama-dev gettext \ | ||||||
|  |         nasm git \ | ||||||
|  |         && apt clean | ||||||
|  | 
 | ||||||
|  | # cmake | ||||||
|  | 
 | ||||||
|  | RUN wget https://github.com/Kitware/CMake/releases/download/v3.20.2/cmake-3.20.2.tar.gz && \ | ||||||
|  |     tar -xzf cmake-*.tar.gz && cd cmake-* && ./bootstrap && make -j33 && make install && rm -rf /cmake-* | ||||||
|  | 
 | ||||||
|  | # vcpkg | ||||||
|  | RUN git clone https://github.com/microsoft/vcpkg.git | ||||||
|  | RUN cd vcpkg && ./bootstrap-vcpkg.sh | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ADD patches/* / | ||||||
|  | RUN patch -p0 < mupdf-curl-dep.patch | ||||||
|  | RUN patch -p0 < mongoose-master.patch | ||||||
|  | 
 | ||||||
|  | RUN ./vcpkg/vcpkg install \ | ||||||
|  |         curl[core,openssl] \ | ||||||
|  |         && rm -rf /root/.cache/vcpkg /vcpkg/downloads /vcpkg/buildtrees /vcpkg/downloads | ||||||
|  | 
 | ||||||
|  | RUN ./vcpkg/vcpkg install \ | ||||||
|  |         lmdb cjson glib brotli libarchive[core,bzip2,libxml2,lz4,lzma,lzo] pthread tesseract libxml2 libmupdf gtest mongoose libuuid libmagic libraw jasper lcms gumbo \ | ||||||
|  |         && rm -rf /root/.cache/vcpkg /vcpkg/downloads /vcpkg/buildtrees /vcpkg/downloads | ||||||
|  | 
 | ||||||
							
								
								
									
										12
									
								
								patches/mongoose-master.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								patches/mongoose-master.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | |||||||
|  | --- /vcpkg/ports/mongoose/portfile.cmake
 | ||||||
|  | +++ /vcpkg/ports/mongoose/portfile.cmake
 | ||||||
|  | @@ -5,8 +5,8 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
 | ||||||
|  |  vcpkg_from_github( | ||||||
|  |      OUT_SOURCE_PATH SOURCE_PATH | ||||||
|  |      REPO cesanta/mongoose | ||||||
|  | -    REF 8e520756366ca5739f13dc6ad65fcf269dbbc994 #v7.1
 | ||||||
|  | -    SHA512 a966a8b4e47e36da0f630c3cf343c85a1c1138508a82e506b21e4b8bd72573d0e0145318f97b32a67f423e033b348de76a00b780430e4e69d1a98bd7494a3e0a
 | ||||||
|  | +    REF 9173034b96cc312c3184f5d10324a0964132ab67 # master
 | ||||||
|  | +    SHA512 355095feb9b86f2df1d7942823892b24b761b0021731112ab69382c5decb2c22a67e77893dc09d5e7cf7bd2cd633433e8c10c667df8421802a23fc8e1bd7c1ac
 | ||||||
|  |      HEAD_REF master | ||||||
|  |  ) | ||||||
							
								
								
									
										10
									
								
								patches/mupdf-curl-dep.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								patches/mupdf-curl-dep.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | |||||||
|  | --- /vcpkg/ports/libmupdf/CONTROL       2021-04-13 00:31:01.000000000 +0000
 | ||||||
|  | +++ /vcpkg/ports/libmupdf/CONTROL_      2021-04-13 00:42:40.805239545 +0000
 | ||||||
|  | @@ -1,6 +1,6 @@
 | ||||||
|  |  Source: libmupdf | ||||||
|  |  Version: 1.18.0 | ||||||
|  | -Build-Depends: freetype, libjpeg-turbo, harfbuzz, zlib, curl, glfw3, openjpeg, jbig2dec, gumbo
 | ||||||
|  | +Build-Depends: freetype, libjpeg-turbo, harfbuzz, zlib, curl[core,openssl], glfw3, openjpeg, jbig2dec, gumbo
 | ||||||
|  |  Homepage: https://github.com/ArtifexSoftware/mupdf | ||||||
|  |  Description: a lightweight PDF, XPS, and E-book library | ||||||
|  |  Supports: !osx | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user