wok-next view wxHexEditor/receipt @ rev 20888

Check Repology info from q* to x* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 14 17:43:03 2018 +0300 (2018-07-14)
parents 58744412e5b2
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="wxHexEditor"
4 VERSION="0.21"
5 CATEGORY="development"
6 SHORT_DESC="Hex editor for massive files"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://wxhexeditor.sourceforge.net/"
10 REPOLOGY="wxhexeditor"
12 TARBALL="$PACKAGE-v$VERSION-src.tar.bz2"
13 SF_PROJECT="wxhexeditor"
14 WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL"
16 DEPENDS="libgomp wxWidgets28"
17 BUILD_DEPENDS="wxWidgets28-dev libffi libtool autoconf automake gettext-tools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile
23 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile
25 # don't know why but `backticks` unusable in this makefile
26 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program"
27 # mhash/config.log beginning from "configure:13977"
28 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile
29 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile
30 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile
31 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile
32 sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile
33 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile
35 make OPTFLAGS="-fopenmp" && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 }