wok-stable view xtrkcad/receipt @ rev 5169
xarchiver: Fix DEPENDS (#278)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Mar 26 22:44:26 2010 +0100 (2010-03-26) |
parents | 2b5224af9d78 |
children | 53ecebbc8732 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xtrkcad"
4 VERSION="4.0.3a1"
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"
20 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 XTRKCAD_STUFF=$PWD/stuff
27 mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
28 cd $src
29 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
30 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
31 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
32 -D CMAKE_INSTALL_PREFIX=/usr \
33 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . &&
34 make PREFIX=/usr &&
35 make DESTDIR=$src/_pkg install &&
36 mkdir -p $src/_pkg/usr/share/pixmaps &&
37 cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps &&
38 mkdir -p $src/_pkg/usr/share/applications &&
39 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications &&
40 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/$PACKAGE
47 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
48 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
49 cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
50 cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
52 cp -a $_pkg/usr/share/applications $fs/usr/share
53 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
55 cp -a $_pkg/usr/bin $fs/usr
56 }