wok view smx/receipt @ rev 24717

updated liba53 (0.1 -> 4.0.0)
author Hans-G?nter Theisgen
date Tue Mar 15 07:27:19 2022 +0100 (2022-03-15)
parents b7f1bd1b9ac7
children d765616e1f3d
line source
1 # SliTaz package receipt.
3 PACKAGE="smx"
4 VERSION="1.1.4-454"
5 CATEGORY="development"
6 SHORT_DESC="text-embedded macro processing language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://web.archive.org/web/20180323014153/http://www.smxlang.org/"
11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
13 DEPENDS="unixODBC sqlite libgd libcrypto gcc-lib-base zlib tiff libjpeg"
14 BUILD_DEPENDS="apache-dev apr-dev apr-util-dev unixODBC-dev \
15 sqlite tiff-dev libgd-dev openssl-dev perl libtool"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/earonesty/smx/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 sed -i -e 's/ap_get_server_version/ap_get_server_banner/' \
29 -e 's/remote_ip/client_ip/' modsmx/modsmx.h
30 sed -i 's/modsmx.h"/&\n#ifdef APLOG_USE_MODULE\nAPLOG_USE_MODULE(smx);\n#undef APLOG_MARK\n#define APLOG_MARK __FILE__, __LINE__, APLOG_MODULE_INDEX\n#endif/' modsmx/modsmx.cpp
31 ./configure \
32 --prefix=/usr \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/lib/*.so* $fs/usr/lib
45 }