summaryrefslogtreecommitdiff
path: root/libwebp-32/Pkgfile
blob: bfeeb16d2c2792441c13164c39f516a4719c8e17 (plain)
    1 # Description: A library for a new image format comparable to JPEG.
    2 # URL: https://developers.google.com/speed/webp/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: giflib-32 libpng-32 libtiff-32 zstd-32 libwebp
    5 # Optional: freeglut-32 libsdl-32 ninja
    6 
    7 name=libwebp-32
    8 version=1.2.1
    9 release=1
   10 source=(https://storage.googleapis.com/downloads.webmproject.org/releases/webp/${name%-*}-$version.tar.gz)
   11 
   12 build() {
   13 	prt-get isinst ninja && PKGMK_LIBWEBP_32+=' -G Ninja'
   14 
   15 prt-get isinst freeglut && ! prt-get isinst freeglut-32 && printf "\e[031mfreeglut is detected on your system, please run:
   16 prt-get depinst freeglut-32
   17 before continuing with libwebp-32.\033[0m\n" &&
   18 exit 1
   19 
   20 prt-get isinst libsdl && ! prt-get isinst libsdl-32 && printf "\e[031mlibsdl is detected on your system, please run:
   21 prt-get depinst libsdl-32
   22 before continuing with libwebp-32.\033[0m\n" &&
   23 exit 1
   24 
   25 	cmake -S ${name%-*}-$version -B build $PKGMK_LIBWEBP_32 \
   26 		-D CMAKE_INSTALL_PREFIX="/usr" \
   27 		-D CMAKE_INSTALL_LIBDIR="/usr/lib32" \
   28 		-D BUILD_SHARED_LIBS=ON \
   29 		-D CMAKE_BUILD_TYPE=Release \
   30 		-D CMAKE_C_FLAGS_RELEASE="${CFLAGS}"
   31 
   32 	cmake --build build
   33 	DESTDIR=$PKG cmake --install build
   34 
   35 
   36 	rm -r $PKG/usr/{bin,share,include}
   37 }

Generated by cgit