wok-next view apr/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children 82b613cfd1e0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="apr"
4 VERSION="1.6.5"
5 CATEGORY="misc"
6 SHORT_DESC="Apache Portable Runtime Library"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="http://apr.apache.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/apr.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://archive.apache.org/dist/apr/$TARBALL"
15 BUILD_DEPENDS="util-linux-uuid-dev"
16 SPLIT="$PACKAGE-dev"
18 COOKOPTS="skip-log-errors force-arch" # different apr-1-config, .h, .pc, .mk, libtool
20 compile_rules() {
21 # should define prefix
22 ./configure \
23 --prefix=/usr \
24 --disable-static \
25 --with-installbuilddir=/usr/share/apr-1/build \
26 --enable-nonportable-atomics \
27 --with-devrandom \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make &&
31 make install
32 }
34 genpkg_rules() {
35 case $PACKAGE in
36 apr)
37 copy *.so*
38 DEPENDS="util-linux-uuid"
39 ;;
40 apr-dev)
41 copy @dev build/ *.exp
42 DEPENDS="apr util-linux-uuid-dev"
43 ;;
44 esac
45 }