freebsd-ports/misc/sword/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: Willem van Engen <wvengen@stack.nl>
# $FreeBSD$
PORTNAME= sword
2018-04-02 05:23:53 +02:00
PORTVERSION= 1.8.1
PORTREVISION= 8
CATEGORIES= misc
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}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework for manipulating Bible texts
2010-10-29 01:52:47 +02:00
LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:devel/cppunit
2009-06-02 19:06:41 +02:00
GNU_CONFIGURE= yes
2014-01-16 21:44:20 +01:00
CONFIGURE_ARGS= --with-conf --with-zlib
misc/sword: unbreak with ICU 61 In file included from ../src/mgr/swmgr.cpp:108: ../include/utf8transliterator.h:53:2: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? UnicodeString resource; ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from ../src/mgr/swmgr.cpp:108: ../include/utf8transliterator.h:56:24: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? typedef std::map<const UnicodeString, SWTransData> SWTransMap; ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from ../src/mgr/swmgr.cpp:108: ../include/utf8transliterator.h:57:19: error: use of undeclared identifier 'UnicodeString' typedef std::pair<UnicodeString, SWTransData> SWTransPair; ^ ../include/utf8transliterator.h:84:2: error: unknown type name 'Transliterator'; did you mean 'UTransliterator'? Transliterator *createTrans(const UnicodeString& ID, UTransDirection dir, UErrorCode &status); ^~~~~~~~~~~~~~ UTransliterator /usr/local/include/unicode/utrans.h:70:15: note: 'UTransliterator' declared here typedef void* UTransliterator; ^ In file included from ../src/mgr/swmgr.cpp:108: ../include/utf8transliterator.h:84:36: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? Transliterator *createTrans(const UnicodeString& ID, UTransDirection dir, UErrorCode &status); ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ https://ssl.icu-project.org/trac/changeset/40705 PR: 227042 Reported by: antoine (via exp-run)
2018-04-04 10:03:58 +02:00
CPPFLAGS+= -DU_USING_ICU_NAMESPACE=1
INSTALL_TARGET= install-strip
USES= gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
2006-04-01 15:23:43 +02:00
SUB_FILES= pkg-message
2010-10-29 01:52:47 +02:00
PLIST_SUB= PORTVERSION=${PORTVERSION}
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}
LIB_DEPENDS= libcurl.so:ftp/curl
CONFIGURE_ARGS+= --with-curl
2012-06-10 03:27:14 +02:00
.else
CONFIGURE_ARGS+= --without-curl
.endif
.if ${PORT_OPTIONS:MCLUCENE}
USES+= compiler:c++11-lib
USE_CXXSTD= gnu++11
LIB_DEPENDS+= libclucene-core.so:textproc/clucene \
libicudata.so: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:
2014-12-17 15:58:01 +01:00
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install_config)
${MV} ${STAGEDIR}${PREFIX}/etc/sword.conf \
${STAGEDIR}${PREFIX}/etc/sword.conf.sample
2007-12-24 14:36:09 +01:00
.include <bsd.port.mk>