Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function APTGETSOURCE {
pkg=$1
cd $(mktemp -d)
apt source $pkg && apt-get build-dep -y $pkg
tmp_dir=$(pwd)
for d in $(find ./ -maxdepth 1 -not -path "./" -type d); do
cd $d
break
done
}
BUILDDIR=~/spring/build
# devil
APTGETSOURCE libdevil-dev
CFLAGS="-fPIC" ./configure \
--enable-static=yes \
--enable-dependency-tracking=yes \
--enable-debug=yes \
--enable-ILU=yes \
--enable-ILUT=yes \
--enable-altivec=no \
--enable-sse=yes \
--enable-sse2=yes \
--enable-sse3=yes \
--enable-x86=no \
--enable-x86_64=yes \
--enable-ppc=no \
--enable-warning=no \
--enable-game-formats=no \
--enable-blp=no \
--enable-bmp=yes \
--enable-dcx=no \
--enable-dds=yes \
--enable-dicom=no \
--enable-doom=no \
--enable-exr=yes \
--enable-fits=no \
--enable-gif=yes \
--enable-hdr=yes \
--enable-icns=no \
--enable-icon=no \
--enable-iff=no \
--enable-ilbm=no \
--enable-iwi=no \
--enable-jpeg=yes \
--enable-jp2=no \
--enable-lcms=no \
--enable-lif=no \
--enable-mdl=no \
--enable-mng=no \
--enable-mp3=no \
--enable-pcx=no \
--enable-pcd=no \
--enable-pic=no \
--enable-pix=no \
--enable-png=yes \
--enable-pnm=no \
--enable-psd=no \
--enable-psp=no \
--enable-pxr=no \
--enable-raw=no \
--enable-rot=no \
--enable-sgi=no \
--enable-sun=no \
--enable-texture=no \
--enable-tga=yes \
--enable-tiff=yes \
--enable-tpl=no \
--enable-utx=no \
--enable-vtf=no \
--enable-wal=no \
--enable-wbmp=no \
--enable-wdp=no \
--enable-xpm=no \
--enable-allegro=no \
--enable-directx8=no \
--enable-directx9=no \
--enable-opengl=yes \
--enable-sdl=yes \
--enable-w32=no \
--enable-x11=yes \
--enable-shm=no \
--enable-render=yes
$MAKE
$MAKE install
cd $BUILDDIR
#libtiff
APTGETSOURCE libtiff-dev
$CMAKE -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOpenGL_GL_PREFERENCE=LEGACY -Dwebp=OFF -Dzstd=OFF -Dlzma=OFF -Djbig=OFF -Djpeg12=OFF -Djpeg=OFF -Dold-jpeg=OFF -Dpixarlog=OFF -Dzlib=OFF .
$MAKE
$MAKE install
cd $BUILDDIR
#libfontconfig1-dev
APTGETSOURCE libfontconfig1-dev
CFLAGS="-fPIC" ./configure --enable-static=yes --enable-shared=yes --disable-docs
$MAKE
$MAKE install
cd $BUILDDIR
#libuuid1
APTGETSOURCE libuuid1
CFLAGS="-fPIC" ./configure \
--enable-static=yes \
--without-libiconv-prefix \
--without-libintl-prefix \
--without-util \
--without-udev \
--without-ncursesw \
--without-tinfo \
--without-readline \
--without-cap-ng \
--without-libz \
--without-user \
--without-btrfs \
--without-systemd \
--without-python \
--disable-all-programs \
--enable-libuuid
$MAKE
$MAKE install
cd $BUILDDIR
#libcurl4-openssl-dev
APTGETSOURCE libcurl4-openssl-dev
CFLAGS="-fPIC" ./configure \
--enable-static=yes \
--enable-shared=no \
--enable-pthreads \
--without-zlib \
--without-brotli \
--without-default-ssl-backend \
--without-winssl \
--without-schannel \
--without-darwinssl \
--without-secure-transport \
--without-amissl \
--without-ssl \
--without-gnutls \
--without-mbedtls \
--without-wolfssl \
--without-mesalink \
--without-bearssl \
--without-nss \
--without-ca-bundle \
--without-ca-path \
--without-ca-fallback \
--without-libpsl \
--without-libmetalink \
--without-librtmp \
--without-winidn \
--without-libidn2 \
--without-nghttp2 \
--without-ngtcp2 \
--without-nghttp3 \
--without-quiche \
--without-zsh-functions-dir \
--without-fish-functions-dir \
--disable-ares \
--disable-esni \
--disable-ftp \
--disable-file \
--disable-ldap \
--disable-ldaps \
--disable-rtsp \
--disable-proxy \
--disable-dict \
--disable-telnet \
--disable-tftp \
--disable-pop3 \
--disable-imap \
--disable-smb \
--disable-smtp \
--disable-gopher \
--disable-manual \
--disable-libcurl-option \
--disable-sspi \
--disable-crypto-auth \
--disable-ntlm-wb \
--disable-tls-srp \
--disable-cookies \
--disable-doh \
--disable-mime \
--disable-dateparse \
--disable-netrc \
--disable-progress-meter \
--disable-dnsshuffle \
--disable-alt-svc
$MAKE
$MAKE install
cd $BUILDDIR
# libvorbis-dev
APTGETSOURCE libvorbis-dev
CFLAGS="-fPIC" ./configure \
--enable-shared=no \
--enable-static=yes \
--disable-oggtest
$MAKE
$MAKE install
cd $BUILDDIR
# libunwind-dev
APTGETSOURCE libunwind-dev
CFLAGS="-fPIC" ./configure \
--enable-shared=no \
--enable-static=yes \
#--enable-setjmp
$MAKE
$MAKE install
cd $BUILDDIR
# liblzma-dev
APTGETSOURCE liblzma-dev
./configure \
--enable-shared=no \
--enable-static=yes \
--disable-xz \
--disable-xzdec \
--disable-scripts \
--disable-doc \
#--disable-lzmadec
#--disable-lzmainfo
#--disable-lzma-links
$MAKE
$MAKE install
cd $BUILDDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment