wok annotate smx/receipt @ rev 25284
roundup: added BUILD_DEPENDS
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 16:14:38 2022 +0100 (2022-07-18) |
parents | 7885246fa96e |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@13358 | 1 # SliTaz package receipt. |
pascal@13358 | 2 |
pascal@13358 | 3 PACKAGE="smx" |
pascal@13358 | 4 VERSION="1.1.4-454" |
pascal@13358 | 5 CATEGORY="development" |
pascal@13358 | 6 SHORT_DESC="text-embedded macro processing language." |
pascal@13358 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15593 | 8 LICENSE="GPL2" |
pascal@13358 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20689 | 10 WEB_SITE="https://web.archive.org/web/20180323014153/http://www.smxlang.org/" |
pascal@24979 | 11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL" |
pascal@13358 | 12 |
pascal@24714 | 13 DEPENDS="unixODBC sqlite libgd libcrypto gcc-lib-base zlib tiff libjpeg" |
pascal@13358 | 14 BUILD_DEPENDS="apache-dev apr-dev apr-util-dev unixODBC-dev \ |
pascal@24714 | 15 sqlite tiff-dev libgd-dev openssl-dev perl libtool" |
pascal@13358 | 16 |
pascal@24713 | 17 # What is the latest version available today? |
pascal@24713 | 18 current_version() |
pascal@24713 | 19 { |
pascal@24713 | 20 wget -O - https://github.com/earonesty/smx/releases 2>/dev/null | \ |
pascal@24713 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24713 | 22 } |
pascal@24713 | 23 |
pascal@13358 | 24 # Rules to configure and make the package. |
pascal@13358 | 25 compile_rules() |
pascal@13358 | 26 { |
pascal@13358 | 27 cd $src |
pascal@15373 | 28 sed -i -e 's/ap_get_server_version/ap_get_server_banner/' \ |
pascal@15373 | 29 -e 's/remote_ip/client_ip/' modsmx/modsmx.h |
pascal@15373 | 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 |
pascal@13358 | 31 ./configure \ |
pascal@13358 | 32 --prefix=/usr \ |
pascal@13358 | 33 --mandir=/usr/share/man \ |
pascal@13358 | 34 $CONFIGURE_ARGS && |
pascal@13358 | 35 make && |
pascal@13358 | 36 make DESTDIR=$DESTDIR install |
pascal@13358 | 37 } |
pascal@13358 | 38 |
pascal@13358 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13358 | 40 genpkg_rules() |
pascal@13358 | 41 { |
pascal@13358 | 42 mkdir -p $fs/usr/lib |
pascal@13358 | 43 cp -a $install/usr/bin $fs/usr |
pascal@13358 | 44 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@13358 | 45 } |