wok-next view freeglut/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f46ee669e874 |
children | 5669e8b3be70 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="freeglut"
4 VERSION="3.0.0"
5 CATEGORY="x-window"
6 SHORT_DESC="OpenGL utility toolkit"
7 MAINTAINER="devel@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 mesa-dev glu-dev xorg-libXi-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 mkdir build
19 cd build
20 cmake \
21 -DCMAKE_BUILD_TYPE=Release \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_INSTALL_LIBDIR=lib \
24 .. &&
25 make &&
26 make install || return 1
28 chmod 644 $src/doc/*
29 cook_pick_docs $src/doc/*
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 freeglut)
35 copy @std
36 DEPENDS="mesa xorg-libX11 xorg-libXi xorg-libXxf86vm"
37 ;;
38 *-dev)
39 copy @dev
40 DEPENDS="freeglut mesa-dev xorg-libX11-dev xorg-libXrandr-dev \
41 xorg-libXxf86vm-dev"
42 ;;
43 esac
44 }