wok view wxHexEditor/receipt @ rev 25558
Up libqcow (20221124)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 24 09:03:56 2023 +0000 (20 months ago) |
parents | 83981c141996 |
children | 29df00e1e19d |
line source
1 # SliTaz package receipt.
3 PACKAGE="wxHexEditor"
4 VERSION="0.24"
5 CATEGORY="development"
6 SHORT_DESC="Hex editor designed specially for large files."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://wxhexeditor.org/"
11 TARBALL="$PACKAGE-v$VERSION-src.tar.xz"
12 SF_PROJECT="wxhexeditor"
13 WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL"
15 DEPENDS="libgomp wxWidgets"
16 BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \
24 sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' \
31 Makefile
32 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' \
33 Makefile
35 # don't know why but `backticks` unusable in this makefile
36 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program"
37 # mhash/config.log beginning from "configure:13977"
38 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" \
39 Makefile
40 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" \
41 Makefile
42 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" \
43 Makefile
44 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" \
45 Makefile
46 sed -i "s|^RC =.*|$(wx-config --rescomp)|" \
47 Makefile
48 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" \
49 Makefile
51 make OPTFLAGS="-fopenmp" &&
52 make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 cp -a $install/* $fs
59 }