void-packages/srcpkgs/fltk/template
dota? =op 9fa29c86d4 fltk-1.3.3: Fl_XFont_On_Demand.patch
This patch was merged into fltk subversion, but no release contains it
yet:

http://www.fltk.org/str.php?L3156

Without it, octave will display teh following error message, even with
teh --no-gui option:

```
error: /usr/lib/octave/4.0.0/oct/x86_64-unknown-linux-gnu/PKG_ADD: /usr/lib/octave/4.0.0/oct/x86_64-unknown-linux-gnu/__init_fltk__.oct: failed to load: /usr/lib/libfltk_gl.so.1.3: undefined symbol: _ZN18Fl_XFont_On_Demand5valueEv
error: called from
    /usr/lib/octave/4.0.0/oct/x86_64-unknown-linux-gnu/PKG_ADD at line 3 column 1
```

and fail to add '.' (teh current directory) to teh load path.
2016-02-12 17:07:29 -02:00

35 lines
1,006 B
Bash

# Template file for 'fltk'
pkgname=fltk
version=1.3.3
revision=4
build_style=gnu-configure
configure_args="--enable-threads --enable-xft --enable-shared"
makedepends="libjpeg-turbo-devel libpng-devel MesaLib-devel alsa-lib-devel
freetype-devel libXinerama-devel libXft-devel"
short_desc="Cross-platform C++ GUI toolkit"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://www.fltk.org/"
distfiles="http://fltk.org/pub/fltk/${version}/fltk-${version}-source.tar.gz"
checksum=f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97
pre_build() {
sed -i '/DIRS =/s,test,,' Makefile
}
post_install() {
rm -rf ${DESTDIR}/usr/share/man/cat[13]
rm -f ${DESTDIR}/usr/lib/*.a
}
fltk-devel_package() {
depends="${makedepends} fltk-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin/fltk-config
vmove usr/share/man/man1/fltk-config.1
vmove usr/share/man/man3
vmove usr/share/doc
vmove usr/lib/*.so
}
}