wok-current annotate htmldoc/receipt @ rev 22170
linld: clear heap in moverm
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 08 10:47:52 2019 +0100 (2019-11-08) |
parents | eccd0a10e94e |
children | 4636144009a9 |
rev | line source |
---|---|
gokhlayeh@8883 | 1 # SliTaz package receipt. |
gokhlayeh@8883 | 2 |
gokhlayeh@8883 | 3 PACKAGE="htmldoc" |
gokhlayeh@8883 | 4 VERSION="1.8.27" |
gokhlayeh@8883 | 5 CATEGORY="utilities" |
gokhlayeh@8883 | 6 SHORT_DESC="Convert HTML pages into a PDF document." |
gokhlayeh@8883 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15077 | 8 LICENSE="GPL2" |
gokhlayeh@8883 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" |
pascal@22007 | 10 WEB_SITE="https://www.htmldoc.org" |
gokhlayeh@8883 | 11 WGET_URL="http://ftp.easysw.com/pub/$PACKAGE/$VERSION/$TARBALL" |
gokhlayeh@8883 | 12 |
pascal@15123 | 13 DEPENDS="jpeg libpng fltk" |
pascal@15123 | 14 BUILD_DEPENDS="jpeg-dev libpng-dev fltk-dev" |
pascal@15077 | 15 |
gokhlayeh@8883 | 16 # Rules to configure and make the package. |
gokhlayeh@8883 | 17 compile_rules() |
gokhlayeh@8883 | 18 { |
pascal@21121 | 19 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \ |
pascal@21121 | 20 -e 's|\(quantize.*\)0|\1boolean(0)|' htmldoc/image.cxx |
gokhlayeh@8883 | 21 |
gokhlayeh@8883 | 22 # make sure not to use the libs htmldoc ships with |
gokhlayeh@8883 | 23 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/ |
gokhlayeh@8883 | 24 |
gokhlayeh@8883 | 25 { ./configure && \ |
gokhlayeh@8883 | 26 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \ |
gokhlayeh@8883 | 27 make && make prefix=$DESTDIR/usr install; } || return 1 |
gokhlayeh@8883 | 28 |
gokhlayeh@8883 | 29 # fix freedesktop stuff |
gokhlayeh@8883 | 30 install -Dm 644 desktop/htmldoc-128.png \ |
gokhlayeh@8883 | 31 $DESTDIR/usr/share/pixmaps/htmldoc.png |
gokhlayeh@8883 | 32 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop |
gokhlayeh@8883 | 33 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop |
gokhlayeh@8883 | 34 install -Dm 644 desktop/htmldoc.desktop \ |
gokhlayeh@8883 | 35 $DESTDIR/usr/share/applications/htmldoc.desktop |
gokhlayeh@8883 | 36 } |
gokhlayeh@8883 | 37 |
gokhlayeh@8883 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8883 | 39 genpkg_rules() |
gokhlayeh@8883 | 40 { |
gokhlayeh@8883 | 41 mkdir -p $fs/usr/share |
pascal@15077 | 42 cp -a $install/usr/bin $fs/usr |
pascal@15077 | 43 cp -a $install/usr/share/htmldoc $fs/usr/share |
gokhlayeh@8883 | 44 } |