wok-current annotate xtrkcad/receipt @ rev 22245
updated xorg-videoproto (2.3.1 -> 2.3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Nov 12 16:08:16 2019 +0100 (2019-11-12) |
parents | 17e313b5b9c1 |
children | 74e013002f3d |
rev | line source |
---|---|
rcx@3913 | 1 # SliTaz package receipt. |
rcx@3913 | 2 |
rcx@3913 | 3 PACKAGE="xtrkcad" |
rcx@4442 | 4 VERSION="4.0.3a1" |
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" |
pascal@15601 | 9 TARBALL="$PACKAGE-source-$VERSION.tar.gz" |
pascal@15601 | 10 WEB_SITE="http://www.xtrkcad.org/" |
pascal@15601 | 11 #WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL" |
pascal@15601 | 12 WGET_URL="http://users.zoominternet.net/~rcx/$TARBALL" |
pascal@15601 | 13 |
rcx@3913 | 14 DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \ |
rcx@3913 | 15 libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \ |
rcx@3913 | 16 xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \ |
rcx@3913 | 17 xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ |
rcx@3913 | 18 xorg-libXinerama xorg-libXrender" |
slaxemulator@8961 | 19 BUILD_DEPENDS="cmake pkg-config gettext zlib-dev \ |
rcx@3913 | 20 gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \ |
rcx@3913 | 21 xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \ |
rcx@3913 | 22 xorg-libXdmcp-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 && |
rcx@3913 | 33 cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ |
rcx@3913 | 34 -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ |
rcx@3913 | 35 -D CMAKE_INSTALL_PREFIX=/usr \ |
rcx@3913 | 36 -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . && |
rcx@3913 | 37 make PREFIX=/usr && |
pascal@15601 | 38 make DESTDIR=$DESTDIR install && |
pascal@15601 | 39 mkdir -p $DESTDIR/usr/share/pixmaps && |
pascal@15601 | 40 cp -f $XTRKCAD_STUFF/$PACKAGE.png $DESTDIR/usr/share/pixmaps && |
pascal@15601 | 41 mkdir -p $DESTDIR/usr/share/applications && |
pascal@15601 | 42 cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $DESTDIR/usr/share/applications && |
pascal@15601 | 43 sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $DESTDIR/usr/share/applications/*.desktop |
rcx@3913 | 44 } |
rcx@3913 | 45 |
rcx@3913 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3913 | 47 genpkg_rules() |
rcx@3913 | 48 { |
rcx@3913 | 49 mkdir -p $fs/usr/share/$PACKAGE |
pascal@15601 | 50 cp -f $install/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE |
pascal@15601 | 51 cp -f $install/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE |
pascal@15601 | 52 cp -f $install/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE |
pascal@15601 | 53 cp -a $install/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE |
rcx@3913 | 54 |
pascal@15601 | 55 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15601 | 56 cp -a $install/usr/share/pixmaps $fs/usr/share |
rcx@3913 | 57 |
pascal@15601 | 58 cp -a $install/usr/bin $fs/usr |
rcx@3913 | 59 } |