aboutsummaryrefslogtreecommitdiffstats
path: root/databases/kyototycoon/Makefile
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-10-09 22:00:34 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-10-09 22:00:34 +0800
commit8c011b85451f9bb53da56fdcefa7eac0c376dfb4 (patch)
tree0c45edee075b647e9278d6ae3b0e0e1e3deb1b7a /databases/kyototycoon/Makefile
parente90d1d5b306e7c9ef416f99730a9ecdb6233efdb (diff)
downloadfreebsd-ports-gnome-8c011b85451f9bb53da56fdcefa7eac0c376dfb4.tar.gz
freebsd-ports-gnome-8c011b85451f9bb53da56fdcefa7eac0c376dfb4.tar.zst
freebsd-ports-gnome-8c011b85451f9bb53da56fdcefa7eac0c376dfb4.zip
- Add LICENSE
- Convert to new options framework - Cleanup Makefile header
Diffstat (limited to 'databases/kyototycoon/Makefile')
-rw-r--r--databases/kyototycoon/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/databases/kyototycoon/Makefile b/databases/kyototycoon/Makefile
index e123d267d2c6..44017fcef26d 100644
--- a/databases/kyototycoon/Makefile
+++ b/databases/kyototycoon/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kyototycoon
-# Date created: 2011-10-04
-# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
-#
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= kyototycoon
PORTVERSION= 0.9.56
@@ -14,8 +10,12 @@ MASTER_SITES= http://fallabs.com/${PORTNAME}/pkg/ \
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= A handy cache/storage server
+LICENSE= GPLv3
+
LIB_DEPENDS= kyotocabinet:${PORTSDIR}/databases/kyotocabinet
+OPTIONS_DEFINE= DOCS
+
CONFIGURE_ARGS= --enable-profile --enable-uyield
GNU_CONFIGURE= yes
MAKE_ARGS= PCDIR="${PREFIX}/libdata/pkgconfig"
@@ -32,8 +32,10 @@ MAN1= ktremotemgr.1 \
ktutilserv.1 \
ktutiltest.1
+.include <bsd.port.options.mk>
+
post-patch:
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif
@@ -41,7 +43,7 @@ post-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile
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}/