openjpeg2: adopted port
This commit is contained in:
parent
362f612e05
commit
89f1656ca2
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3+VlbZxjHuUxw8J/qYGaxRKD5y4igiS0Pc/YItYgTf3N0J8AYttvWBXaIqCzS4psNahU38PaNcz+RcIY5nofEAA=
|
||||
SHA256 (Pkgfile) = f4042fde95c8c32504d9441bd9fb29d54e071404421e22562957d8f733b4f00c
|
||||
RWSagIOpLGJF30+3bH1vnwcN8GAaa1O2qpfcYri3AEyzQ0R84Ldq4VbNac3DlyR0CBjXkO1Kx8bCyiQ+Xy+bTimhi+AwduivLAc=
|
||||
SHA256 (Pkgfile) = 7e875464f135e8d247ce88dfd1d41f9cb24d3f888da18d419c722e0662db79ed
|
||||
SHA256 (.footprint) = a6542d767a29d7ed1921d9f321a40ffe96ba6edbbeb5fac1473d28becf04e21c
|
||||
SHA256 (openjpeg-2.5.0.tar.gz) = 0333806d6adecc6f7a91243b2b839ff4d2053823634d4f6ed7a59bc87409122a
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Description: An open source JPEG 2000 codec.
|
||||
# URL: https://github.com/uclouvain/openjpeg
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Maintainer: Tim Biermann, tbier at posteo dot de
|
||||
# Depends on: lcms2 libpng
|
||||
|
||||
name=openjpeg2
|
||||
@ -9,16 +9,14 @@ release=1
|
||||
source=(https://github.com/uclouvain/openjpeg/archive/v$version/openjpeg-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
# cmake --build/install fails, so don't offer ninja right now
|
||||
#[[ -e /usr/bin/ninja ]] && PKGMK_OJPG2+=' -G Ninja'
|
||||
cmake -S openjpeg-$version -B build $PKGMK_OJPG2 \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-Wno-dev
|
||||
cmake -S $name-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_INSTALL_LIBDIR=lib \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
||||
-Wno-dev
|
||||
|
||||
# cmake --build/install fails
|
||||
make -C build
|
||||
make DESTDIR=$PKG -C build install
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user