wok-current annotate cups-filters/receipt @ rev 25618
Use default gcc 6.3 for libgphoto2
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Sep 03 19:59:46 2023 +0000 (14 months ago) |
parents | 2155b2665e26 |
children | a23978bfa665 |
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 |
shann@25608 | 16 DEPENDS="lcms poppler qpdf ghostscript gutenprint glib" |
shann@25608 | 17 BUILD_DEPENDS="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@25038 | 45 LIBQPDF_CFLAGS="-D QPDF_NO_QPDF_STRING" \ |
Hans-G?nter@25038 | 46 --prefix=/usr \ |
Hans-G?nter@25038 | 47 --sysconfdir=/etc \ |
al@19315 | 48 $CONFIGURE_ARGS && |
Hans-G?nter@23217 | 49 make && |
Hans-G?nter@23217 | 50 make install |
mojo@17841 | 51 } |
mojo@17841 | 52 |
mojo@17841 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
mojo@17841 | 54 genpkg_rules() |
mojo@17841 | 55 { |
Hans-G?nter@23217 | 56 mkdir -p $fs/usr/lib |
Hans-G?nter@23217 | 57 mkdir -p $fs/usr/share |
Hans-G?nter@23217 | 58 |
Hans-G?nter@23217 | 59 cp -a $install/etc $fs |
Hans-G?nter@23217 | 60 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23217 | 61 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@23217 | 62 cp -a $install/usr/lib/*so* $fs/usr/lib |
Hans-G?nter@23217 | 63 cp -a $install/usr/lib/cups $fs/usr/lib |
Hans-G?nter@23217 | 64 cp -a $install/usr/share/ppd $fs/usr/share |
Hans-G?nter@23217 | 65 cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@23217 | 66 rm -fr $fs/etc/rc*.d |
Hans-G?nter@23217 | 67 rm -fr $fs/usr/share/cups/ppdc |
mojo@17841 | 68 } |