Import qpdf-3.0.1.

QPDF is a command-line program that does structural, content-preserving
transformations on PDF files. It could have been called something like
pdf-to-pdf. It also provides many useful capabilities to developers of
PDF-producing software or for people who just want to look at the
innards of a PDF file to learn more about how they work.

This will be needed by an update to cups-filters which I am working on.
ok jasper@
This commit is contained in:
ajacoutot 2012-08-24 07:38:57 +00:00
parent 4542265699
commit d8526bfa23
7 changed files with 112 additions and 0 deletions

36
print/qpdf/Makefile Executable file
View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/24 07:38:57 ajacoutot Exp $
COMMENT= PDF transformation and inspection utility
DISTNAME= qpdf-3.0.1
SHARED_LIBS += qpdf 0.0 # 8.2
CATEGORIES= print graphics
HOMEPAGE= http://qpdf.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# Artistic License 2.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c m pcre stdc++ z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qpdf/}
VMEM_WARNING= Yes
USE_LIBTOOL= Yes
USE_GMAKE= Yes
LIB_DEPENDS= devel/pcre
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
.include <bsd.port.mk>

2
print/qpdf/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (qpdf-3.0.1.tar.gz) = 22XW9PBGLUeTBJr7ft+ayThvuL21HRC1uIoAThzDa8Y=
SIZE (qpdf-3.0.1.tar.gz) = 4841926

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-configure,v 1.1.1.1 2012/08/24 07:38:57 ajacoutot Exp $
--- configure.orig Sat Aug 11 19:41:38 2012
+++ configure Thu Aug 23 20:27:47 2012
@@ -15399,8 +15399,8 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnu make >= 3.81" >&5
$as_echo_n "checking for gnu make >= 3.81... " >&6; }
make_okay=0
-if make --version >/dev/null 2>&1; then
- v=`make --version | grep 'GNU Make' | sed -e 's/.*Make //'`
+if gmake --version >/dev/null 2>&1; then
+ v=`gmake --version | grep 'GNU Make' | sed -e 's/.*Make //'`
maj=`echo $v | cut -d. -f 1`
min=`echo $v | cut -d. -f 2`
if test $maj -gt 3 -o '(' $maj -eq 3 -a $min -ge 81 ')'; then

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-make_libtool_mk,v 1.1.1.1 2012/08/24 07:38:57 ajacoutot Exp $
--- make/libtool.mk.orig Thu Aug 23 20:41:43 2012
+++ make/libtool.mk Thu Aug 23 20:41:58 2012
@@ -1,7 +1,7 @@
# --- Required interface definitions ---
# LIBTOOL needs bash
-SHELL=/bin/bash
+#SHELL=/bin/bash
OBJ=o
LOBJ=lo

5
print/qpdf/pkg/DESCR Executable file
View File

@ -0,0 +1,5 @@
QPDF is a command-line program that does structural, content-preserving
transformations on PDF files. It could have been called something like
pdf-to-pdf. It also provides many useful capabilities to developers of
PDF-producing software or for people who just want to look at the
innards of a PDF file to learn more about how they work.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2012/08/24 07:38:57 ajacoutot Exp $
@lib lib/libqpdf.so.${LIBqpdf_VERSION}

41
print/qpdf/pkg/PLIST Normal file
View File

@ -0,0 +1,41 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/08/24 07:38:57 ajacoutot Exp $
%%SHARED%%
bin/fix-qdf
@bin bin/qpdf
@bin bin/zlib-flate
include/qpdf/
include/qpdf/Buffer.hh
include/qpdf/BufferInputSource.hh
include/qpdf/Constants.h
include/qpdf/DLL.h
include/qpdf/FileInputSource.hh
include/qpdf/InputSource.hh
include/qpdf/Pipeline.hh
include/qpdf/Pl_Buffer.hh
include/qpdf/Pl_Concatenate.hh
include/qpdf/Pl_Count.hh
include/qpdf/Pl_Discard.hh
include/qpdf/Pl_Flate.hh
include/qpdf/Pl_StdioFile.hh
include/qpdf/PointerHolder.hh
include/qpdf/QPDF.hh
include/qpdf/QPDFExc.hh
include/qpdf/QPDFObject.hh
include/qpdf/QPDFObjectHandle.hh
include/qpdf/QPDFTokenizer.hh
include/qpdf/QPDFWriter.hh
include/qpdf/QPDFXRefEntry.hh
include/qpdf/QTC.hh
include/qpdf/QUtil.hh
include/qpdf/Types.h
include/qpdf/qpdf-c.h
lib/libqpdf.a
lib/pkgconfig/
lib/pkgconfig/libqpdf.pc
@man man/man1/fix-qdf.1
@man man/man1/qpdf.1
@man man/man1/zlib-flate.1
share/doc/qpdf/
share/doc/qpdf/qpdf-manual.html
share/doc/qpdf/qpdf-manual.pdf
share/doc/qpdf/stylesheet.css