void-packages/srcpkgs/fox/template

50 lines
1.4 KiB
Bash
Raw Normal View History

2013-08-24 16:37:20 +00:00
# Template file for 'fox'
pkgname=fox
2016-03-16 06:57:58 +00:00
version=1.6.51
revision=3
2013-08-24 16:37:20 +00:00
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"
2013-08-24 16:37:20 +00:00
makedepends="zlib-devel bzip2-devel libXcursor-devel libXft-devel libXrandr-devel
2013-08-24 17:03:47 +00:00
libXi-devel libpng-devel tiff-devel glu-devel"
2013-08-24 16:37:20 +00:00
short_desc="Free Objects for X: GUI Toolkit for C++"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-08-24 16:37:20 +00:00
homepage="http://www.fox-toolkit.org/"
license="LGPL-2.1, MIT"
distfiles="http://ftp.fox-toolkit.org/pub/fox-$version.tar.gz"
2016-03-16 06:57:58 +00:00
checksum=15a99792965d933a4936e48b671c039657546bdec6a318c223ab1131624403d1
2014-06-21 09:10:10 +00:00
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
2013-08-24 16:37:20 +00:00
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)
}
2013-08-24 16:37:20 +00:00
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
}
}