wok-4.x view xtrkcad/receipt @ rev 11132
Up: xorg-xset to 1.2.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Oct 26 20:55:00 2011 +0000 (2011-10-26) |
parents | f3c1a01dae12 |
children |
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="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=$stuff
27 [ -d $PACKAGE-source-$VERSION ] && 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 }