wok-6.x annotate wxHexEditor/receipt @ rev 20319
Up tazlito (501)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 20 13:28:18 2018 +0200 (2018-05-20) |
parents | 934d6099191f |
children | 83981c141996 |
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@13960 | 10 TARBALL="$PACKAGE-v$VERSION-src.tar.bz2" |
al@13960 | 11 SF_PROJECT="wxhexeditor" |
al@13960 | 12 WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL" |
al@13960 | 13 |
al@18521 | 14 DEPENDS="libgomp wxWidgets28" |
al@18521 | 15 BUILD_DEPENDS="wxWidgets28-dev libffi libtool autoconf automake" |
al@13960 | 16 |
al@13960 | 17 # Rules to configure and make the package. |
al@13960 | 18 compile_rules() |
al@13960 | 19 { |
al@13960 | 20 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' $src/makefile |
al@13960 | 21 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' $src/makefile |
al@13960 | 22 |
al@13960 | 23 # don't know why but `backticks` unusable in this makefile |
al@13960 | 24 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program" |
al@13960 | 25 # mhash/config.log beginning from "configure:13977" |
al@13960 | 26 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" $src/makefile |
al@13960 | 27 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" $src/makefile |
al@13960 | 28 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" $src/makefile |
al@13960 | 29 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" $src/makefile |
al@13960 | 30 sed -i "s|^RC =.*|$(wx-config --rescomp)|" $src/makefile |
al@13960 | 31 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" $src/makefile |
al@13960 | 32 |
al@13960 | 33 make OPTFLAGS="-fopenmp" && make install |
al@13960 | 34 } |
al@13960 | 35 |
al@13960 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13960 | 37 genpkg_rules() |
al@13960 | 38 { |
al@13960 | 39 cp -a $install/* $fs |
al@13960 | 40 } |