2001-12-11 09:36:33 +00:00
|
|
|
# New ports collection makefile for: sword
|
|
|
|
# Date created: 22 may 2001
|
|
|
|
# Whom: Willem van Engen <wvengen@stack.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-08-20 18:04:07 +00:00
|
|
|
PORTNAME= sword
|
|
|
|
PORTVERSION= 1.5.7
|
2001-12-11 09:36:33 +00:00
|
|
|
CATEGORIES= misc
|
2004-08-20 18:04:07 +00:00
|
|
|
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
# 1.5.7a version fixes some build problems. Since there was no FreeBSD
|
|
|
|
# version of 1.5.7 it's really no problem to put the a here. WRKSRC is also
|
|
|
|
# just work/sword-1.5.7
|
|
|
|
DISTFILES= ${DISTNAME}a${EXTRACT_SUFX}
|
2001-12-11 09:36:33 +00:00
|
|
|
|
|
|
|
MAINTAINER= wvengen@stack.nl
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= A project framework for manipulating Bible texts
|
2001-12-11 09:36:33 +00:00
|
|
|
|
2004-08-27 10:28:26 +00:00
|
|
|
USE_GNOME= pkgconfig
|
2001-12-11 09:36:33 +00:00
|
|
|
USE_GMAKE= yes
|
2004-08-20 18:04:07 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-06-28 03:34:56 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-08-20 18:04:07 +00:00
|
|
|
CONFIGURE_ARGS+= --without-conf
|
2001-12-11 09:36:33 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-11-24 11:01:08 +00:00
|
|
|
|
2004-08-20 18:04:07 +00:00
|
|
|
.if defined(WITHOUT_CURL)
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
PLIST_SUB+= INSTALLMGR="@comment "
|
|
|
|
.else
|
2002-11-24 11:01:08 +00:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
2004-08-20 18:04:07 +00:00
|
|
|
CONFIGURE_ARGS+= --with-curl
|
2002-11-24 11:01:08 +00:00
|
|
|
PLIST_SUB+= INSTALLMGR=""
|
2004-02-08 20:31:24 +00:00
|
|
|
|
2003-02-28 22:53:02 +00:00
|
|
|
pre-everything::
|
2004-08-20 18:04:07 +00:00
|
|
|
@${ECHO_CMD} "Define WITHOUT_CURL to disable remote fetch (curl) support in the installmanager"
|
2002-11-24 11:01:08 +00:00
|
|
|
.endif
|
2001-12-11 09:36:33 +00:00
|
|
|
|
2004-08-20 18:04:07 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} -p ${PREFIX}/share/sword/mods.d
|
2002-06-28 03:34:56 +00:00
|
|
|
.if !exists(${PREFIX}/etc/sword.conf)
|
2004-08-20 18:04:07 +00:00
|
|
|
@(cd ${WRKSRC} && make install_config)
|
2002-06-28 03:34:56 +00: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 09:36:33 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
register:
|
2004-08-20 18:04:07 +00:00
|
|
|
@(cd ${WRKSRC} && make register)
|
2001-12-11 09:36:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|