wok-6.x view xtrkcad/receipt @ rev 3940
add zile: a lightweight Emacs clone.
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Sat Aug 22 12:55:55 2009 +0200 (2009-08-22) |
parents | 0c8c7c9a2dd4 |
children | 2b5224af9d78 |
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 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
25 if [ -z "$TOOLPREFIX" ] ; then
26 # Provide a default TOOLPREFIX value
27 TOOLPREFIX=i486-pc-linux-gnu-
28 fi
30 XTRKCAD_STUFF=$PWD/stuff
32 mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
33 cd $src
34 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
35 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
36 -D CMAKE_INSTALL_PREFIX=/usr \
37 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . &&
38 make PREFIX=/usr &&
39 make DESTDIR=$src/_pkg install &&
40 mkdir -p $src/_pkg/usr/share/pixmaps &&
41 # cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps &&
42 cp -f $src/app/bin/xtrkcad.ico $src/_pkg/usr/share/pixmaps
43 mkdir -p $src/_pkg/usr/share/applications &&
44 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications &&
45 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/$PACKAGE
52 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
53 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
54 cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
55 cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
57 cp -a $_pkg/usr/share/applications $fs/usr/share
58 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
60 cp -a $_pkg/usr/bin $fs/usr
61 }