wok-current view opencsg/receipt @ rev 25547
Up utftpd (0.2.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 12:22:34 2023 +0000 (19 months ago) |
parents | c3f6eea1a598 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="opencsg"
4 VERSION="1.4.2"
5 CATEGORY="graphics"
6 SHORT_DESC="The CSG rendering library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.opencsg.org/"
11 SOURCE="OpenCSG"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}$TARBALL"
15 DEPENDS="glew mesa"
16 BUILD_DEPENDS="freeglut-dev glew-dev mesa-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 #
27 compile_rules()
28 {
29 sed -i 's|uname -m|echo i486|' glew/config/Makefile*
30 for i in /usr/lib /usr/bin /bin /usr/include ; do
31 mkdir -p $DESTDIR$i
32 done
33 find -name Makefile | xargs sed -i 's|usr/local|usr|'
35 make -j 1 &&
36 make INSTALL_ROOT=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/lib $fs/usr
44 }