forked from ports/contrib
fontforge: update cmake syntax and disable html pages
This commit is contained in:
parent
2bbdc5ea1f
commit
2c567a721a
@ -1,5 +1,5 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
untrusted comment: verify with /etc/ports/contrib.pub
|
||||||
RWSagIOpLGJF3wLveGqnC9hSosxN4n3dt6VgZ8fjBetTrSTqOrabRK2fH+Vm2QM6RYxLwyqGLW9KgR8LjjuQj+JVzFF/3P5GTAQ=
|
RWSagIOpLGJF3/1vZwM/wapPTPcGRVgduVEm7kWtaTwnWvJvSuSxmHXJMU6nxHApPmCE/wbNdrLUHQyceDCZXuk2n+uhRRMxuAA=
|
||||||
SHA256 (Pkgfile) = e01d19b8cc314ea0bfe9dcd3aed1105c16356fc645d17ed741e22207db156f6d
|
SHA256 (Pkgfile) = a2792bd462a7568ee79b43c209f30f447929c63634effbcac0e13cc4bc5e0c1b
|
||||||
SHA256 (.footprint) = 80b6d4704b9b3301d4cb5d12f9005f85cde727bc002c4a47f2772160f0cfa56c
|
SHA256 (.footprint) = 80b6d4704b9b3301d4cb5d12f9005f85cde727bc002c4a47f2772160f0cfa56c
|
||||||
SHA256 (fontforge-20200314.tar.xz) = cd190b237353dc3f48ddca7b0b3439da8ec4fcf27911d14cc1ccc76c1a47c861
|
SHA256 (fontforge-20200314.tar.xz) = cd190b237353dc3f48ddca7b0b3439da8ec4fcf27911d14cc1ccc76c1a47c861
|
||||||
|
@ -9,27 +9,22 @@ release=1
|
|||||||
source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz)
|
source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
|
||||||
|
|
||||||
if [ -e '/usr/lib/ccache' ]; then
|
if [ -e '/usr/lib/ccache' ]; then
|
||||||
PKGMK_FONTFORGE+=' -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache'
|
PKGMK_FONTFORGE+=' -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache'
|
||||||
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir build
|
cmake -S$name-$version -Bbuild -GNinja ${PKGMK_FONTFORGE} \
|
||||||
cd build
|
|
||||||
|
|
||||||
cmake .. ${PKGMK_FONTFORGE} \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DENABLE_MAINTAINER_TOOLS=TRUE \
|
-DENABLE_MAINTAINER_TOOLS=TRUE \
|
||||||
-DENABLE_FONTFORGE_EXTRAS=TRUE \
|
-DENABLE_FONTFORGE_EXTRAS=TRUE \
|
||||||
-DUNIX=TRUE \
|
-DUNIX=TRUE \
|
||||||
-GNinja
|
-DENABLE_DOCS=FALSE
|
||||||
|
|
||||||
ninja -j ${JOBS:-1}
|
cmake --build build
|
||||||
DESTDIR=$PKG ninja install
|
DESTDIR=$PKG cmake --build build --target install
|
||||||
|
|
||||||
rm -r $PKG/usr/share/locale
|
rm -r $PKG/usr/share/locale
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user