# SliTaz package receipt. PACKAGE="magicpoint" VERSION="1.13a" CATEGORY="x-window" SHORT_DESC="An X11-based presentation tool." MAINTAINER="rcx@zoominternet.net" LICENSE="BSD" WEB_SITE="http://member.wide.ad.jp/wg/mgp/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/$TARBALL" DEPENDS="expat fontconfig freetype freetype1 giflib glibc-base imlib jpeg libpng tiff util-linux-uuid xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft xorg-libXmu xorg-libXrender xorg-libXt zlib" BUILD_DEPENDS="bison flex fontconfig-dev freetype-dev freetype1 freetype1-dev gettext giflib-dev imlib-dev m4 xorg-cf-files xorg-imake xorg-libX11-dev xorg-libXft-dev xorg-libXmu-dev xorg-libXrender-dev xorg-xextproto xorg-xproto" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/magicpoint-[0-9]/!d;s|.*magicpoint-||;s|.tar.*||' } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && xmkmf && make Makefiles && # because of altered syntax for ar in binutils-2.37: sed -i 's|ar clq|ar cq|' \ Makefile \ image/Makefile \ sample/Makefile \ contrib/Makefile \ contrib/xwintoppm/Makefile && make -j 1 && make install DESTDIR=$DESTDIR # Do not remove -j 1 ! } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/X11/mgp mkdir -p $fs/usr/share/applications mkdir -p $install/usr/share/doc mkdir -p $install/usr/share/man cp -f $install/usr/lib/X11/mgp/default.mgp $fs/usr/lib/X11/mgp cp -a $install/usr/bin $fs/usr cp $src/*.man $install/usr/share/man/ cp $src/COPYRIGHT $src/FAQ $src/RE* $src/SYNTAX $install/usr/share/doc cp $src/USAGE $install/usr/share/doc cat > $fs/usr/share/applications/magicpoint.desktop <> $1/usr/share/applications/defaults.list done } post_remove() { sed -i '/=magicpoint.desktop/' $1/usr/share/applications/defaults.list }