Navigation

Project: wok

Clone project: hg clone http://hg.slitaz.org/wok

  • Download tarball:
  • bz2
  • gz

Search

wok changeset 13960:934d6099191f

Add wxHexEditor
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 04:26:00 2013 +0000 (21 months ago ago)
parents ae7571d3a47a
children f232f9494e91
files wxHexEditor/receipt wxHexEditor/stuff/wxHexEditor.desktop
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wxHexEditor/receipt	Thu Jan 31 04:26:00 2013 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wxHexEditor"
     1.7 +VERSION="0.21"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Hex editor for massive files"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="GPL"
    1.12 +WEB_SITE="http://wxhexeditor.sourceforge.net/"
    1.13 +TARBALL="$PACKAGE-v$VERSION-src.tar.bz2"
    1.14 +SF_PROJECT="wxhexeditor"
    1.15 +WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL"
    1.16 +
    1.17 +DEPENDS="libgomp wxWidgets"
    1.18 +BUILD_DEPENDS="wxWidgets-dev libffi libtool autoconf automake"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile
    1.24 +	sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile
    1.25 +
    1.26 +	# don't know why but `backticks` unusable in this makefile
    1.27 +	# mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program"
    1.28 +	# mhash/config.log beginning from "configure:13977"
    1.29 +	sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile
    1.30 +	sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile
    1.31 +	sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile
    1.32 +	sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile
    1.33 +	sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile
    1.34 +	sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile
    1.35 +
    1.36 +	make OPTFLAGS="-fopenmp" && make install
    1.37 +}
    1.38 +
    1.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 +genpkg_rules()
    1.41 +{
    1.42 +	cp -a $install/* $fs
    1.43 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/wxHexEditor/stuff/wxHexEditor.desktop	Thu Jan 31 04:26:00 2013 +0000
     2.3 @@ -0,0 +1,10 @@
     2.4 +[Desktop Entry]
     2.5 +Type=Application
     2.6 +Name=wxHexEditor
     2.7 +Comment=A hex editor for huge files and devices
     2.8 +Comment[ru]=Шестнадцатеричный редактор для огромных файлов и устройств
     2.9 +Exec=wxHexEditor
    2.10 +Terminal=false
    2.11 +Icon=wxHexEditor
    2.12 +Categories=Utility;FileTools;
    2.13 +MimeType=*