wok annotate wxHexEditor/receipt @ rev 24635
updated gutenprint and gutenprint-dev (5.3.3 -> 5.3.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 09 08:09:06 2022 +0100 (2022-03-09) |
parents | 83981c141996 |
children | 29df00e1e19d |
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@22142 | 15 DEPENDS="libgomp wxWidgets" |
Hans-G?nter@22142 | 16 BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev" |
al@13960 | 17 |
pascal@24319 | 18 # What is the latest version available today? |
pascal@24319 | 19 current_version() |
pascal@24319 | 20 { |
pascal@24319 | 21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ |
pascal@24319 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24319 | 23 sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24319 | 24 sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q' |
pascal@24319 | 25 } |
pascal@24319 | 26 |
al@13960 | 27 # Rules to configure and make the package. |
al@13960 | 28 compile_rules() |
al@13960 | 29 { |
Hans-G?nter@22142 | 30 sed -i 's|^PREFIX\ *= /usr/local|PREFIX = /usr|' \ |
Hans-G?nter@22142 | 31 Makefile |
Hans-G?nter@22142 | 32 sed -i 's|^HOST=|HOST = '$HOST_SYSTEM'|' \ |
Hans-G?nter@22142 | 33 Makefile |
al@13960 | 34 |
al@13960 | 35 # don't know why but `backticks` unusable in this makefile |
al@13960 | 36 # mhash/configure:14063 say "libtool.m4: error: problem compiling CXX test program" |
al@13960 | 37 # mhash/config.log beginning from "configure:13977" |
Hans-G?nter@22142 | 38 sed -i "s|^CC =.*|CC = $(wx-config --cc)|" \ |
Hans-G?nter@22142 | 39 Makefile |
Hans-G?nter@22142 | 40 sed -i "s|^CXX =.*|CXX = $(wx-config --cxx)|" \ |
Hans-G?nter@22142 | 41 Makefile |
Hans-G?nter@22142 | 42 sed -i "s|^CXXFLAGS=.*|CXXFLAGS = $(wx-config --cxxflags) -Iudis86 -Imhash/include -MMD -O2 -c \${OPTFLAGS}|" \ |
Hans-G?nter@22142 | 43 Makefile |
Hans-G?nter@22142 | 44 sed -i "s|^LDFLAGS =.*|LDFLAGS = $(wx-config --libs)|" \ |
Hans-G?nter@22142 | 45 Makefile |
Hans-G?nter@22142 | 46 sed -i "s|^RC =.*|$(wx-config --rescomp)|" \ |
Hans-G?nter@22142 | 47 Makefile |
Hans-G?nter@22142 | 48 sed -i "s|^RCFLAGS =.*|RCFLAGS = $(wx-config --cxxflags | sed s/' '-m.*//g;)|" \ |
Hans-G?nter@22142 | 49 Makefile |
al@13960 | 50 |
Hans-G?nter@22142 | 51 make OPTFLAGS="-fopenmp" && |
Hans-G?nter@22142 | 52 make install |
al@13960 | 53 } |
al@13960 | 54 |
al@13960 | 55 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@13960 | 56 genpkg_rules() |
al@13960 | 57 { |
al@13960 | 58 cp -a $install/* $fs |
al@13960 | 59 } |