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