blob: 8a457996de6789d12af25c91c11df602fb368d1a (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Created by: Willem van Engen <wvengen@stack.nl>
# $FreeBSD$
PORTNAME= sword
PORTVERSION= 1.6.2
PORTREVISION= 4
CATEGORIES= misc
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v${PORTVERSION:R}/ \
http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/ \
LOCAL/tabthorpe
MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= Framework for manipulating Bible texts
LICENSE= GPLv2
CONFLICTS= sword-1.7.*
PKGNAMESUFFIX= 16
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
USES= gmake pkgconfig
USE_AUTOTOOLS= automake autoconf
CONFIGURE_ARGS= --without-conf --with-zlib
USE_LDCONFIG= yes
SUB_FILES= pkg-message
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= CURL CLUCENE
CLUCENE_DESC= Include indexing capability
OPTIONS_DEFAULT=CURL CLUCENE
NO_STAGE= yes
.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
PLIST_SUB+= ICU="" ICUVER="`${LOCALBASE}/bin/icu-config --version`"
.else
CONFIGURE_ARGS+= --without-clucene --without-icu
PLIST_SUB+= ICU="@comment "
.endif
run-autotools:: run-autotools-aclocal
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|:=|=|' ${WRKSRC}/Makefile.am \
${WRKSRC}/Makefile.in ${WRKSRC}/lib/Makefile.am \
${WRKSRC}/lib/Makefile.in
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/src/mgr/curlhttpt.cpp ${WRKSRC}/src/mgr/curlftpt.cpp
@${REINPLACE_CMD} -e 's/find(k)/this->&/ ; s/insert(/this->&/ ; \
s/[a-z]*_bound(k)/this->&/' ${WRKSRC}/include/multimapwdef.h
post-install:
@${MKDIR} ${PREFIX}/share/sword/mods.d
.if !exists(${PREFIX}/etc/sword.conf)
@(cd ${WRKSRC} && ${GMAKE} install_config)
.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
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
register:
${MAKE_CMD} register -C ${WRKSRC}
.include <bsd.port.mk>
|