1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/databases/couchdb/Makefile
Jimmy Olgeni 76c7f8fbe6 Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. Categories D-F.

CR:		D196
Approved by:	portmgr (bapt)
2014-06-10 07:39:01 +00:00

84 lines
2.7 KiB
Makefile

# Created by: Ditesh Shashikant Gathani <ditesh@gathani.org>
# $FreeBSD$
PORTNAME= couchdb
PORTVERSION= 1.5.0
PORTEPOCH= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= couchdb/source/${PORTVERSION}
DISTNAME= apache-couchdb-${PORTVERSION}
MAINTAINER= adams-ports@ateamsystems.com
COMMENT= Document database server, accessible via a RESTful JSON API
LIB_DEPENDS= libicudata.so:${PORTSDIR}/devel/icu \
libmozjs185.so:${PORTSDIR}/lang/spidermonkey185 \
libcurl.so:${PORTSDIR}/ftp/curl
BUILD_DEPENDS= ${LOCALBASE}/bin/help2man:${PORTSDIR}/misc/help2man \
erlang>=15.b.01,2:${PORTSDIR}/lang/erlang
RUN_DEPENDS= erlang>=15.b.01,2:${PORTSDIR}/lang/erlang
USERS= couchdb
GROUPS= couchdb
USE_RC_SUBR= couchdb
SUB_FILES= pkg-message
USES= gmake
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
CONFIGURE_ARGS= --with-erlang=${LOCALBASE}/lib/erlang/usr/include \
--localstatedir=/var \
--disable-init \
--with-js-include=${LOCALBASE}/include/js \
--with-js-lib=${LOCALBASE}/lib
# Override default value of ${STRIP} because the underlying Makefile
# erroneously tries to install a shell script with ${STRIP}, causing
# an install error.
STRIP= #empty
INFO= CouchDB
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
# This stanza could be removed around version 1.7
pre-everything::
@if [ -f ${PREFIX}/etc/couchdb/local.ini -a \
! -f ${PREFIX}/etc/couchdb/local.ini.sample ] && \
${PKG_INFO} -qX '${PKGBASE}-[01].[^2-6][0-9]*(\.[0-9a-z]*)*(,1)?'; \
then ${ECHO_MSG} Please see UPDATING note 20120702 to avoid loss of your local.ini ; \
exit 2 ; \
fi
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "If you are upgrading CouchDB, please double-check that the datafile is"
@${ECHO_MSG} "compatible and that you have BACKED UP YOUR DB directory before proceeding!"
@${ECHO_MSG} ""
@${ECHO_MSG} "Upgrading also might require you to rebuild your views entirely."
@${ECHO_MSG} ""
post-patch:
# DB files are stored by default in /var/db/couchdb
# Ports framework expects info pages to have an info extension
@${REINPLACE_CMD} '/localstatelibdir=/s|/lib/|/db/|' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's|\(info_file_inst = CouchDB\)$$|\1.info|' \
${WRKSRC}/share/doc/build/Makefile.in
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's/install-data-am$$//' ${WRKSRC}/Makefile.in
.endif
post-configure:
# Cater for parallel Spidermonkey v1.7 and v1.8.5 installs by ensuring that
# jsapi.h gets pulled from /usr/local/include/js/ instead of /usr/local/include
@${FIND} ${WRKSRC} -name Makefile|${XARGS} ${REINPLACE_CMD} -e 's|include -I/usr/local/include/js|include/js -I/usr/local/include|'
post-install:
@${CP} -p ${WRKSRC}/etc/couchdb/local.ini ${STAGEDIR}${PREFIX}/etc/couchdb/local.ini.sample
.include <bsd.port.mk>