# SliTaz package receipt. PACKAGE="wxHexEditor" VERSION="0.24" CATEGORY="development" SHORT_DESC="Hex editor designed specially for large files." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL" WEB_SITE="http://wxhexeditor.org/" TARBALL="$PACKAGE-v$VERSION-src.tar.xz" SF_PROJECT="wxhexeditor" WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL" DEPENDS="libgomp wxWidgets" BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \ sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' \ Makefile sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' \ 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)|" \ Makefile sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" \ Makefile sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" \ Makefile sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" \ Makefile sed -i "s|^RC =.*|$(wx-config --rescomp)|" \ Makefile sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" \ Makefile make OPTFLAGS="-fopenmp" && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs }