1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Convert to new options framework

- Cleanup Makefile header
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-10-09 13:59:41 +00:00
parent 179cc197de
commit a3676c95e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305586

View File

@ -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}/