wok-next annotate opencsg/receipt @ rev 21707
updated grooms (1.0.5 -> 1.0.9)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 15:15:04 2020 +0100 (2020-07-06) |
parents | e323d0535e2c |
children |
rev | line source |
---|---|
al@20463 | 1 # SliTaz package receipt v2. |
pascal@17320 | 2 |
pascal@17320 | 3 PACKAGE="opencsg" |
pascal@17320 | 4 VERSION="1.4.0" |
pascal@17320 | 5 CATEGORY="graphics" |
al@20463 | 6 SHORT_DESC="The CSG rendering library" |
pascal@17320 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17320 | 8 LICENSE="GPL2" |
pascal@17320 | 9 WEB_SITE="http://www.opencsg.org/" |
al@20463 | 10 |
al@20463 | 11 TARBALL="OpenCSG-$VERSION.tar.gz" |
pascal@17320 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@17320 | 13 |
pascal@17320 | 14 BUILD_DEPENDS="glew-dev mesa-dev freeglut-dev" |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
pascal@17320 | 16 |
al@20463 | 17 compile_rules() { |
al@20463 | 18 for i in /usr/lib /usr/bin /bin /usr/include; do |
al@21020 | 19 mkdir -p $install$i |
pascal@17320 | 20 done |
pascal@17320 | 21 find -name Makefile | xargs sed -i 's|usr/local|usr|' |
al@21020 | 22 |
al@21020 | 23 make -j1 && |
al@21020 | 24 make INSTALL_ROOT=$install install |
pascal@17320 | 25 } |
pascal@17320 | 26 |
al@20463 | 27 genpkg_rules() { |
al@20463 | 28 case $PACKAGE in |
al@20463 | 29 opencsg) |
al@21020 | 30 copy *.so |
al@20463 | 31 DEPENDS="glew mesa" |
al@20463 | 32 ;; |
al@20463 | 33 *-dev) |
al@21020 | 34 copy @dev @std @rm # /usr/bin/opencsgexample moved here |
al@20463 | 35 ;; |
al@20463 | 36 esac |
pascal@17320 | 37 } |