summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2018-02-03 14:43:41 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2018-02-03 14:43:41 +0000
commit74f6c2ab05561aff0fcdc0e48b38c65d58e63ab3 (patch)
tree6eb81fb03a145b83f501c155ec286b7f2ae99aa1
parentmultimedia/plexmediaserver-plexpass: Update to 1.11.1.4760 (diff)
Update to 0.7.0.
Add a DOCS option to conditionally install some documentation.
-rw-r--r--graphics/pngwriter/Makefile15
-rw-r--r--graphics/pngwriter/distinfo6
-rw-r--r--graphics/pngwriter/pkg-plist6
3 files changed, 20 insertions, 7 deletions
diff --git a/graphics/pngwriter/Makefile b/graphics/pngwriter/Makefile
index c7c633532b00..39cb92660279 100644
--- a/graphics/pngwriter/Makefile
+++ b/graphics/pngwriter/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pngwriter
-PORTVERSION= 0.6.0
+PORTVERSION= 0.7.0
CATEGORIES= graphics devel
MAINTAINER= rakuco@FreeBSD.org
@@ -18,12 +18,19 @@ BROKEN_mips= fails to build: ios_base.h: 'std::ios_base::ios_base(const std::io
BROKEN_mips64= fails to build: ios_base.h: 'std::ios_base::ios_base(const std::ios_base&)' is private
BROKEN_powerpc64= fails to build: ios_base.h: 'std::ios_base::ios_base(const std::ios_base&)' is private
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= CHANGES EXAMPLES README PNGwriterQuickReference.pdf
+
USES= cmake:outsource
+CMAKE_ON= BUILD_SHARED_LIBS PNGwriter_USE_FREETYPE
USE_GITHUB= yes
USE_LDCONFIG= yes
-PLIST_FILES= include/pngwriter.h \
- lib/libpngwriter.a \
- lib/libpngwriter.so
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${doc} ${STAGEDIR}${DOCSDIR}
+.endfor
.include <bsd.port.mk>
diff --git a/graphics/pngwriter/distinfo b/graphics/pngwriter/distinfo
index afd0b718d366..049fca100e8b 100644
--- a/graphics/pngwriter/distinfo
+++ b/graphics/pngwriter/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1494082079
-SHA256 (pngwriter-pngwriter-0.6.0_GH0.tar.gz) = 5107c6be0bfadf76ba4d01a553f7e060b5a7763ca7d9374ef3e7e59746b3911e
-SIZE (pngwriter-pngwriter-0.6.0_GH0.tar.gz) = 571576
+TIMESTAMP = 1517567846
+SHA256 (pngwriter-pngwriter-0.7.0_GH0.tar.gz) = 82d46eef109f434f95eba9cf5908710ae4e75f575fd3858178ad06e800152825
+SIZE (pngwriter-pngwriter-0.7.0_GH0.tar.gz) = 570525
diff --git a/graphics/pngwriter/pkg-plist b/graphics/pngwriter/pkg-plist
new file mode 100644
index 000000000000..a9a2c5053b61
--- /dev/null
+++ b/graphics/pngwriter/pkg-plist
@@ -0,0 +1,6 @@
+include/pngwriter.h
+lib/cmake/PNGwriter/PNGwriterConfig.cmake
+lib/cmake/PNGwriter/PNGwriterConfigVersion.cmake
+lib/cmake/PNGwriter/PNGwriterTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/PNGwriter/PNGwriterTargets.cmake
+lib/libPNGwriter.so