wok-current diff wxHexEditor/receipt @ rev 16477
Up alsa, ARM add ntp* + a bunch of python packages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 01:06:05 2014 +0200 (2014-04-23) |
parents | |
children | affba9aecc73 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wxHexEditor/receipt Wed Apr 23 01:06:05 2014 +0200 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 +}