aboutsummaryrefslogtreecommitdiff
path: root/databases/kyototycoon
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-10-09 14:00:34 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-10-09 14:00:34 +0000
commitd60a03316179c301a11e2025cab2725ce599e646 (patch)
tree0c45edee075b647e9278d6ae3b0e0e1e3deb1b7a /databases/kyototycoon
parenta3676c95e9a250ecafc22323330190e2b28dbb1b (diff)
downloadports-d60a03316179c301a11e2025cab2725ce599e646.tar.gz
ports-d60a03316179c301a11e2025cab2725ce599e646.zip
- Add LICENSE
- Convert to new options framework - Cleanup Makefile header
Notes
Notes: svn path=/head/; revision=305587
Diffstat (limited to 'databases/kyototycoon')
-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}/