1
0
forked from ports/contrib

openexr: explicitly set cmake build type and CXXFLAGS, syntax tweaks

This commit is contained in:
Matt Housh 2020-11-08 10:37:22 -06:00
parent 74df266048
commit 6ea43e6ad9
2 changed files with 10 additions and 7 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zHp7ockQ+3EvPfROdtmZakBJniZMg0ci372k8/nsugd/PQKyzO389YSo7F85QnusGPQ/kM3cuJby8iS/3ODqwQ=
SHA256 (Pkgfile) = 19cc67f9048d155dffdb1db44b3855d2603dc5d065224a34130e0330c8b34e4c
RWSagIOpLGJF37wmsWL5YhqemfnbH7fKmrFH3qGAiFMjll5YG7S6LP961KjHxP3BJ8WJYhHPXSZSlZZqmg0yNx+aTQ2PBxtiTwU=
SHA256 (Pkgfile) = 085c0d0f85df0be9d5117756d2c44a06b3bcc56c7b42a7817757318650524c12
SHA256 (.footprint) = 5e9a08061a6af6f4d22721dd85483d68541066aac9948235ceaa22266fa995a0
SHA256 (openexr-2.5.3.tar.gz) = 6a6525e6e3907715c6a55887716d7e42d09b54d2457323fcee35a0376960bebf
SHA256 (openexr-pkg-config.patch) = ee426e0e2b2fe317365638f970cea6c1d2fac7adf796a6a54353b6f9586a5142

View File

@ -11,11 +11,14 @@ source=(https://github.com/AcademySoftwareFoundation/openexr/archive/v$version/$
build() {
patch -d $name-$version -p1 -i $SRC/$name-pkg-config.patch
mkdir build && cd build
cmake ../$name-$version \
cmake -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib
make
make DESTDIR=$PKG install
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-Wno-dev \
$name-$version
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/doc
}