2010-10-18 13:06:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2010/10/18 17:06:06 espie Exp $
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
COMMENT = distributed, document-oriented database
|
|
|
|
|
2010-09-13 13:31:02 -04:00
|
|
|
COUCH_VER = 0.11.0
|
2009-03-16 18:05:59 -04:00
|
|
|
DISTNAME = apache-couchdb-${COUCH_VER}
|
|
|
|
CATEGORIES = databases
|
|
|
|
|
2009-11-02 13:51:27 -05:00
|
|
|
HOMEPAGE = http://couchdb.apache.org/
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
MAINTAINER = Benoit Chesneau <benoitc@metavers.net>
|
|
|
|
|
|
|
|
# Apache 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2010-09-13 13:31:02 -04:00
|
|
|
WANTLIB += c crypto iconv intl pthread ssl z
|
|
|
|
WANTLIB += icudata icui18n icuuc js curl idn
|
2009-03-16 18:05:59 -04:00
|
|
|
|
2009-04-04 06:12:39 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_APACHE:=couchdb/${COUCH_VER}/}
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS = ::lang/erlang
|
|
|
|
RUN_DEPENDS = ::lang/erlang
|
2010-09-13 13:31:02 -04:00
|
|
|
LIB_DEPENDS = ::textproc/icu4c \
|
|
|
|
::lang/spidermonkey \
|
|
|
|
::net/curl \
|
|
|
|
::devel/libidn
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
MAKE_FLAGS = LDFLAGS="-L${LOCALBASE}/lib -pthread" \
|
|
|
|
CFLAGS="-I${LOCALBASE}/include/nspr" \
|
|
|
|
localstatelibdir="/var/couchdb" \
|
|
|
|
default_sysconf_data=""
|
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
USE_LIBTOOL = Yes
|
2010-10-18 13:06:05 -04:00
|
|
|
USE_GROFF = Yes
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-erlang=${LOCALBASE}/lib/erlang/usr/include \
|
2009-04-06 10:43:18 -04:00
|
|
|
--with-js-include=${LOCALBASE}/include/js \
|
|
|
|
--with-js-lib=${LOCALBASE}/lib
|
2009-08-17 10:45:13 -04:00
|
|
|
# The 'erl -version' test in configure needs HOME to be set.
|
|
|
|
CONFIGURE_ENV = HOME=${PORTHOME}
|
2009-03-16 18:05:59 -04:00
|
|
|
|
2009-11-02 13:51:27 -05:00
|
|
|
REGRESS_TARGET = check
|
2009-08-17 10:45:13 -04:00
|
|
|
PORTHOME = ${WRKDIR}
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
SUBST_VARS += COUCH_VER
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/couchdb
|
2009-04-04 06:12:39 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/etc/couchdb/default.ini \
|
2009-11-02 13:51:27 -05:00
|
|
|
${PREFIX}/share/examples/couchdb
|
2009-04-04 06:12:39 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/etc/couchdb/local.ini \
|
2009-11-02 13:51:27 -05:00
|
|
|
${PREFIX}/share/examples/couchdb
|
2009-03-16 18:05:59 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|