# HG changeset patch # User Matthew Sheets # Date 1250527230 0 # Node ID 0c8c7c9a2dd4905d7f3ffe5a3f846408d94a8dc2 # Parent 56b92e108859bc4f70ab866a75f9b7c02f5462fa Add: xtrkcad (4.0.3a) diff -r 56b92e108859 -r 0c8c7c9a2dd4 menu-railroad/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menu-railroad/receipt Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="menu-railroad" +VERSION="1.0" +CATEGORY="x-window" +SHORT_DESC="Freedesktop menu for railroading applications." +MAINTAINER="rcx@zoominternet" +WEB_SITE="http://icons.mysitemyway.com/free-clipart-icons/1/locomotive-train-icon-id/39275/style-id/294/grunge-brushed-metal-pewter-icons/transport-travel/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + # Menu directory icon is free from the above website + mkdir -p $fs/usr/share $fs/etc/xdg + cp -a stuff/desktop-directories $fs/usr/share + cp -a stuff/pixmaps $fs/usr/share + cp -a stuff/menus $fs/etc/xdg +} diff -r 56b92e108859 -r 0c8c7c9a2dd4 menu-railroad/stuff/desktop-directories/railroad.directory --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menu-railroad/stuff/desktop-directories/railroad.directory Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Railroad +Comment=Railroading applications +Icon=railroad +Type=Directory +Encoding=UTF-8 diff -r 56b92e108859 -r 0c8c7c9a2dd4 menu-railroad/stuff/menus/applications-merged/railroad.menu --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/menu-railroad/stuff/menus/applications-merged/railroad.menu Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,16 @@ + + + + Applications + + + Railroad + railroad.directory + + + Railroad + + + + diff -r 56b92e108859 -r 0c8c7c9a2dd4 menu-railroad/stuff/pixmaps/railroad.png Binary file menu-railroad/stuff/pixmaps/railroad.png has changed diff -r 56b92e108859 -r 0c8c7c9a2dd4 xtrkcad-doc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xtrkcad-doc/receipt Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="xtrkcad-doc" +VERSION="4.0.3a" +CATEGORY="games" +SHORT_DESC="Documentation, examples, and how-to demos for xtrkcad." +MAINTAINER="rcx@zoominternet.net" +WEB_SITE="http://www.xtrkcad.org/" +WANTED="xtrkcad" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/$WANTED + cp -a $_pkg/usr/share/$WANTED/html $fs/usr/share/$WANTED + cp -a $_pkg/usr/share/$WANTED/examples $fs/usr/share/$WANTED + cp -a $_pkg/usr/share/$WANTED/demos $fs/usr/share/$WANTED +} diff -r 56b92e108859 -r 0c8c7c9a2dd4 xtrkcad/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xtrkcad/receipt Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,61 @@ +# SliTaz package receipt. + +PACKAGE="xtrkcad" +VERSION="4.0.3a" +CATEGORY="games" +SHORT_DESC="A CAD program for designing model railroad layouts." +MAINTAINER="rcx@zoominternet.net" +DEPENDS="menu-railroad glibc-base glib libgio zlib expat libxml2 gtk+ \ +libgtkhtml fontconfig freetype atk cairo libpng pango pixman libxcb \ +xcb-util xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor \ +xorg-libXdamage xorg-libXdmcp xorg-libXext xorg-libXfixes \ +xorg-libXinerama xorg-libXrender" +BUILD_DEPENDS="slitaz-toolchain cmake pkg-config gettext zlib-dev \ +gtk+-dev libxml2-dev libgtkhtml-dev libgtkhtml doxygen xorg-xproto \ +xorg-renderproto xorg-libX11-dev xorg-kbproto xorg-libXau-dev \ +xorg-libXdmcp-dev" +TARBALL="$PACKAGE-source-$VERSION.tar.gz" +WEB_SITE="http://www.xtrkcad.org/" +WGET_URL="$SF_MIRROR/$PACKAGE-fork/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + # Determine if TOOLPREFIX has been defined in tazwok.conf as it should + if [ -z "$TOOLPREFIX" ] ; then + # Provide a default TOOLPREFIX value + TOOLPREFIX=i486-pc-linux-gnu- + fi + + XTRKCAD_STUFF=$PWD/stuff + + mv $PACKAGE-source-$VERSION $PACKAGE-$VERSION + cd $src + cmake -D CMAKE_C_COMPILER:FILEPATH=${TOOLPREFIX}gcc \ + -D CMAKE_CXX_COMPILER:FILEPATH=${TOOLPREFIX}c++ \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D XTRKCAD_USE_GTK=ON -D XTRKCAD_USE_GTK_CAIRO=ON . && + make PREFIX=/usr && + make DESTDIR=$src/_pkg install && + mkdir -p $src/_pkg/usr/share/pixmaps && + # cp -f $XTRKCAD_STUFF/$PACKAGE.png $src/_pkg/usr/share/pixmaps && + cp -f $src/app/bin/xtrkcad.ico $src/_pkg/usr/share/pixmaps + mkdir -p $src/_pkg/usr/share/applications && + cp -f $XTRKCAD_STUFF/$PACKAGE.desktop $src/_pkg/usr/share/applications && + sed -e 's|^Categories=[^$]*$|Categories=Application;Railroad;|g' -i $src/_pkg/usr/share/applications/xtrkcad.desktop +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/$PACKAGE + cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.tip $fs/usr/share/$PACKAGE + cp -f $_pkg/usr/share/$PACKAGE/$PACKAGE.xtq $fs/usr/share/$PACKAGE + cp -f $_pkg/usr/share/$PACKAGE/logo.bmp $fs/usr/share/$PACKAGE + cp -a $_pkg/usr/share/$PACKAGE/params $fs/usr/share/$PACKAGE + + cp -a $_pkg/usr/share/applications $fs/usr/share + cp -a $_pkg/usr/share/pixmaps $fs/usr/share + + cp -a $_pkg/usr/bin $fs/usr +} diff -r 56b92e108859 -r 0c8c7c9a2dd4 xtrkcad/stuff/xtrkcad.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xtrkcad/stuff/xtrkcad.desktop Mon Aug 17 16:40:30 2009 +0000 @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=XTrackCAD +Comment=Design model railroad layouts +Exec=xtrkcad +Icon=xtrkcad +Terminal=false +Type=Application +Categories=Application;Railroad; diff -r 56b92e108859 -r 0c8c7c9a2dd4 xtrkcad/stuff/xtrkcad.png Binary file xtrkcad/stuff/xtrkcad.png has changed