aboutsummaryrefslogtreecommitdiffstats
path: root/print/pdf-renderer
diff options
context:
space:
mode:
Diffstat (limited to 'print/pdf-renderer')
-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"