2001-12-11 10:36:33 +01:00
|
|
|
# New ports collection makefile for: sword
|
|
|
|
# Date created: 22 may 2001
|
|
|
|
# Whom: Willem van Engen <wvengen@stack.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
PORTNAME= sword
|
2007-12-18 20:36:54 +01:00
|
|
|
PORTVERSION= 1.5.10
|
2001-12-11 10:36:33 +01:00
|
|
|
CATEGORIES= misc
|
2004-08-20 20:04:07 +02:00
|
|
|
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
|
2007-12-18 20:36:54 +01:00
|
|
|
http://crosswire.org/ftpmirror/pub/sword/source/v1.5/ \
|
|
|
|
LOCAL
|
|
|
|
MASTER_SITE_SUBDIR= tabthorpe
|
2006-07-13 03:50:57 +02:00
|
|
|
|
2007-08-23 06:00:04 +02:00
|
|
|
MAINTAINER= tabthorpe@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= A project framework for manipulating Bible texts
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2004-08-27 12:28:26 +02:00
|
|
|
USE_GNOME= pkgconfig
|
2001-12-11 10:36:33 +01:00
|
|
|
USE_GMAKE= yes
|
2002-06-28 05:34:56 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-12-18 20:36:54 +01:00
|
|
|
USE_AUTOTOOLS= automake:110
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2007-12-18 20:36:54 +01:00
|
|
|
CONFIGURE_ARGS+= --without-conf --without-clucene --with-zlib
|
2006-08-10 04:08:59 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-04-01 15:23:43 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2002-11-24 12:01:08 +01:00
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
.if defined(WITHOUT_CURL)
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
PLIST_SUB+= INSTALLMGR="@comment "
|
|
|
|
.else
|
2002-11-24 12:01:08 +01:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
2004-08-20 20:04:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-curl
|
2002-11-24 12:01:08 +01:00
|
|
|
PLIST_SUB+= INSTALLMGR=""
|
2004-02-08 21:31:24 +01:00
|
|
|
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2004-08-20 20:04:07 +02:00
|
|
|
@${ECHO_CMD} "Define WITHOUT_CURL to disable remote fetch (curl) support in the installmanager"
|
2002-11-24 12:01:08 +01:00
|
|
|
.endif
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2004-08-20 20:04:07 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
2007-03-16 13:14:51 +01:00
|
|
|
${WRKSRC}/Makefile.am
|
2004-08-20 20:04:07 +02:00
|
|
|
|
|
|
|
post-install:
|
2006-07-13 03:50:57 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/sword/mods.d
|
2002-06-28 05:34:56 +02:00
|
|
|
.if !exists(${PREFIX}/etc/sword.conf)
|
2007-04-21 19:42:56 +02:00
|
|
|
@(cd ${WRKSRC} && ${GMAKE} install_config)
|
2002-06-28 05:34:56 +02:00
|
|
|
.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} ""
|
2001-12-11 10:36:33 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
register:
|
2007-04-21 19:42:56 +02:00
|
|
|
@(cd ${WRKSRC} && ${GMAKE} register)
|
2001-12-11 10:36:33 +01:00
|
|
|
|
2007-12-24 14:36:09 +01:00
|
|
|
.include <bsd.port.mk>
|