freebsd-ports/misc/sword/Makefile

67 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: sword
# Date created: 22 may 2001
# Whom: Willem van Engen <wvengen@stack.nl>
#
# $FreeBSD$
#
PORTNAME= sword
2010-01-07 18:46:18 +01:00
PORTVERSION= 1.6.1
PORTREVISION= 2
CATEGORIES= misc
2009-06-02 18:57:37 +02:00
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.6/ \
http://crosswire.org/ftpmirror/pub/sword/source/v1.6/ \
LOCAL
MASTER_SITE_SUBDIR= tabthorpe
MAINTAINER= tabthorpe@FreeBSD.org
2003-02-21 13:51:06 +01:00
COMMENT= A project framework for manipulating Bible texts
2010-01-07 18:46:18 +01:00
BUILD_DEPENDS= cppunit-config:${PORTSDIR}/devel/cppunit
2009-06-02 19:06:41 +02:00
2009-03-30 18:17:28 +02:00
MAKE_JOBS_SAFE= yes
USE_GNOME= pkgconfig
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake:110 autoconf:262
CONFIGURE_ARGS+= --without-conf --without-clucene --with-zlib --without-icu
USE_LDCONFIG= yes
2006-04-01 15:23:43 +02:00
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.if defined(WITHOUT_CURL)
CONFIGURE_ARGS+= --without-curl
.else
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl
2010-01-07 18:46:18 +01:00
run-autotools:: run-autotools-aclocal
pre-everything::
@${ECHO_CMD} "Define WITHOUT_CURL to disable remote fetch (curl) support in the installmanager"
.endif
post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
2010-01-07 18:46:18 +01:00
${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|:=|=|' ${WRKSRC}/Makefile.am \
${WRKSRC}/Makefile.in ${WRKSRC}/lib/Makefile.am \
${WRKSRC}/lib/Makefile.in
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}
register:
@(cd ${WRKSRC} && ${GMAKE} register)
2007-12-24 14:36:09 +01:00
.include <bsd.port.mk>