exiv2: improve cmake syntax
This commit is contained in:
parent
30a36fe1b3
commit
45509d2f58
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/opt.pub
|
untrusted comment: verify with /etc/ports/opt.pub
|
||||||
RWSE3ohX2g5d/Xq1wwwQV6rX5QlvzP1Op7fUsvomQwOIRDMlayW0tQW8RiE8yQhQ/cCZI2qCdngEoE2pzjRCf3JnkOmU6oatlwA=
|
RWSE3ohX2g5d/fLe5u06omesNlsBgIXLDmtSd2ifYj134JfTm2dcul6FpxWe01UXidpCeBJN0wx0EkJe8x8QPpGKH4qDeqxyaQA=
|
||||||
SHA256 (Pkgfile) = 90ee092a91016fde6ce23f1443b87c368d8f738d05d17a5e92d5d0469db36e3e
|
SHA256 (Pkgfile) = a36f9941c1091c2e6692c55bacf301734542cd3a451ce95c872f6717892a3425
|
||||||
SHA256 (.footprint) = f0be1a2ef91ca7a369adb22e8904c3174a5accad6a1c3286810b4b4b110ecf40
|
SHA256 (.footprint) = f0be1a2ef91ca7a369adb22e8904c3174a5accad6a1c3286810b4b4b110ecf40
|
||||||
SHA256 (exiv2-0.27.3.tar.gz) = 6398bc743c32b85b2cb2a604273b8c90aa4eb0fd7c1700bf66cbb2712b4f00c1
|
SHA256 (exiv2-0.27.3.tar.gz) = 6398bc743c32b85b2cb2a604273b8c90aa4eb0fd7c1700bf66cbb2712b4f00c1
|
||||||
|
@ -10,14 +10,13 @@ source=(https://github.com/Exiv2/exiv2/archive/v$version/$name-$version.tar.gz)
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|
||||||
export CXXFLAGS+=" -Wno-deprecated-declarations"
|
export CXXFLAGS+=" -Wno-deprecated-declarations -DNDEBUG"
|
||||||
|
|
||||||
cmake -S $name-$version -B build \
|
cmake -S $name-$version -B build \
|
||||||
-D CMAKE_BUILD_TYPE=Release \
|
-D CMAKE_BUILD_TYPE=Release \
|
||||||
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=lib \
|
-D CMAKE_INSTALL_LIBDIR=lib
|
||||||
-DEXIV2_ENABLE_BUILD_PO=OFF \
|
|
||||||
-DEXIV2_ENABLE_BUILD_SAMPLES=OFF \
|
|
||||||
|
|
||||||
cmake --build build
|
cmake --build build
|
||||||
DESTDIR=$PKG cmake --install build
|
DESTDIR=$PKG cmake --install build
|
||||||
|
Loading…
Reference in New Issue
Block a user