freebsd-ports/misc/sword/Makefile
Dmitry Marakasov 099320b1c0 - Fix plist
Approved by:	portmgr blanket
2014-07-29 23:45:22 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Willem van Engen <wvengen@stack.nl>
# $FreeBSD$
PORTNAME= sword
PORTVERSION= 1.7.2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v${PORTVERSION:R}/ \
http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/
MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= Framework for manipulating Bible texts
LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-conf --with-zlib
INSTALL_TARGET= install-strip
USES= gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
SUB_FILES= pkg-message
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= CURL CLUCENE
CLUCENE_DESC= Include indexing capability
OPTIONS_DEFAULT=CURL CLUCENE
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCURL}
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl
.else
CONFIGURE_ARGS+= --without-curl
.endif
.if ${PORT_OPTIONS:MCLUCENE}
LIB_DEPENDS+= libclucene-core.so:${PORTSDIR}/textproc/clucene \
libicudata.so:${PORTSDIR}/devel/icu
CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu
.else
CONFIGURE_ARGS+= --without-clucene --without-icu
.endif
post-patch:
@${REINPLACE_CMD} 's|-O3||' ${WRKSRC}/configure
post-install:
@(cd ${WRKSRC} && ${MAKE_CMD} install_config)
${MV} ${STAGEDIR}${PREFIX}/etc/sword.conf \
${STAGEDIR}${PREFIX}/etc/sword.conf.sample
.include <bsd.port.mk>