wok-next view wxHexEditor/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | cd7906120828 |
children | d457c4e37c1b |
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 BUILD_DEPENDS="wxWidgets28-dev libffi libtool autoconf automake gettext"
18 compile_rules() {
19 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile
20 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile
22 # don't know why but `backticks` unusable in this makefile
23 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program"
24 # mhash/config.log beginning from "configure:13977"
25 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile
26 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile
27 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile
28 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile
29 sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile
30 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile
32 make OPTFLAGS="-fopenmp" && make install
33 }
35 genpkg_rules() {
36 cp -a $install/* $fs
37 DEPENDS="libgomp wxWidgets28"
38 }