tidy: updated cmake syntax
This commit is contained in:
parent
aef12e73f6
commit
3656034d90
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3z6TLFD/bKa+O+XA56PigRg4T9cPWjUI77HZwVmoMN1Oh2zj6GFRNqpg+IrdX0Bdvh3ncqkiGPSFpIJ8r6IWSwc=
|
||||
SHA256 (Pkgfile) = 8c6b4f065b770f49b513f3ac4bf9dcda74725deb4284e53b1d979e6348def980
|
||||
RWSagIOpLGJF3xA7I21UTRdrpepyDbYgupRD5LhG1GiSoL6/WBVRsSAd1kdyK3wzqhoBbUEwP5F9jPT4Yg/saXD1YNjyJlojegs=
|
||||
SHA256 (Pkgfile) = 829c0800c3a8c5d8f1c2c4496bbdcc979475bb6c7fbee58bc7f83eaed3686465
|
||||
SHA256 (.footprint) = 4fd164f764385da9f0b35ae3bee909a2c63fcd35bf58e9c3e7326a589e2ef562
|
||||
SHA256 (tidy-d1b906991a7587688d384b648c55731f9be52506.tar.gz) = fa440efd18a455663d6d7f01e3a564cc2d270427a216c7fc16466b6b6de7dcb0
|
||||
|
17
tidy/Pkgfile
17
tidy/Pkgfile
@ -10,17 +10,16 @@ release=1
|
||||
source=(https://github.com/htacg/tidy-html5/archive/$commit.tar.gz#/$name-$commit.tar.gz)
|
||||
|
||||
build() {
|
||||
cd tidy-html5-$commit
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. \
|
||||
[[ -e /usr/bin/ninja ]] && PKGMK_TIDY_OPTIONS=' -GNinja'
|
||||
cmake -Stidy-html5-$commit -Bbuild $PKGMK_TIDY_OPTIONS \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
||||
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
||||
-Wno-dev
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
cmake --build build
|
||||
DESTDIR=$PKG cmake --install build
|
||||
|
||||
# Compatibility symlinks until everything is ported
|
||||
ln -s tidybuffio.h $PKG/usr/include/buffio.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user