2006-11-30 21:10:34 +11:00
|
|
|
# Description: Cross-platform C++ GUI toolkit for Unix, Windows and Mac OS X.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.fltk.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-07-26 21:32:47 +10:00
|
|
|
# Depends on: alsa-lib libjpeg-turbo mesa util-linux xorg-libxft xorg-libxinerama
|
2006-11-30 21:10:34 +11:00
|
|
|
|
|
|
|
name=fltk
|
2021-08-22 17:30:30 +02:00
|
|
|
version=1.3.7
|
2018-01-31 22:02:33 +11:00
|
|
|
release=1
|
2021-06-27 18:53:52 +00:00
|
|
|
source=(https://fltk.org/pub/$name/${version%-*}/$name-$version-source.tar.bz2)
|
2006-11-30 21:10:34 +11:00
|
|
|
|
|
|
|
build() {
|
2021-06-27 18:53:52 +00:00
|
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_FLTK+=' -G Ninja'
|
2020-11-08 11:05:21 +00:00
|
|
|
cmake -S $name-$version -B build $PKGMK_FLTK \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D FLTK_LIBDIR=/usr/lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:52:52 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:05:21 +00:00
|
|
|
-D OPTION_CREATE_LINKS=ON \
|
|
|
|
-D OPTION_BUILD_SHARED_LIBS=ON \
|
|
|
|
-D OpenGL_GL_PREFERENCE=GLVND \
|
|
|
|
-D OPTION_BUILD_HTML_DOCUMENTATION=OFF \
|
|
|
|
-Wno-dev
|
2006-11-30 21:10:34 +11:00
|
|
|
|
2020-11-07 16:19:14 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-11-30 21:10:34 +11:00
|
|
|
}
|