diff options
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/libpdf++/Makefile | 40 | ||||
-rw-r--r-- | print/libpdf++/distinfo | 1 | ||||
-rw-r--r-- | print/libpdf++/files/patch-ltmain.sh | 15 | ||||
-rw-r--r-- | print/libpdf++/files/patch-src:graph:image:Header.cc | 10 | ||||
-rw-r--r-- | print/libpdf++/files/patch-src:graph:image:Makefile.am | 15 | ||||
-rw-r--r-- | print/libpdf++/files/patch-src:text:Error.cc | 10 | ||||
-rw-r--r-- | print/libpdf++/files/patch-src:util:Error.cc | 18 | ||||
-rw-r--r-- | print/libpdf++/pkg-descr | 4 | ||||
-rw-r--r-- | print/libpdf++/pkg-plist | 68 |
10 files changed, 182 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index a14bfa1fdf28..fdbdf05213e5 100644 --- a/print/Makefile +++ b/print/Makefile @@ -96,6 +96,7 @@ SUBDIR += libgnomeprint20 SUBDIR += libijs SUBDIR += libpaper + SUBDIR += libpdf++ SUBDIR += lilypond SUBDIR += lilypond-devel SUBDIR += lout diff --git a/print/libpdf++/Makefile b/print/libpdf++/Makefile new file mode 100644 index 000000000000..2b4467dc03ea --- /dev/null +++ b/print/libpdf++/Makefile @@ -0,0 +1,40 @@ +# ex:ts=8 +# Ports collection makefile for: libpdf++ +# Date created: Jan 29, 2003 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= libpdf++ +PORTVERSION= 0.0.3 +CATEGORIES= print +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ + http://libpdfxx.sourceforge.net/ +MASTER_SITE_SUBDIR= libpdfxx +DISTNAME= libpdfdoc-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org +COMMENT= A C++ library to generate PDF files + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/any.hpp:${PORTSDIR}/devel/boost +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ + jpeg.9:${PORTSDIR}/graphics/jpeg +RUN_DEPENDS= ${LOCALBASE}/include/boost/any.hpp:${PORTSDIR}/devel/boost + +USE_AUTOMAKE= yes +CONFIGURE_ARGS= --with-boost=${LOCALBASE}/include +USE_GMAKE= yes +INSTALLS_SHLIB= yes + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500035 +USE_GCC= 3.1 +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +.else +CONFIGURE_ENV+= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +.endif + +.include <bsd.port.post.mk> diff --git a/print/libpdf++/distinfo b/print/libpdf++/distinfo new file mode 100644 index 000000000000..75d9da33e03a --- /dev/null +++ b/print/libpdf++/distinfo @@ -0,0 +1 @@ +MD5 (libpdfdoc-0.0.3.tar.gz) = bcbfbf0a1a6e1fa0be04ddef87631c05 diff --git a/print/libpdf++/files/patch-ltmain.sh b/print/libpdf++/files/patch-ltmain.sh new file mode 100644 index 000000000000..e9093d939311 --- /dev/null +++ b/print/libpdf++/files/patch-ltmain.sh @@ -0,0 +1,15 @@ +--- ltmain.sh.orig Mon Dec 1 11:11:30 2003 ++++ ltmain.sh Mon Dec 1 11:11:41 2003 +@@ -4325,10 +4325,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false ; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/print/libpdf++/files/patch-src:graph:image:Header.cc b/print/libpdf++/files/patch-src:graph:image:Header.cc new file mode 100644 index 000000000000..a51c2b97bf0f --- /dev/null +++ b/print/libpdf++/files/patch-src:graph:image:Header.cc @@ -0,0 +1,10 @@ +--- src/graph/image/Header.cc.orig Mon Dec 1 10:55:09 2003 ++++ src/graph/image/Header.cc Mon Dec 1 10:55:17 2003 +@@ -23,6 +23,7 @@ + \author Nestal Wan + */ + ++#include <cassert> + #include "Header.hh" + + namespace image { diff --git a/print/libpdf++/files/patch-src:graph:image:Makefile.am b/print/libpdf++/files/patch-src:graph:image:Makefile.am new file mode 100644 index 000000000000..ca80db4d9fd0 --- /dev/null +++ b/print/libpdf++/files/patch-src:graph:image:Makefile.am @@ -0,0 +1,15 @@ +--- src/graph/image/Makefile.am.orig Mon Dec 1 11:00:20 2003 ++++ src/graph/image/Makefile.am Mon Dec 1 11:00:30 2003 +@@ -8,8 +8,8 @@ + libimage_la_SOURCES = Image.hh Image.cc ColourSpace.hh ColourSpace.cc \ + JpegEncoder.hh JpegEncoder.cc Header.hh Header.cc + +-noinst_PROGRAMS = testjpeg ++#noinst_PROGRAMS = testjpeg + +-testjpeg_SOURCES = testjpeg.cc +-testjpeg_LDFLAGS = @MAGICK_LDFLAGS@ +-testjpeg_LDADD = -lstdc++ -ljpeg libimage.la @MAGICK_LDADD@ ++#testjpeg_SOURCES = testjpeg.cc ++#testjpeg_LDFLAGS = @MAGICK_LDFLAGS@ ++#testjpeg_LDADD = -lstdc++ -ljpeg libimage.la @MAGICK_LDADD@ diff --git a/print/libpdf++/files/patch-src:text:Error.cc b/print/libpdf++/files/patch-src:text:Error.cc new file mode 100644 index 000000000000..2771b97d948f --- /dev/null +++ b/print/libpdf++/files/patch-src:text:Error.cc @@ -0,0 +1,10 @@ +--- src/text/Error.cc.orig Mon Dec 1 10:52:22 2003 ++++ src/text/Error.cc Mon Dec 1 10:52:31 2003 +@@ -23,6 +23,7 @@ + \author Nestal Wan + */ + ++#include <cassert> + #include "Error.hh" + + namespace pdf { namespace text { diff --git a/print/libpdf++/files/patch-src:util:Error.cc b/print/libpdf++/files/patch-src:util:Error.cc new file mode 100644 index 000000000000..df7f530c789d --- /dev/null +++ b/print/libpdf++/files/patch-src:util:Error.cc @@ -0,0 +1,18 @@ +--- src/util/Error.cc.orig Wed Jan 29 14:00:24 2003 ++++ src/util/Error.cc Wed Jan 29 14:14:15 2003 +@@ -51,12 +51,12 @@ + { + const int msg_size = 4096 ; + char err_msg[msg_size] ; +- char *result = strerror_r( error_number, err_msg, msg_size ) ; ++ int result = strerror_r( error_number, err_msg, msg_size ) ; + +- if ( result == 0 ) ++ if ( result != 0 ) + return "unknown error" ; + else +- return result ; ++ return err_msg ; + } + + const char* CFileError::what( ) const throw( ) diff --git a/print/libpdf++/pkg-descr b/print/libpdf++/pkg-descr new file mode 100644 index 000000000000..5e618cd0011a --- /dev/null +++ b/print/libpdf++/pkg-descr @@ -0,0 +1,4 @@ +libpdf++ is a C++ library to generate PDF files. It is for programs like word +processor to write PDF export filters. + +WWW: http://libpdfxx.sourceforge.net/ diff --git a/print/libpdf++/pkg-plist b/print/libpdf++/pkg-plist new file mode 100644 index 000000000000..a962c9fe3178 --- /dev/null +++ b/print/libpdf++/pkg-plist @@ -0,0 +1,68 @@ +include/Doc.hh +include/DocInfo.hh +include/Error.hh +include/Position.hh +include/State.hh +include/Text.hh +include/common/FlateStream.hh +include/common/Rect.hh +include/common/Resource.hh +include/core/Array.hh +include/core/Dictionary.hh +include/core/File.hh +include/core/Object.hh +include/core/ProxyObj.hh +include/core/Stream.hh +include/core/Type.hh +include/font/Descriptor.hh +include/font/Error.hh +include/font/Flags.hh +include/font/Font.hh +include/font/ProgStream.hh +include/font/Simple.hh +include/font/Standard.hh +include/font/TrueType.hh +include/font/ftwrap/Error.hh +include/font/ftwrap/Face.hh +include/font/ftwrap/FaceBody.hh +include/font/ftwrap/Glyph.hh +include/font/ftwrap/Library.hh +include/font/ftwrap/LibraryBody.hh +include/font/ftwrap/Types.hh +include/image/ColourSpace.hh +include/image/Header.hh +include/image/Image.hh +include/image/JpegEncoder.hh +include/page/Info.hh +include/page/NodeBase.hh +include/page/Page.hh +include/page/ResDict.hh +include/page/TreeNode.hh +include/page/XObjInst.hh +include/text/Error.hh +include/text/Position.hh +include/text/State.hh +include/text/Text.hh +include/util/Colour.hh +include/util/Dash.hh +include/util/Error.hh +include/util/Flate.hh +include/util/Image.hh +include/util/ImgBase.hh +include/util/JpegImage.hh +include/util/Matrix2D.hh +include/util/Node.hh +include/util/Path.hh +include/util/State.hh +include/util/XObject.hh +@dirrm include/common +@dirrm include/core +@dirrm include/font/ftwrap +@dirrm include/font +@dirrm include/image +@dirrm include/page +@dirrm include/text +@dirrm include/util +lib/libpdfdoc.a +lib/libpdfdoc.so +lib/libpdfdoc.so.0 |