wok-current annotate xtrkcad/receipt @ rev 24009

linux-zram: typo (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 29 17:07:10 2021 +0000 (2021-01-29)
parents e6a4cd87fdcb
children ad86373a4a8c
rev   line source
rcx@3913 1 # SliTaz package receipt.
rcx@3913 2
rcx@3913 3 PACKAGE="xtrkcad"
Hans-G?nter@22313 4 VERSION="5.1.2a"
rcx@3913 5 CATEGORY="games"
rcx@3913 6 SHORT_DESC="A CAD program for designing model railroad layouts."
rcx@3913 7 MAINTAINER="rcx@zoominternet.net"
pascal@15601 8 LICENSE="GPL2"
Hans-G?nter@22313 9 WEB_SITE="http://www.xtrkcad.org/"
Hans-G?nter@22313 10
pascal@15601 11 TARBALL="$PACKAGE-source-$VERSION.tar.gz"
Hans-G?nter@22313 12 WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL"
Hans-G?nter@22313 13 #WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL"
pascal@15601 14
Hans-G?nter@22313 15 DEPENDS="atk cairo expat fontconfig freetype glib glibc-base gtk+
Hans-G?nter@22313 16 libgio libgtkhtml libpng libxcb libxml2 menu-railroad pango pixman
Hans-G?nter@22313 17 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor
Hans-G?nter@22313 18 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes
Hans-G?nter@22313 19 xorg-libXinerama xorg-libXrender zlib"
Hans-G?nter@22313 20 BUILD_DEPENDS="cmake doxygen gettext gtk+-dev libgtkhtml-dev libxml2-dev
Hans-G?nter@22313 21 pkg-config xorg-kbproto xorg-libX11-dev xorg-libXau-dev
Hans-G?nter@22313 22 xorg-libXdmcp-dev xorg-renderproto xorg-xproto zlib-dev"
rcx@3913 23
rcx@3913 24 # Rules to configure and make the package.
rcx@3913 25 compile_rules()
rcx@3913 26 {
pascal@12655 27 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
pascal@17670 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
pascal@12655 29
pascal@8974 30 XTRKCAD_STUFF=$stuff
rcx@3913 31
rcx@4037 32 sed -e 's|share/xtrkcad/locale|share/locale|g' -i CMakeLists.txt &&
Hans-G?nter@22313 33
Hans-G?nter@22313 34 cmake . \
Hans-G?nter@22313 35 -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \
Hans-G?nter@22313 36 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \
Hans-G?nter@22313 37 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@22313 38 -D XTRKCAD_USE_GTK=ON \
Hans-G?nter@22313 39 -D XTRKCAD_USE_GTK_CAIRO=ON &&
rcx@3913 40 make PREFIX=/usr &&
pascal@15601 41 make DESTDIR=$DESTDIR install &&
Hans-G?nter@22313 42
pascal@15601 43 mkdir -p $DESTDIR/usr/share/pixmaps &&
pascal@15601 44 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps &&
Hans-G?nter@22313 45
pascal@15601 46 mkdir -p $DESTDIR/usr/share/applications &&
pascal@15601 47 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications &&
pascal@15601 48 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop
rcx@3913 49 }
rcx@3913 50
rcx@3913 51 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3913 52 genpkg_rules()
rcx@3913 53 {
rcx@3913 54 mkdir -p $fs/usr/share/$PACKAGE
rcx@3913 55
Hans-G?nter@22313 56 cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE
Hans-G?nter@22313 57 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE
Hans-G?nter@22313 58 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE
Hans-G?nter@22313 59 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE
Hans-G?nter@22313 60 cp -a $install/usr/share/applications $fs/usr/share
Hans-G?nter@22313 61 cp -a $install/usr/share/pixmaps $fs/usr/share
Hans-G?nter@22313 62 cp -a $install/usr/bin $fs/usr
rcx@3913 63 }