mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
zopfli: clean up
This commit is contained in:
@@ -4,15 +4,13 @@ compatible compressor programmed in C"
|
||||
HOMEPAGE="https://github.com/google/zopfli"
|
||||
COPYRIGHT="2011-2018 Google Inc."
|
||||
LICENSE="Apache v2"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
SOURCE_URI="$HOMEPAGE/archive/zopfli-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e955a7739f71af37ef3349c4fa141c648e8775bceb2195be07e86f8e638814bd"
|
||||
SOURCE_DIR="zopfli-zopfli-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2 ?arm ?ppc"
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
fi
|
||||
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
@@ -53,18 +51,15 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake .. \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DZOPFLI_BUILD_SHARED=ON \
|
||||
-DCMAKE_INSTALL_LIBDIR=$libDir \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir
|
||||
make $jobArgs
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
make -C build install
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user