# SliTaz package receipt. PACKAGE="libglw-mesa" SOURCE="glw" VERSION="8.0.0" CATEGORY="x-window" SHORT_DESC="OpenGL widget library" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" TARBALL="$SOURCE-$VERSION.tar.bz2" WEB_SITE="https://www.mesa3d.org/" WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$SOURCE/$TARBALL" PROVIDE="libglw" DEPENDS="glibc-base util-linux-uuid zlib freetype lesstif mesa \ xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXt \ lesstif" BUILD_DEPENDS="mesa-dev automake autoconf libtool util-linux-uuid-dev file" # What is the latest version available today? current_version() { wget -O - https://cgit.freedesktop.org/mesa/glw/ 2>/dev/null | \ sed '/ [0-9]\.[0-9]\.[0-9]/!d;s|.* \([0-9]\.[0-9]\.[0-9]\).*|\1|;q' } # Rules to configure and make the package. compile_rules() { ./autogen.sh ./configure \ --prefix=/usr \ $CONFIGURE_ARGS && make $MAKEFLAGS && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/libGLw*so* $fs/usr/lib }