rendered paste bodyPACKAGES+=" ghostscript"
hset ghostscript url "http://downloads.ghostscript.com/public/ghostscript-9.04.tar.gz"
hset ghostscript depends "cups libjpeg libpng libtiff libexpat lcms zlib libfontconfig"
configure-ghostscript-local() {
if [ -f ./lcms2/include/icc34.h ];then
cp ./lcms2/include/icc34.h base/
fi
rm -rf expat jasper lcms jpeg libpng tiff zlib freetype lcms2
export LDFLAGS="$LDFLAGS_RLINK"
configure-generic-local \
--with-system-libtiff \
--without-jbig2dec \
--without-jasper \
--with-install-cups \
--disable-compile-inits CCAUX=gcc
sed -i -e 's|SHARE_LCMS2=0|SHARE_LCMS2=1|' \
-e "s|LCMS2SRCDIR=.*$|LCMS2SRCDIR=$BUILD/lcms|" \
-e 's|=imdi|&\n\n# Use system expat library\n\nSHARE_EXPAT=1|' \
-e 's|SHARE_FT=0|SHARE_FT=1|' \
-e 's|SHARE_LIBTIFF=$|SHARE_LIBTIFF=1|' \
-e 's|CCAUX=.*$|CCAUX=gcc|' \
-e 's|WHICH_CMS=lcms$|WHICH_CMS=lcms2|' \
-e 's|SHARE_LCMS=0|SHARE_LCMS=1|' \
-e "s|CUPSSERVERBIN=$STAGING|CUPSSERVERBIN=|" \
-e "s|CUPSDATA=$STAGING|CUPSDATA=|" \
-e "s|CUPSSERVERROOT=$STAGING_USR|CUPSSERVERROOT=|" \
Makefile
LDFLAGS="$LDFLAGS_BASE"
mkdir -p obj/aux
}