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