2012-12-19 00:09:07 +01:00
|
|
|
# Created by: Willem van Engen <wvengen@stack.nl>
|
2001-12-11 10:36:33 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
PORTNAME= sword
|
2010-10-29 01:52:47 +02:00
|
|
|
PORTVERSION= 1.6.2
|
2013-07-11 18:26:26 +02:00
|
|
|
PORTREVISION= 4
|
2001-12-11 10:36:33 +01:00
|
|
|
CATEGORIES= misc
|
2013-09-10 05:50:32 +02:00
|
|
|
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v${PORTVERSION:R}/ \
|
|
|
|
http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/ \
|
|
|
|
LOCAL/tabthorpe
|
2006-07-13 03:50:57 +02:00
|
|
|
|
2007-08-23 06:00:04 +02:00
|
|
|
MAINTAINER= tabthorpe@FreeBSD.org
|
2013-09-10 05:50:32 +02:00
|
|
|
COMMENT= Framework for manipulating Bible texts
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2010-10-29 01:52:47 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 04:56:09 +01:00
|
|
|
CONFLICTS= sword-1.7.*
|
|
|
|
|
2010-01-07 18:46:18 +01:00
|
|
|
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
|
2009-06-02 19:06:41 +02:00
|
|
|
|
2013-09-10 05:50:32 +02:00
|
|
|
USES= gmake pkgconfig
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= automake autoconf
|
2013-09-10 05:50:32 +02:00
|
|
|
CONFIGURE_ARGS= --without-conf --with-zlib
|
2006-08-10 04:08:59 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-01 15:23:43 +02:00
|
|
|
SUB_FILES= pkg-message
|
2002-11-24 12:01:08 +01:00
|
|
|
|
2010-10-29 01:52:47 +02:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
|
2012-07-01 05:46:01 +02:00
|
|
|
OPTIONS_DEFINE= CURL CLUCENE
|
|
|
|
CLUCENE_DESC= Include indexing capability
|
|
|
|
OPTIONS_DEFAULT=CURL CLUCENE
|
2012-06-10 03:27:14 +02:00
|
|
|
|
2013-09-20 22:50:57 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-10 03:27:14 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MCURL}
|
2013-09-10 05:50:32 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
2004-08-20 20:04:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-curl
|
2012-06-10 03:27:14 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
.endif
|
2004-02-08 21:31:24 +01:00
|
|
|
|
2012-07-01 05:46:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLUCENE}
|
2013-09-10 05:50:32 +02:00
|
|
|
LIB_DEPENDS+= libclucene-core.so:${PORTSDIR}/textproc/clucene \
|
|
|
|
libicudata.so:${PORTSDIR}/devel/icu
|
2013-01-28 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu
|
2013-01-10 21:49:04 +01:00
|
|
|
PLIST_SUB+= ICU="" ICUVER="`${LOCALBASE}/bin/icu-config --version`"
|
2012-07-01 05:46:01 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-clucene --without-icu
|
|
|
|
PLIST_SUB+= ICU="@comment "
|
|
|
|
.endif
|
|
|
|
|
2010-01-07 18:46:18 +01:00
|
|
|
run-autotools:: run-autotools-aclocal
|
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
2010-01-07 18:46:18 +01:00
|
|
|
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|:=|=|' ${WRKSRC}/Makefile.am \
|
|
|
|
${WRKSRC}/Makefile.in ${WRKSRC}/lib/Makefile.am \
|
|
|
|
${WRKSRC}/lib/Makefile.in
|
2012-03-08 09:04:10 +01:00
|
|
|
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
|
|
|
|
${WRKSRC}/src/mgr/curlhttpt.cpp ${WRKSRC}/src/mgr/curlftpt.cpp
|
2013-09-10 05:50:32 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/find(k)/this->&/ ; s/insert(/this->&/ ; \
|
|
|
|
s/[a-z]*_bound(k)/this->&/' ${WRKSRC}/include/multimapwdef.h
|
2004-08-20 20:04:07 +02:00
|
|
|
|
|
|
|
post-install:
|
2006-07-13 03:50:57 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/sword/mods.d
|
2002-06-28 05:34:56 +02:00
|
|
|
.if !exists(${PREFIX}/etc/sword.conf)
|
2007-04-21 19:42:56 +02:00
|
|
|
@(cd ${WRKSRC} && ${GMAKE} install_config)
|
2002-06-28 05:34:56 +02:00
|
|
|
.else
|
|
|
|
@${ECHO_CMD} "Config file not installed since ${PREFIX}/etc/sword.conf already exists."
|
|
|
|
@${ECHO_CMD} "Please check that DataPath points to your modules (default ${DATADIR}).";
|
|
|
|
.endif
|
2013-09-10 05:50:32 +02:00
|
|
|
@${ECHO_CMD}
|
2001-12-11 10:36:33 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2013-09-10 05:50:32 +02:00
|
|
|
@${ECHO_CMD}
|
2001-12-11 10:36:33 +01:00
|
|
|
|
|
|
|
register:
|
2013-09-10 05:50:32 +02:00
|
|
|
${MAKE_CMD} register -C ${WRKSRC}
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2007-12-24 14:36:09 +01:00
|
|
|
.include <bsd.port.mk>
|