diff --git a/common/shlibs b/common/shlibs index 0e030e21b6..2d91b994b2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2767,3 +2767,4 @@ libotf.so.0 libotf-0.9.13_1 libimagequant.so.0 libimagequant-2.8.2_1 libDOtherSide.so.0 dotherside-0.5.2_1 libstlink-shared.so.1 stlink-1.3.0_1 +libopencsg.so.1 opencsg-1.4.2_1 diff --git a/srcpkgs/opencsg-devel b/srcpkgs/opencsg-devel new file mode 120000 index 0000000000..725f3bb9a3 --- /dev/null +++ b/srcpkgs/opencsg-devel @@ -0,0 +1 @@ +opencsg \ No newline at end of file diff --git a/srcpkgs/opencsg/template b/srcpkgs/opencsg/template new file mode 100644 index 0000000000..76ccfa810e --- /dev/null +++ b/srcpkgs/opencsg/template @@ -0,0 +1,37 @@ +# 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 " +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 + } +}