summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2015-10-16 18:13:28 +0000
committerSteve Wills <swills@FreeBSD.org>2015-10-16 18:13:28 +0000
commit8cfa3d782c6a33c8af1d4bd7fd0c2f14ebcf4d8e (patch)
treee41f1d3815bd5ee04b5c61ed46e9b1df6fade06f /print
parentx11-themes/cursor-dmz-theme: Upgrade version 0.3 => 0.4.4 (diff)
print/pdf-renderer: fix build with openjdk8
PR: 203123 Approved by: maintainer timeout (ale, >2 weeks)
Notes
Notes: svn path=/head/; revision=399495
Diffstat (limited to 'print')
-rw-r--r--print/pdf-renderer/Makefile11
-rw-r--r--print/pdf-renderer/files/extra-patch-swinglabs-build-impl.xml11
2 files changed, 20 insertions, 2 deletions
diff --git a/print/pdf-renderer/Makefile b/print/pdf-renderer/Makefile
index 08805ee9b0b8..eb5e43fa1d4a 100644
--- a/print/pdf-renderer/Makefile
+++ b/print/pdf-renderer/Makefile
@@ -13,7 +13,7 @@ COMMENT= 100% Java PDF renderer and viewer
LICENSE= LGPL21
-USES= zip
+USES= dos2unix zip
NO_WRKSUBDIR= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
@@ -26,6 +26,7 @@ PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
OPTIONS_DEFINE= DOCS
+DOS2UNIX_FILES= swinglabs-build-impl.xml
.include <bsd.port.options.mk>
@@ -33,6 +34,12 @@ OPTIONS_DEFINE= DOCS
ALL_TARGET+= javadoc
.endif
+.include <bsd.port.pre.mk>
+
+.if ${JAVA_PORT_VERSION:M1.8.*}
+EXTRA_PATCHES= ${PATCHDIR}/extra-patch-swinglabs-build-impl.xml
+.endif
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
@${INSTALL_DATA} ${WRKSRC}/dist/PDFRenderer.jar \
@@ -46,4 +53,4 @@ do-install:
@${ECHO_MSG} " [DONE]"
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/print/pdf-renderer/files/extra-patch-swinglabs-build-impl.xml b/print/pdf-renderer/files/extra-patch-swinglabs-build-impl.xml
new file mode 100644
index 000000000000..8e69d7dcaaff
--- /dev/null
+++ b/print/pdf-renderer/files/extra-patch-swinglabs-build-impl.xml
@@ -0,0 +1,11 @@
+--- swinglabs-build-impl.xml.orig 2011-09-15 11:34:02 UTC
++++ swinglabs-build-impl.xml
+@@ -211,7 +211,7 @@ ${build.branch} ${RELEASE_DSTAMP_LONG} $
+ version="${javadoc.version}"
+ windowtitle="${javadoc.windowtitle}"
+ private="${javadoc.private}"
+- additionalparam="${javadoc.additionalparam}"
++ additionalparam="${javadoc.additionalparam} -Xdoclint:none"
+ failonerror="true" useexternalfile="false"
+ verbose="${javadoc.verbose}"
+ maxmemory="1024M"