wok view smx/receipt @ rev 25688

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 12 10:06:53 2024 +0000 (7 months ago)
parents d765616e1f3d
children
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="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$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 '/tag\//!d;s|.*tag/v*||;s|".*||;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 }