wok view cups-filters/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 4d117a467c5d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-filters"
4 VERSION="1.0.71"
5 CATEGORY="system-tools"
6 SHORT_DESC="OpenPrinting CUPS Filters"
7 MAINTAINER="mojo@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://wiki.linuxfoundation.org/openprinting/cups-filters"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.openprinting.org/download/cups-filters/$TARBALL"
13 EXTRA_SOURCE_FILES="$PACKAGE-7371.u"
14 WGET_URL2="http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/diff/7371"
16 DEPENDS="gcc83-lib-base lcms poppler qpdf ghostscript gutenprint glib"
17 BUILD_DEPENDS="gcc83 ijs-dev libpng-dev lcms-dev poppler-dev qpdf-dev dbus-dev \
18 cups-dev gmp-dev zlib-dev jpeg-dev tiff-dev freetype-dev fontconfig-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 [ -s $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES ] ||
31 wget -O $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES $WGET_URL2
32 patch -p0 -i $SOURCES_REPOSITORY/$EXTRA_SOURCE_FILES
34 sed -i '40i#include <cups/ppd.h>'\
35 cupsfilters/colormanager.h
36 sed -i '37i#include <cups/ppd.h>'\
37 cupsfilters/colord.h
38 sed -i '40i#include <cups/ppd.h>'\
39 cupsfilters/driver.h
41 export CFLAGS="$CFLAGS -std=c11"
42 export CXXFLAGS="$CXXFLAGS -std=c++14"
44 ./configure \
45 CC=gcc-83 \
46 CXX=g++-83 \
47 LIBQPDF_CFLAGS="-D QPDF_NO_QPDF_STRING" \
48 --prefix=/usr \
49 --sysconfdir=/etc \
50 $CONFIGURE_ARGS &&
51 make &&
52 make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib
59 mkdir -p $fs/usr/share
61 cp -a $install/etc $fs
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/sbin $fs/usr
64 cp -a $install/usr/lib/*so* $fs/usr/lib
65 cp -a $install/usr/lib/cups $fs/usr/lib
66 cp -a $install/usr/share/ppd $fs/usr/share
67 cp -a $install/usr/share/cups $fs/usr/share
68 rm -fr $fs/etc/rc*.d
69 rm -fr $fs/usr/share/cups/ppdc
70 }