diff --git a/srcpkgs/glm/files/glm.pc b/srcpkgs/glm/files/glm.pc new file mode 100644 index 00000000000..9821cc07d6e --- /dev/null +++ b/srcpkgs/glm/files/glm.pc @@ -0,0 +1,7 @@ +prefix=/usr +includedir=${prefix}/include + +Name: GLM +Description: OpenGL Mathematics +Version: 0.9.9.6 +Cflags: -I${includedir} diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template index 80522a8dcb9..f08019cc85a 100644 --- a/srcpkgs/glm/template +++ b/srcpkgs/glm/template @@ -1,11 +1,9 @@ # Template file for 'glm' pkgname=glm version=0.9.9.6 -revision=1 +revision=2 archs=noarch wrksrc=glm -build_style=cmake -configure_args="-DGLM_TEST_ENABLE=OFF" hostmakedepends="dos2unix unzip" short_desc="C++ mathematics library for graphics programming" maintainer="Orphaned " @@ -22,8 +20,8 @@ do_install() { for i in glm ; do vcopy $i usr/include done - vmkdir usr/lib - vcopy build/glm/libglm_* usr/lib + vmkdir usr/share/pkgconfig + vinstall ${FILESDIR}/glm.pc 644 usr/share/pkgconfig } post_install() { @@ -31,6 +29,7 @@ post_install() { for f in $(find ${DESTDIR}/usr/include -type f); do dos2unix "$f" done + rm -f "${DESTDIR}/usr/include/CMakeLists.txt" sed -n '88,110p' manual.md > LICENSE vlicense LICENSE }