wok-current view xtrkcad/receipt @ rev 20049

Add xautolock
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 01 11:29:54 2017 +0200 (2017-09-01)
parents 23c3aed67cd9
children e6a4cd87fdcb
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
10 WEB_SITE="http://www.xtrkcad.org/"
11 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
12 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
14 DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \
15 libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \
16 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \
17 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \
18 xorg-libXinerama xorg-libXrender"
19 BUILD_DEPENDS="cmake pkg-config gettext zlib-dev \
20 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \
21 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \
22 xorg-libXdmcp-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
30 XTRKCAD_STUFF=$stuff
32 [ -d $PACKAGE-source-$VERSION ] && mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION
33 cd $src
34 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
35 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
36 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
37 -D CMAKE_INSTALL_PREFIX=/usr \
38 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . &&
39 make PREFIX=/usr &&
40 make DESTDIR=$DESTDIR install &&
41 mkdir -p $DESTDIR/usr/share/pixmaps &&
42 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps &&
43 mkdir -p $DESTDIR/usr/share/applications &&
44 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications &&
45 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/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 $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
53 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
54 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
55 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
57 cp -a $install/usr/share/applications $fs/usr/share
58 cp -a $install/usr/share/pixmaps $fs/usr/share
60 cp -a $install/usr/bin $fs/usr
61 }