wok-next annotate 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 |
rev | line source |
---|---|
al@13960 | 1 # SliTaz package receipt. |
al@13960 | 2 |
al@13960 | 3 PACKAGE="wxHexEditor" |
al@13960 | 4 VERSION="0.21" |
al@13960 | 5 CATEGORY="development" |
al@13960 | 6 SHORT_DESC="Hex editor for massive files" |
al@13960 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@13960 | 8 LICENSE="GPL" |
al@13960 | 9 WEB_SITE="http://wxhexeditor.sourceforge.net/" |
al@20888 | 10 REPOLOGY="wxhexeditor" |
al@20888 | 11 |
al@13960 | 12 TARBALL="$PACKAGE-v$VERSION-src.tar.bz2" |
al@13960 | 13 SF_PROJECT="wxhexeditor" |
al@13960 | 14 WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL" |
al@13960 | 15 |
al@21020 | 16 BUILD_DEPENDS="wxWidgets28-dev libffi libtool autoconf automake gettext" |
al@13960 | 17 |
al@21020 | 18 compile_rules() { |
al@13960 | 19 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile |
al@13960 | 20 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile |
al@13960 | 21 |
al@13960 | 22 # don't know why but `backticks` unusable in this makefile |
al@13960 | 23 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program" |
al@13960 | 24 # mhash/config.log beginning from "configure:13977" |
al@13960 | 25 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile |
al@13960 | 26 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile |
al@13960 | 27 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile |
al@13960 | 28 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile |
al@13960 | 29 sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile |
al@13960 | 30 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile |
al@13960 | 31 |
al@13960 | 32 make OPTFLAGS="-fopenmp" && make install |
al@13960 | 33 } |
al@13960 | 34 |
al@21020 | 35 genpkg_rules() { |
al@13960 | 36 cp -a $install/* $fs |
al@21020 | 37 DEPENDS="libgomp wxWidgets28" |
al@13960 | 38 } |