- Cleanup MASTER_SITES, convert MASTER_SITE_SUBDIR

- Tighten COMMENT line and drop the article
- Fix the build against Clang and thus drop USE_GCC
- Remove PKGMESSAGE, it's set automatically
- Correctly pad ${CAT} ${PKGMESSAGE}
- Couple of minor fixes (LIB_DEPENDS, etc.)

Approved by:	tabthorpe (maintainer)
This commit is contained in:
Alexey Dokuchaev 2013-09-10 03:50:32 +00:00
parent 2212d0a885
commit 706f03c7f6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326859

View file

@ -5,27 +5,22 @@ PORTNAME= sword
PORTVERSION= 1.6.2 PORTVERSION= 1.6.2
PORTREVISION= 4 PORTREVISION= 4
CATEGORIES= misc CATEGORIES= misc
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.6/ \ MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v${PORTVERSION:R}/ \
http://crosswire.org/ftpmirror/pub/sword/source/v1.6/ \ http://crosswire.org/ftpmirror/pub/sword/source/v${PORTVERSION:R}/ \
LOCAL LOCAL/tabthorpe
MASTER_SITE_SUBDIR= tabthorpe
MAINTAINER= tabthorpe@FreeBSD.org MAINTAINER= tabthorpe@FreeBSD.org
COMMENT= A project framework for manipulating Bible texts COMMENT= Framework for manipulating Bible texts
LICENSE= GPLv2 LICENSE= GPLv2
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
USES= gmake pkgconfig
USE_GCC= any
USES= pkgconfig gmake
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake autoconf USE_AUTOTOOLS= automake autoconf
CONFIGURE_ARGS+= --without-conf --with-zlib CONFIGURE_ARGS= --without-conf --with-zlib
USE_LDCONFIG= yes USE_LDCONFIG= yes
SUB_FILES= pkg-message SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB= PORTVERSION=${PORTVERSION} PLIST_SUB= PORTVERSION=${PORTVERSION}
@ -36,15 +31,15 @@ OPTIONS_DEFAULT=CURL CLUCENE
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCURL} .if ${PORT_OPTIONS:MCURL}
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl CONFIGURE_ARGS+= --with-curl
.else .else
CONFIGURE_ARGS+= --without-curl CONFIGURE_ARGS+= --without-curl
.endif .endif
.if ${PORT_OPTIONS:MCLUCENE} .if ${PORT_OPTIONS:MCLUCENE}
LIB_DEPENDS+= clucene-core:${PORTSDIR}/textproc/clucene \ LIB_DEPENDS+= libclucene-core.so:${PORTSDIR}/textproc/clucene \
icudata:${PORTSDIR}/devel/icu libicudata.so:${PORTSDIR}/devel/icu
CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu CONFIGURE_ARGS+= --with-clucene=${LOCALBASE} --with-icu
PLIST_SUB+= ICU="" ICUVER="`${LOCALBASE}/bin/icu-config --version`" PLIST_SUB+= ICU="" ICUVER="`${LOCALBASE}/bin/icu-config --version`"
.else .else
@ -62,6 +57,8 @@ post-patch:
${WRKSRC}/lib/Makefile.in ${WRKSRC}/lib/Makefile.in
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \ @${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/src/mgr/curlhttpt.cpp ${WRKSRC}/src/mgr/curlftpt.cpp ${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: post-install:
@${MKDIR} ${PREFIX}/share/sword/mods.d @${MKDIR} ${PREFIX}/share/sword/mods.d
@ -71,10 +68,11 @@ post-install:
@${ECHO_CMD} "Config file not installed since ${PREFIX}/etc/sword.conf already exists." @${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})."; @${ECHO_CMD} "Please check that DataPath points to your modules (default ${DATADIR}).";
.endif .endif
@${ECHO_CMD} "" @${ECHO_CMD}
@${CAT} ${PKGMESSAGE} @${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
register: register:
@(cd ${WRKSRC} && ${GMAKE} register) ${MAKE_CMD} register -C ${WRKSRC}
.include <bsd.port.mk> .include <bsd.port.mk>