wok annotate xtrkcad/receipt @ rev 5691

linux: add missing patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 05 13:07:53 2010 +0200 (2010-06-05)
parents 2b5224af9d78
children 53ecebbc8732
rev   line source
rcx@3913 1 # SliTaz package receipt.
rcx@3913 2
rcx@3913 3 PACKAGE="xtrkcad"
rcx@4442 4 VERSION="4.0.3a1"
rcx@3913 5 CATEGORY="games"
rcx@3913 6 SHORT_DESC="A CAD program for designing model railroad layouts."
rcx@3913 7 MAINTAINER="rcx@zoominternet.net"
rcx@3913 8 DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \
rcx@3913 9 libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \
rcx@3913 10 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \
rcx@3913 11 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
rcx@3913 12 xorg-libXinerama xorg-libXrender"
rcx@3913 13 BUILD_DEPENDS="slitaz-toolchain cmake pkg-config gettext zlib-dev \
rcx@3913 14 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \
rcx@3913 15 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \
rcx@3913 16 xorg-libXdmcp-dev"
rcx@3913 17 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
rcx@3913 18 WEB_SITE="http://www.xtrkcad.org/"
rcx@4442 19 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
rcx@4442 20 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
rcx@3913 21
rcx@3913 22 # Rules to configure and make the package.
rcx@3913 23 compile_rules()
rcx@3913 24 {
rcx@3913 25 XTRKCAD_STUFF=$PWD/stuff
rcx@3913 26
rcx@3913 27 mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
rcx@3913 28 cd $src
rcx@4037 29 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
rcx@3913 30 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
rcx@3913 31 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
rcx@3913 32 -D CMAKE_INSTALL_PREFIX=/usr \
rcx@3913 33 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . &&
rcx@3913 34 make PREFIX=/usr &&
rcx@3913 35 make DESTDIR=$src/_pkg install &&
rcx@3913 36 mkdir -p $src/_pkg/usr/share/pixmaps &&
rcx@4037 37 cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps &&
rcx@3913 38 mkdir -p $src/_pkg/usr/share/applications &&
rcx@3913 39 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications &&
rcx@3928 40 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
rcx@3913 41 }
rcx@3913 42
rcx@3913 43 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3913 44 genpkg_rules()
rcx@3913 45 {
rcx@3913 46 mkdir -p $fs/usr/share/$PACKAGE
rcx@3913 47 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
rcx@3913 48 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
rcx@3913 49 cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
rcx@3913 50 cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
rcx@3913 51
rcx@3913 52 cp -a $_pkg/usr/share/applications $fs/usr/share
rcx@3913 53 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
rcx@3913 54
rcx@3913 55 cp -a $_pkg/usr/bin $fs/usr
rcx@3913 56 }