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
|
2018-04-02 05:23:53 +02:00
|
|
|
PORTVERSION= 1.8.1
|
2019-10-03 22:35:29 +02:00
|
|
|
PORTREVISION= 8
|
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}/ \
|
2014-01-16 21:44:20 +01:00
|
|
|
http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/
|
2006-07-13 03:50:57 +02:00
|
|
|
|
2018-02-23 02:30:03 +01:00
|
|
|
MAINTAINER= ports@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
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= cppunit-config:devel/cppunit
|
2009-06-02 19:06:41 +02:00
|
|
|
|
2014-07-18 11:41:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-01-16 21:44:20 +01:00
|
|
|
CONFIGURE_ARGS= --with-conf --with-zlib
|
2018-04-04 10:03:58 +02:00
|
|
|
CPPFLAGS+= -DU_USING_ICU_NAMESPACE=1
|
2014-07-18 11:41:42 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2017-09-12 15:01:22 +02:00
|
|
|
USES= gmake libtool pathfix pkgconfig
|
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
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MCURL}
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libcurl.so: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}
|
2018-02-09 10:12:48 +01:00
|
|
|
USES+= compiler:c++11-lib
|
|
|
|
USE_CXXSTD= gnu++11
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libclucene-core.so:textproc/clucene \
|
|
|
|
libicudata.so:devel/icu
|
2013-01-28 23:25:05 +01:00
|
|
|
CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu
|
2012-07-01 05:46:01 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-clucene --without-icu
|
|
|
|
.endif
|
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
post-patch:
|
2014-07-18 11:41:42 +02:00
|
|
|
@${REINPLACE_CMD} 's|-O3||' ${WRKSRC}/configure
|
2004-08-20 20:04:07 +02:00
|
|
|
|
|
|
|
post-install:
|
2014-12-17 15:58:01 +01:00
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install_config)
|
2014-07-18 11:41:42 +02:00
|
|
|
${MV} ${STAGEDIR}${PREFIX}/etc/sword.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/sword.conf.sample
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2007-12-24 14:36:09 +01:00
|
|
|
.include <bsd.port.mk>
|