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

updated perl-encode-locale (1.03 -> 1.05)
author Hans-G?nter Theisgen
date Mon Mar 30 16:36:15 2020 +0100 (2020-03-30)
parents e6a4cd87fdcb
children ad86373a4a8c
line source
1 # SliTaz package receipt.
3 PACKAGE="xtrkcad"
4 VERSION="5.1.2a"
5 CATEGORY="games"
6 SHORT_DESC="A CAD program for designing model railroad layouts."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xtrkcad.org/"
11 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
13 #WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
15 DEPENDS="atk cairo expat fontconfig freetype glib glibc-base gtk+
16 libgio libgtkhtml libpng libxcb libxml2 menu-railroad pango pixman
17 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor
18 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
19 xorg-libXinerama xorg-libXrender zlib"
20 BUILD_DEPENDS="cmake doxygen gettext gtk+-dev libgtkhtml-dev libxml2-dev
21 pkg-config xorg-kbproto xorg-libX11-dev xorg-libXau-dev
22 xorg-libXdmcp-dev xorg-renderproto xorg-xproto zlib-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 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
34 cmake . \
35 -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 \
39 -D XTRKCAD_USE_GTK_CAIRO=ON &&
40 make PREFIX=/usr &&
41 make DESTDIR=$DESTDIR install &&
43 mkdir -p $DESTDIR/usr/share/pixmaps &&
44 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps &&
46 mkdir -p $DESTDIR/usr/share/applications &&
47 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications &&
48 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share/$PACKAGE
56 cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
57 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
58 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
59 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
60 cp -a $install/usr/share/applications $fs/usr/share
61 cp -a $install/usr/share/pixmaps $fs/usr/share
62 cp -a $install/usr/bin $fs/usr
63 }