summaryrefslogtreecommitdiff
path: root/fltk/Pkgfile
blob: 3b670bf9f5367a36b26b281b522b5c5ca3870c6f (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.5
    8 release=1
    9 source=(https://fltk.org/pub/$name/${version%-*}/$name-$version-source.tar.bz2
   10 	fltk-fix-lib-mess.patch)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	# https://github.com/fltk/fltk/issues/20
   16 	patch -p1 -i $SRC/fltk-fix-lib-mess.patch
   17 
   18 	mkdir build
   19 	cd build
   20 
   21 	cmake .. \
   22 		-DCMAKE_INSTALL_PREFIX=/usr \
   23 		-DFLTK_LIBDIR=/usr/lib \
   24 		-DOPTION_CREATE_LINKS=ON \
   25 		-DOPTION_BUILD_SHARED_LIBS=ON \
   26 		-DOpenGL_GL_PREFERENCE=GLVND \
   27 		-DOPTION_BUILD_HTML_DOCUMENTATION=OFF
   28 
   29 	make
   30 	make DESTDIR=$PKG install
   31 
   32 	# example apps and integration files, that are not covered by make install
   33 	for app in {blocks,checkers,sudoku}; do
   34 		install -D -m 0755 -t "$PKG/usr/bin/" "bin/examples/$app"
   35 
   36 		install -D -m 0644 "../test/desktop/$app.desktop" \
   37 			-t "$PKG/usr/share/applications/"
   38 
   39 		install -D -m 0644 "../test/desktop/$app-32.png" \
   40 			"$PKG/usr/share/icons/hicolor/32x32/apps/$app.png"
   41 
   42 		install -D -m 0644 "../test/desktop/$app-128.png" \
   43 			"$PKG/usr/share/icons/hicolor/128x128/apps/$app.png"
   44 	done
   45 
   46 	rm $PKG/usr/include/FL/README.Xcode
   47 }

Generated by cgit