2019-02-17 19:38:00 +11:00
|
|
|
# Description: Outline and bitmap font editor.
|
|
|
|
# URL: https://fontforge.github.io/
|
|
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
2019-08-09 22:34:46 +10:00
|
|
|
# Depends on: giflib gtk3 libspiro libuninameslist libwebp potrace woff2
|
2019-02-17 19:38:00 +11:00
|
|
|
|
|
|
|
name=fontforge
|
2020-04-10 12:09:38 +10:00
|
|
|
version=20200314
|
2019-02-17 19:38:00 +11:00
|
|
|
release=1
|
2020-04-10 12:09:38 +10:00
|
|
|
source=(https://github.com/$name/$name/releases/download/$version/$name-$version.tar.xz)
|
2019-02-17 19:38:00 +11:00
|
|
|
|
|
|
|
build() {
|
2020-04-10 12:09:38 +10:00
|
|
|
if [ -e '/usr/lib/ccache' ]; then
|
|
|
|
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/:*$//')
|
|
|
|
fi
|
2019-02-17 19:38:00 +11:00
|
|
|
|
2020-06-07 20:02:12 +10:00
|
|
|
cmake -S$name-$version -Bbuild -GNinja ${PKGMK_FONTFORGE} \
|
2020-04-10 12:09:38 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-11-07 16:22:12 +00:00
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-Wno-dev \
|
2020-04-10 12:09:38 +10:00
|
|
|
-DENABLE_MAINTAINER_TOOLS=TRUE \
|
|
|
|
-DENABLE_FONTFORGE_EXTRAS=TRUE \
|
|
|
|
-DUNIX=TRUE \
|
2020-06-07 20:02:12 +10:00
|
|
|
-DENABLE_DOCS=FALSE
|
2020-04-10 12:09:38 +10:00
|
|
|
|
2020-11-07 16:22:12 +00:00
|
|
|
sed -i 's|-R/usr/lib||g' build/build.ninja
|
|
|
|
|
2020-06-07 20:02:12 +10:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-04-10 12:09:38 +10:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/locale
|
2019-02-17 19:38:00 +11:00
|
|
|
}
|