alternative from mk/jpeg.buildlink3.mk This allows selection of an alternative jpeg library (namely the x86 MMX, SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and follows the current standard model for alternatives (fam, motif, fuse etc). The mechanical edits were applied via the following script: #!/bin/sh for d in */*; do [ -d "$d" ] || continue for i in "$d/"Makefile* "$d/"*.mk; do case "$i" in *.orig|*"*"*) continue;; esac out="$d/x" sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \ -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \ < "$i" > "$out" if cmp -s "$i" "$out"; then rm -f "$out" else echo "Edited $i" mv -f "$i" "$i.orig" && mv "$out" "$i" fi done done
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.52 2010/12/23 11:44:55 dsainty Exp $
|
|
#
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
COMMENT= PDF rendering library
|
|
MAINTAINER= reed@reedmedia.net
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
#PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cairo.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-splash.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler.pc.in
|
|
GNU_CONFIGURE= yes
|
|
|
|
INSTALLATION_DIRS+= include/poppler share/doc/poppler
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
# TODO: Later add an option to choose Splash versus Cairo backend.
|
|
# Build the Splash graphics backend.
|
|
CONFIGURE_ARGS+= --enable-splash-output
|
|
# Don't build the cairo graphics backend.
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
|
# Don't compile poppler qt wrapper.
|
|
CONFIGURE_ARGS+= --disable-poppler-qt
|
|
# Don't compile GTK+ test program.
|
|
CONFIGURE_ARGS+= --disable-gtk-test
|
|
# Don't compile GLib wrapper which also needs gtk2
|
|
CONFIGURE_ARGS+= --disable-poppler-glib
|
|
# Don't build and install the tools
|
|
CONFIGURE_ARGS+= --disable-utils
|
|
CONFIGURE_ARGS+= --disable-poppler-cpp
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.poppler
|
|
PKG_SUPPORTED_OPTIONS= poppler-cms
|
|
PKG_SUGGESTED_OPTIONS= poppler-cms
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mpoppler-cms)
|
|
CONFIGURE_ARGS+= --enable-cms
|
|
.include "../../graphics/lcms/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-cms
|
|
.endif
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
${INSTALL_MAN} ${WRKSRC}/README-XPDF ${DESTDIR}${PREFIX}/share/doc/poppler/
|
|
${RMDIR} ${DESTDIR}${PREFIX}/include/poppler || ${TRUE}
|
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|