wok-6.x annotate opencsg/receipt @ rev 25130
e4rat: modified recipe
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 07:04:49 2022 +0100 (2022-06-29) |
parents | c3f6eea1a598 |
children |
rev | line source |
---|---|
pascal@17320 | 1 # SliTaz package receipt. |
pascal@17320 | 2 |
pascal@17320 | 3 PACKAGE="opencsg" |
Hans-G?nter@21627 | 4 VERSION="1.4.2" |
pascal@17320 | 5 CATEGORY="graphics" |
pascal@17320 | 6 SHORT_DESC="The CSG rendering library." |
pascal@17320 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17320 | 8 LICENSE="GPL2" |
Hans-G?nter@21627 | 9 WEB_SITE="http://www.opencsg.org/" |
Hans-G?nter@21627 | 10 |
Hans-G?nter@21627 | 11 SOURCE="OpenCSG" |
pascal@17320 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@17320 | 13 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@17320 | 14 |
pascal@17320 | 15 DEPENDS="glew mesa" |
Hans-G?nter@21627 | 16 BUILD_DEPENDS="freeglut-dev glew-dev mesa-dev" |
pascal@17320 | 17 |
pascal@24425 | 18 # What is the latest version available today? |
pascal@24425 | 19 current_version() |
pascal@24425 | 20 { |
pascal@24425 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24425 | 22 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24425 | 23 } |
pascal@24425 | 24 |
pascal@17320 | 25 # Rules to configure and make the package. |
pascal@17320 | 26 # |
pascal@17320 | 27 compile_rules() |
pascal@17320 | 28 { |
pascal@20212 | 29 sed -i 's|uname -m|echo i486|' glew/config/Makefile* |
pascal@17320 | 30 for i in /usr/lib /usr/bin /bin /usr/include ; do |
pascal@17320 | 31 mkdir -p $DESTDIR$i |
pascal@17320 | 32 done |
pascal@17320 | 33 find -name Makefile | xargs sed -i 's|usr/local|usr|' |
Hans-G?nter@21627 | 34 |
pascal@17320 | 35 make -j 1 && |
pascal@17320 | 36 make INSTALL_ROOT=$DESTDIR install |
pascal@17320 | 37 } |
pascal@17320 | 38 |
pascal@17320 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17320 | 40 genpkg_rules() |
pascal@17320 | 41 { |
pascal@17320 | 42 mkdir -p $fs/usr |
pascal@17320 | 43 cp -a $install/usr/lib $fs/usr |
pascal@17320 | 44 } |