wok-6.x view xtrkcad/receipt @ rev 14971

Up: firefox-langpack-pt_PT (17.0.8esr)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 22:20:08 2013 +0200 (2013-08-08)
parents 940b5937e496
children 23c3aed67cd9
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 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
26 export LDFLAGS="-Wl,--copy-dt-needed-entries"
28 XTRKCAD_STUFF=$stuff
30 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
31 cd $src
32 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
33 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
34 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
35 -D CMAKE_INSTALL_PREFIX=/usr \
36 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . &&
37 make PREFIX=/usr &&
38 make DESTDIR=$src/_pkg install &&
39 mkdir -p $src/_pkg/usr/share/pixmaps &&
40 cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps &&
41 mkdir -p $src/_pkg/usr/share/applications &&
42 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications &&
43 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/*.desktop
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/$PACKAGE
50 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
51 cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
52 cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
53 cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
55 cp -a $_pkg/usr/share/applications $fs/usr/share
56 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
58 cp -a $_pkg/usr/bin $fs/usr
59 }