allegro4: updated cmake syntax
This commit is contained in:
parent
bcc83a9cca
commit
2947606895
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF345s5uAwCg0AFWO8SakKSMzPvRh8RGX1Vd/nir4vuIk9k4+otLAPhsIxwDdHwZiQrYPMlQkHWmuk5g4tnwMIzw8=
|
||||
SHA256 (Pkgfile) = 3049840b78cc66fa9298414eedba3dc15c1ee133e405922a0f02371a56bd467c
|
||||
RWSagIOpLGJF37f1feWfYFVQHchhyAvN/syzEFBiv+7TPX9LfUzEUn2zUJ4qwY9QXuukJWg0z0DkUhQY+leUpZHmlC6PjvxL9gE=
|
||||
SHA256 (Pkgfile) = ef29d525369eb09d1934b13ceeed9a50aa5fed9df35685f54f551a58107603f0
|
||||
SHA256 (.footprint) = 81a4898120838c1756471886424cde34bc3c043bab5d9a475be2dd3cd3a8ad7e
|
||||
SHA256 (allegro-4.4.3.1.tar.gz) = ec19dbc9a021244582b4819b3583ee594b50141f9fcf6944a4ed8069cbf8d4d4
|
||||
|
@ -9,18 +9,17 @@ release=1
|
||||
source=(https://github.com/liballeg/allegro5/releases/download/$version/allegro-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cmake -Sallegro-$version -Bbuild -GNinja \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev
|
||||
cmake -S allegro-$version -B build -G Ninja \
|
||||
-D CMAKE_INSTALL_PREFIX=/usr \
|
||||
-D CMAKE_BUILD_TYPE=Release \
|
||||
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-D WANT_DOCS_HTML=OFF \
|
||||
-W no-dev
|
||||
|
||||
cmake --build build -j ${JOBS:-1}
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
install -Dm644 allegro-$version/misc/allegro.m4 \
|
||||
$PKG/usr/share/aclocal/allegro.m4
|
||||
|
||||
rm -r $PKG/usr/doc
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user