aboutsummaryrefslogtreecommitdiffstats
path: root/misc/sword/Makefile
blob: 17529384acc137f53f23f6b08e73b88461750167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Willem van Engen <wvengen@stack.nl>

PORTNAME=   sword
PORTVERSION=    1.8.1
PORTREVISION=   11
CATEGORIES= misc
MASTER_SITES=   http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Framework for manipulating Bible texts

LICENSE=    GPLv2

BUILD_DEPENDS=  cppunit-config:devel/cppunit

USES=       gmake libtool pathfix pkgconfig
USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-conf \
        --with-zlib
INSTALL_TARGET= install-strip
CPPFLAGS+=  -DU_USING_ICU_NAMESPACE=1

SUB_FILES=  pkg-message
PLIST_SUB=  PORTVERSION=${PORTVERSION}

OPTIONS_DEFINE=     CLUCENE CURL
OPTIONS_DEFAULT=    CLUCENE CURL
CLUCENE_DESC=       Include indexing capability

CLUCENE_LIB_DEPENDS=    libclucene-core.so:textproc/clucene \
            libicudata.so:devel/icu
CLUCENE_USES=       compiler:c++11-lib
CLUCENE_CONFIGURE_WITH= clucene=${LOCALBASE} icu

CURL_LIB_DEPENDS=   libcurl.so:ftp/curl
CURL_CONFIGURE_WITH=    curl

post-install:
    @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install_config)
    ${MV} ${STAGEDIR}${PREFIX}/etc/sword.conf \
        ${STAGEDIR}${PREFIX}/etc/sword.conf.sample

.include <bsd.port.mk>