wok-next view freeglut/receipt @ rev 21704

Fix syntax errors that hangs cook.slitaz.org/next
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 05 10:54:27 2020 +0300 (2020-07-05)
parents 5669e8b3be70
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="freeglut"
4 VERSION="3.2.1"
5 CATEGORY="x-window"
6 SHORT_DESC="OpenGL utility toolkit"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://freeglut.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cmake glu-dev libxi-dev mesa-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules()
18 {
19 mkdir build
20 cd build
21 cmake .. \
22 -DCMAKE_BUILD_TYPE=Release \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_INSTALL_LIBDIR=lib &&
25 make &&
26 make install || return 1
28 chmod 644 $src/doc/*
29 cook_pick_docs $src/doc/*
30 }
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 freeglut)
36 copy @std
37 DEPENDS="libx11 libxi libxxf86vm mesa"
38 ;;
39 *-dev)
40 copy @dev
41 DEPENDS="freeglut libx11-dev libxrandr-dev
42 libxxf86vm-dev mesa-dev"
43 ;;
44 esac
45 }