wok-next diff libesmtp/receipt @ rev 20406
Continue: json-c, json-glib, keyutils, libarchive, libassuan, libatasmart, libatomic_ops, libblockdev, libbytesize, libcroco, libdaemon, libesmtp, libffi, libgcrypt, libgpg-error, libgsf, libgudev, libgusb
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 08 02:55:48 2017 +0200 (2017-12-08) |
parents | 4904e3d374a9 |
children | e6615350078d |
line diff
1.1 --- a/libesmtp/receipt Tue Jun 11 10:41:23 2013 +0200 1.2 +++ b/libesmtp/receipt Fri Dec 08 02:55:48 2017 +0200 1.3 @@ -1,30 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libesmtp" 1.8 VERSION="1.0.6" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="A Library for Posting Electronic Mai" 1.11 +SHORT_DESC="A Library for posting electronic mail" 1.12 MAINTAINER="erjo@slitaz.org" 1.13 LICENSE="GPL2" 1.14 WEB_SITE="http://www.stafford.uklinux.net/libesmtp/" 1.15 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libesmtp.html" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.18 WGET_URL="http://www.stafford.uklinux.net/libesmtp/$TARBALL" 1.19 1.20 -DEPENDS="libltdl libssl" 1.21 -BUILD_DEPENDS="openssl-dev" 1.22 +BUILD_DEPENDS="automake libtool openssl-dev" 1.23 +SPLIT="libesmtp-dev" 1.24 +COOKOPTS="skip-log-errors" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 - cd $src 1.30 - ./configure $CONFIGURE_ARGS && make && make install 1.31 +compile_rules() { 1.32 + # fix a build issue with OpenSSL-1.1.0 1.33 + sed 's@SSL_library_init@SSL_new@g' -i configure.ac 1.34 + autoreconf -fi && 1.35 + 1.36 + ./configure $CONFIGURE_ARGS && 1.37 + make && make install 1.38 } 1.39 1.40 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.41 -genpkg_rules() 1.42 -{ 1.43 - mkdir -p $fs/usr 1.44 - cp -a $install/usr/lib $fs/usr 1.45 - 1.46 - find $fs -name "*.*a" -exec rm -f {} \; 1.47 +genpkg_rules() { 1.48 + case $PACKAGE in 1.49 + libesmtp) 1.50 + copy @std 1.51 + DEPENDS="libcrypto libssl" 1.52 + ;; 1.53 + *-dev) 1.54 + copy @dev 1.55 + DEPENDS="libesmtp openssl-dev" 1.56 + ;; 1.57 + esac 1.58 }