wok view wxHexEditor/receipt @ rev 25751

fixed recipe for wxHexEditor
author Hans-G?nter Theisgen
date Sat Aug 31 15:45:44 2024 +0100 (2 weeks ago)
parents b81ceff0b056
children 4f8add7c8b10
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 SUGGESTED="wxHexEditor-lang"
16 DEPENDS="gcc83-lib-base libgomp wxWidgets"
17 BUILD_DEPENDS="autoconf automake gcc83 libffi libtool wxWidgets-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
24 sed 's|,|\n|g' | sed '/http/!d;/download/!d;s|.*:"||;s|/download"|/|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' \
32 Makefile
33 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' \
34 Makefile
36 # don't know why but `backticks` unusable in this makefile
37 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program"
38 # mhash/config.log beginning from "configure:13977"
39 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" \
40 Makefile
41 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" \
42 Makefile
43 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" \
44 Makefile
45 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" \
46 Makefile
47 sed -i "s|^RC =.*|$(wx-config --rescomp)|" \
48 Makefile
49 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" \
50 Makefile
52 sed -i '423s|$|;|' \
53 src/HexDialogs.cpp
54 sed -i '67,69s|$|;|' \
55 src/HexEditorCtrl/HexEditorCtrl.cpp
57 export CFLAGS="$CFLAGS -std=c11"
59 make OPTFLAGS="-fopenmp" CC=gcc-83 CXX=g++-83 &&
60 make install
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 cook_copy_folders bin
67 cook_copy_folders pixmaps
68 }