void-packages/srcpkgs/opencsg/template
2017-02-06 22:48:24 -05:00

37 lines
909 B
Bash

# Template file for 'opencsg'
pkgname="opencsg"
version="1.4.2"
revision=1
short_desc="A library that does image-based CSG rendering using OpenGL"
maintainer="Pierre Allegraud <pierre.allegraud@crans.org>"
license="GPL-2"
homepage="http://www.opencsg.org"
distfiles="http://www.opencsg.org/OpenCSG-${version}.tar.gz"
checksum="d952ec5d3a2e46a30019c210963fcddff66813efc9c29603b72f9553adff4afb"
wrksrc="OpenCSG-${version}"
build_wrksrc="src"
makedepends="glew-devel libfreeglut-devel"
do_build() {
sed -i 's@-Wl,-rpath,\.\./lib@@' Makefile # no rpath
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX"
}
do_install() {
vmkdir /usr/lib
vmkdir /usr/include
vcopy ../lib/* /usr/lib
vcopy ../include/* /usr/include
}
opencsg-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}