void-packages/srcpkgs/fox/template
2017-09-17 09:00:27 +00:00

49 lines
1.4 KiB
Bash

# Template file for 'fox'
pkgname=fox
version=1.6.55
revision=1
build_style=gnu-configure
configure_args="--enable-release --with-xft=yes --with-opengl=yes --with-xim
--with-xshm --with-shape --with-xcursor --with-xrender --with-xrandr
--with-xfixes --with-xinput"
makedepends="zlib-devel bzip2-devel libXcursor-devel libXft-devel libXrandr-devel
libXi-devel libpng-devel tiff-devel glu-devel"
short_desc="Free Objects for X: GUI Toolkit for C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.fox-toolkit.org/"
license="LGPL-2.1, MIT"
distfiles="http://ftp.fox-toolkit.org/pub/fox-$version.tar.gz"
checksum=172416625221e54dcc1c4293fc892b9695f1e952f4b895376e6604c6c3813d74
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
pre_configure() {
sed -i "/strtoll.\(cpp\|obj\)/d; s/strtoll.lo//" src/Makefile.in
sed -i "/vsscanf.\(cpp\|obj\)/d; s/vsscanf.lo//" src/Makefile.in
rm src/strtoll.cpp src/vsscanf.cpp
}
pre_build() {
sed -i "s#CXXFLAGS =.*#\0 $CXXFLAGS#" $(find -name Makefile)
}
fox-devel_package() {
depends="${makedepends} fox-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/fox-config
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/doc
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
fox-utils_package() {
short_desc+=" - included utilities"
pkg_install() {
vmove usr/bin
vmove usr/share
}
}