aboutsummaryrefslogtreecommitdiffstats
path: root/databases/kyotocabinet
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-10-09 21:59:41 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-10-09 21:59:41 +0800
commite90d1d5b306e7c9ef416f99730a9ecdb6233efdb (patch)
tree8ed1d1e29e45f74c2012df6390d66c88f1d757e5 /databases/kyotocabinet
parent7f7e4544e99d4b72d5dae4cce1ee567e21d9e531 (diff)
downloadfreebsd-ports-gnome-e90d1d5b306e7c9ef416f99730a9ecdb6233efdb.tar.gz
freebsd-ports-gnome-e90d1d5b306e7c9ef416f99730a9ecdb6233efdb.tar.zst
freebsd-ports-gnome-e90d1d5b306e7c9ef416f99730a9ecdb6233efdb.zip
- Convert to new options framework
- Cleanup Makefile header
Diffstat (limited to 'databases/kyotocabinet')
-rw-r--r--databases/kyotocabinet/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile
index fe249a3fa98e..d07b7e9dbb0a 100644
--- a/databases/kyotocabinet/Makefile
+++ b/databases/kyotocabinet/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kyotocabinet
-# Date created: 22 April 2010
-# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
-#
+# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
-#
PORTNAME= kyotocabinet
PORTVERSION= 1.2.76
@@ -16,6 +12,8 @@ COMMENT= A straightforward implementation of DBM
LICENSE= GPLv3
+OPTIONS_DEFINE= DOCS
+
GNU_CONFIGURE= yes
MAKE_ARGS= PCDIR="${PREFIX}/libdata/pkgconfig"
MAKE_JOBS_SAFE= yes
@@ -56,12 +54,12 @@ BROKEN= Does not link on powerpc
.endif
post-patch:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${FIND} ${DOCSDIR}/ -type d -exec ${CHMOD} 755 '{}' \;
${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} 444 '{}' \;
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/