contrib/fltk/Pkgfile

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-11-30 11:10:34 +01:00
# Description: Cross-platform C++ GUI toolkit for Unix, Windows and Mac OS X.
2020-06-01 17:45:48 +02:00
# URL: https://www.fltk.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2019-08-18 08:31:15 +02:00
# Depends on: alsa-lib libjpeg-turbo mesa3d util-linux xorg-libxft xorg-libxinerama
2006-11-30 11:10:34 +01:00
name=fltk
2019-08-18 08:31:15 +02:00
version=1.3.5
2018-01-31 12:02:33 +01:00
release=1
2019-08-18 08:31:15 +02:00
source=(https://fltk.org/pub/$name/${version%-*}/$name-$version-source.tar.bz2
fltk-fix-lib-mess.patch)
2006-11-30 11:10:34 +01:00
build() {
2018-01-31 12:02:33 +01:00
cd $name-$version
2019-08-18 08:31:15 +02:00
# https://github.com/fltk/fltk/issues/20
patch -p1 -i $SRC/fltk-fix-lib-mess.patch
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFLTK_LIBDIR=/usr/lib \
-DOPTION_CREATE_LINKS=ON \
-DOPTION_BUILD_SHARED_LIBS=ON \
-DOpenGL_GL_PREFERENCE=GLVND \
-DOPTION_BUILD_HTML_DOCUMENTATION=OFF
2006-11-30 11:10:34 +01:00
2007-04-21 11:03:15 +02:00
make
make DESTDIR=$PKG install
2019-08-18 08:31:15 +02:00
# example apps and integration files, that are not covered by make install
for app in {blocks,checkers,sudoku}; do
install -D -m 0755 -t "$PKG/usr/bin/" "bin/examples/$app"
install -D -m 0644 "../test/desktop/$app.desktop" \
-t "$PKG/usr/share/applications/"
install -D -m 0644 "../test/desktop/$app-32.png" \
"$PKG/usr/share/icons/hicolor/32x32/apps/$app.png"
install -D -m 0644 "../test/desktop/$app-128.png" \
"$PKG/usr/share/icons/hicolor/128x128/apps/$app.png"
done
2019-08-18 08:31:15 +02:00
rm $PKG/usr/include/FL/README.Xcode
2006-11-30 11:10:34 +01:00
}