wok view smx/receipt @ rev 19965
Up ncdc (1.20)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon May 29 17:41:54 2017 +0100 (2017-05-29) |
parents | 3b4e4318134e |
children | c49ffc024a6c |
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="http://www.smxlang.org/"
11 WGET_URL="http://$PACKAGE.googlecode.com/files/$TARBALL"
13 DEPENDS="unixODBC sqlite libgd libcrypto gcc-lib-base zlib"
14 BUILD_DEPENDS="apache-dev apr-dev apr-util-dev unixODBC-dev \
15 sqlite libgd-dev openssl-dev perl libtool"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i -e 's/ap_get_server_version/ap_get_server_banner/' \
22 -e 's/remote_ip/client_ip/' modsmx/modsmx.h
23 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
24 ./configure \
25 --prefix=/usr \
26 --mandir=/usr/share/man \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }