wok-next annotate opencsg/receipt @ rev 20463

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 06 11:29:35 2018 +0200 (2018-03-06)
parents 6e1c0c61cc18
children d5aab818505e
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@20463 15 SPLIT="opencsg-dev"
pascal@17320 16
al@20463 17 compile_rules() {
al@20463 18 for i in /usr/lib /usr/bin /bin /usr/include; do
pascal@17320 19 mkdir -p $DESTDIR$i
pascal@17320 20 done
pascal@17320 21 find -name Makefile | xargs sed -i 's|usr/local|usr|'
pascal@17320 22 make -j 1 &&
pascal@17320 23 make INSTALL_ROOT=$DESTDIR install
pascal@17320 24 }
pascal@17320 25
al@20463 26 genpkg_rules() {
al@20463 27 case $PACKAGE in
al@20463 28 opencsg)
al@20463 29 mkdir -p $fs/usr
al@20463 30 cp -a $install/usr/lib $fs/usr
al@20463 31 DEPENDS="glew mesa"
al@20463 32 ;;
al@20463 33 *-dev)
al@20463 34 mkdir -p $fs/usr
al@20463 35 cp -a $install/usr/bin $fs/usr
al@20463 36 cp -a $install/usr/include $fs/usr
al@20463 37 ;;
al@20463 38 esac
pascal@17320 39 }