blob: 6b65269d8fc4b5e2de0de0f2d6862337601de2ec (
plain)
1 # Description: Cross-platform C++ GUI toolkit for Unix, Windows and Mac OS X.
2 # URL: https://www.fltk.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: alsa-lib libjpeg-turbo mesa util-linux xorg-libxft xorg-libxinerama
5
6 name=fltk
7 version=1.3.8
8 release=1
9 source=(https://fltk.org/pub/$name/${version%-*}/$name-$version-source.tar.bz2)
10
11 build() {
12 [[ -e /usr/bin/ninja ]] && PKGMK_FLTK+=' -G Ninja'
13 cmake -S $name-$version -B build $PKGMK_FLTK \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D FLTK_LIBDIR=/usr/lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D OPTION_CREATE_LINKS=ON \
20 -D OPTION_BUILD_SHARED_LIBS=ON \
21 -D OpenGL_GL_PREFERENCE=GLVND \
22 -D OPTION_BUILD_HTML_DOCUMENTATION=OFF \
23 -Wno-dev
24
25 cmake --build build
26 DESTDIR=$PKG cmake --install build
27 }
|