wok-next view mdocml/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | e0a322a2f200 |
children | 4e6503d7a19f |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mdocml"
4 VERSION="1.12.1"
5 CATEGORY="base-system"
6 SHORT_DESC="UNIX manpage compiler"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="ISC"
9 WEB_SITE="http://mdocml.bsd.lv/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL"
13 BUILD_DEPENDS="db-dev"
14 SPLIT="mdocml mdocml-cgi mdocml-dev mdocml-extra mdocml-man"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="$LDFLAGS -lpthread"
20 # configure
21 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \
22 s/^STATIC.*/#\0/; \
23 s/^PREFIX.*/PREFIX = \/usr/;
24 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/;
25 s/^#\(DBLIB.*\)/\1/' \
26 Makefile
27 make clean &&
28 make &&
29 make DESTDIR=$install install &&
30 make DESTDIR=$install installcgi &&
31 install -m 0755 apropos catman mandocdb whatis $install/usr/bin
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 mdocml)
39 DEPENDS="glibc-base"
40 mkdir -p $fs/usr/bin
41 cp -a $install/usr/bin/mandoc $fs/usr/bin
42 ;;
43 mdocml-cgi)
44 CAT="development|CGI files for mdocml"
45 DEPENDS="glibc-base libdb"
46 mkdir -p $fs/var
47 cp -a $install/var/www $fs/var
48 ;;
49 mdocml-dev)
50 CAT="development|Devel files for mdocml"
51 DEPENDS="mdocml"
52 mkdir -p $fs/usr
53 cp -a $install/usr/include $fs/usr
54 cp -a $install/usr/lib $fs/usr
55 ;;
56 mdocml-extra)
57 CAT="base-system|Extra files for mdocml"
58 DEPENDS="glibc-base libdb mdocml"
59 mkdir -p $fs/usr
60 cp -a $install/usr/bin $fs/usr
61 rm -f $fs/usr/bin/mandoc
62 ;;
63 mdocml-man)
64 CAT="development|Man files for mdocml"
65 DEPENDS="mdocml"
66 mkdir -p $fs/usr/share
67 cp -a $install/usr/share/man $fs/usr/share
68 ;;
69 esac
70 }