aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ampasCTL/Makefile
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2017-02-10 11:49:47 +0800
committervanilla <vanilla@FreeBSD.org>2017-02-10 11:49:47 +0800
commit17a105c2975ffe17017bb06e89e83990ef7d9af3 (patch)
tree96aedc56a13297417975355034af0d1572aa1204 /graphics/ampasCTL/Makefile
parent9bb5a2b7ec58a65ac3d542babbe001fd17fdaef3 (diff)
downloadfreebsd-ports-gnome-17a105c2975ffe17017bb06e89e83990ef7d9af3.tar.gz
freebsd-ports-gnome-17a105c2975ffe17017bb06e89e83990ef7d9af3.tar.zst
freebsd-ports-gnome-17a105c2975ffe17017bb06e89e83990ef7d9af3.zip
1: Correct package version to 1.5.2, previous version use 1.5.2's git hash tag already.
2: modernize.
Diffstat (limited to 'graphics/ampasCTL/Makefile')
-rw-r--r--graphics/ampasCTL/Makefile19
1 files changed, 5 insertions, 14 deletions
diff --git a/graphics/ampasCTL/Makefile b/graphics/ampasCTL/Makefile
index bbc08b5da71b..ae4db25e8b8f 100644
--- a/graphics/ampasCTL/Makefile
+++ b/graphics/ampasCTL/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= ampasCTL
-PORTVERSION= 1.5
-PORTREVISION= 5
+PORTVERSION= 1.5.2
CATEGORIES= graphics devel
MAINTAINER= ports@FreeBSD.org
@@ -24,32 +23,24 @@ GH_ACCOUNT= ampas
GH_PROJECT= CTL
GH_TAGNAME= 57b48a2
-USES= cmake pkgconfig
+USES= cmake pathfix pkgconfig
USE_LDCONFIG= yes
-PORTDOCS= *
+OPTIONS_DEFINE= DOCS
+PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS CHANGELOG README.md
-
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= CtlManual.pdf CtlManual.doc
-OPTIONS_DEFINE= DOCS
-
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|lib/CMake|lib/cmake|' \
-e 's|add_subdirectory(doc)||' \
- -e 's|lib/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
- @${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|' \
- ${WRKSRC}/OpenEXR_CTL/CMakeLists.txt
-
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}