wok view xtrkcad/receipt @ rev 21996

linux: add ath10k wireless driver
author Richard Dunbar <mojo@slitaz.org>
date Wed Oct 16 21:56:55 2019 -0400 (2019-10-16)
parents 17e313b5b9c1
children 74e013002f3d
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 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=$DESTDIR install &&
39 mkdir -p $DESTDIR/usr/share/pixmaps &&
40 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps &&
41 mkdir -p $DESTDIR/usr/share/applications &&
42 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications &&
43 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/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 $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
51 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
52 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
53 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
55 cp -a $install/usr/share/applications $fs/usr/share
56 cp -a $install/usr/share/pixmaps $fs/usr/share
58 cp -a $install/usr/bin $fs/usr
59 }