wok annotate wxHexEditor/receipt @ rev 25751
fixed recipe for wxHexEditor
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 31 15:45:44 2024 +0100 (2 months ago) |
parents | b81ceff0b056 |
children | 4f8add7c8b10 |
rev | line source |
---|---|
al@13960 | 1 # SliTaz package receipt. |
al@13960 | 2 |
al@13960 | 3 PACKAGE="wxHexEditor" |
Hans-G?nter@22142 | 4 VERSION="0.24" |
al@13960 | 5 CATEGORY="development" |
Hans-G?nter@22142 | 6 SHORT_DESC="Hex editor designed specially for large files." |
al@13960 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@13960 | 8 LICENSE="GPL" |
Hans-G?nter@22142 | 9 WEB_SITE="http://wxhexeditor.org/" |
Hans-G?nter@22142 | 10 |
Hans-G?nter@22142 | 11 TARBALL="$PACKAGE-v$VERSION-src.tar.xz" |
al@13960 | 12 SF_PROJECT="wxhexeditor" |
al@13960 | 13 WGET_URL="$SF_MIRROR/$SF_PROJECT/$TARBALL" |
al@13960 | 14 |
Hans-G?nter@25751 | 15 SUGGESTED="wxHexEditor-lang" |
Hans-G?nter@25751 | 16 DEPENDS="gcc83-lib-base libgomp wxWidgets" |
Hans-G?nter@25751 | 17 BUILD_DEPENDS="autoconf automake gcc83 libffi libtool wxWidgets-dev" |
al@13960 | 18 |
pascal@24319 | 19 # What is the latest version available today? |
pascal@24319 | 20 current_version() |
pascal@24319 | 21 { |
pascal@24319 | 22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@25607 | 23 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@25608 | 24 sed 's|,|\n|g' | sed '/http/!d;/download/!d;s|.*:"||;s|/download"|/|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24319 | 25 sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q' |
pascal@24319 | 26 } |
pascal@24319 | 27 |
al@13960 | 28 # Rules to configure and make the package. |
al@13960 | 29 compile_rules() |
al@13960 | 30 { |
Hans-G?nter@22142 | 31 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' \ |
Hans-G?nter@22142 | 32 Makefile |
Hans-G?nter@22142 | 33 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' \ |
Hans-G?nter@22142 | 34 Makefile |
al@13960 | 35 |
al@13960 | 36 # don't know why but `backticks` unusable in this makefile |
al@13960 | 37 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program" |
al@13960 | 38 # mhash/config.log beginning from "configure:13977" |
Hans-G?nter@22142 | 39 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" \ |
Hans-G?nter@22142 | 40 Makefile |
Hans-G?nter@22142 | 41 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" \ |
Hans-G?nter@22142 | 42 Makefile |
Hans-G?nter@22142 | 43 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" \ |
Hans-G?nter@22142 | 44 Makefile |
Hans-G?nter@22142 | 45 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" \ |
Hans-G?nter@22142 | 46 Makefile |
Hans-G?nter@22142 | 47 sed -i "s|^RC =.*|$(wx-config --rescomp)|" \ |
Hans-G?nter@22142 | 48 Makefile |
Hans-G?nter@22142 | 49 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" \ |
Hans-G?nter@22142 | 50 Makefile |
al@13960 | 51 |
Hans-G?nter@25751 | 52 sed -i '423s|$|;|' \ |
Hans-G?nter@25751 | 53 src/HexDialogs.cpp |
Hans-G?nter@25751 | 54 sed -i '67,69s|$|;|' \ |
Hans-G?nter@25751 | 55 src/HexEditorCtrl/HexEditorCtrl.cpp |
Hans-G?nter@25751 | 56 |
Hans-G?nter@25751 | 57 export CFLAGS="$CFLAGS -std=c11" |
Hans-G?nter@25751 | 58 |
Hans-G?nter@25751 | 59 make OPTFLAGS="-fopenmp" CC=gcc-83 CXX=g++-83 && |
Hans-G?nter@22142 | 60 make install |
al@13960 | 61 } |
al@13960 | 62 |
al@13960 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13960 | 64 genpkg_rules() |
al@13960 | 65 { |
Hans-G?nter@25751 | 66 cook_copy_folders bin |
Hans-G?nter@25751 | 67 cook_copy_folders pixmaps |
al@13960 | 68 } |