# HG changeset patch # User Aleksej Bobylev # Date 1359606360 0 # Node ID 934d6099191f27debb0072d366d5deb0d13b1761 # Parent ae7571d3a47a5a2078f0af5f598245da639cbe2c Add wxHexEditor diff -r ae7571d3a47a -r 934d6099191f wxHexEditor/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wxHexEditor/receipt Thu Jan 31 04:26:00 2013 +0000 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="wxHexEditor" +VERSION="0.21" +CATEGORY="development" +SHORT_DESC="Hex editor for massive files" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL" +WEB_SITE="http://wxhexeditor.sourceforge.net/" +TARBALL="$PACKAGE-v$VERSION-src.tar.bz2" +SF_PROJECT="wxhexeditor" +WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL" + +DEPENDS="libgomp wxWidgets" +BUILD_DEPENDS="wxWidgets-dev libffi libtool autoconf automake" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile + sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile + + # don't know why but `backticks` unusable in this makefile + # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program" + # mhash/config.log beginning from "configure:13977" + sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile + sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile + sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile + sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile + sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile + sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile + + make OPTFLAGS="-fopenmp" && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} diff -r ae7571d3a47a -r 934d6099191f wxHexEditor/stuff/wxHexEditor.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wxHexEditor/stuff/wxHexEditor.desktop Thu Jan 31 04:26:00 2013 +0000 @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=wxHexEditor +Comment=A hex editor for huge files and devices +Comment[ru]=Шестнадцатеричный редактор для огромных файлов и устройств +Exec=wxHexEditor +Terminal=false +Icon=wxHexEditor +Categories=Utility;FileTools; +MimeType=*