summaryrefslogtreecommitdiffstats
path: root/misc/sword/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-11-24 11:01:08 +0000
committeredwin <edwin@FreeBSD.org>2002-11-24 11:01:08 +0000
commita795cfbd3cf6798e4bccc0ec8fa15503562dce39 (patch)
tree9e6e295325c8c6e728fef858ce65ad8b367e2895 /misc/sword/Makefile
parent778a23c4a61ecc1ede164e73395458889119c2c1 (diff)
downloadFreeBSD-ports-a795cfbd3cf6798e4bccc0ec8fa15503562dce39.zip
FreeBSD-ports-a795cfbd3cf6798e4bccc0ec8fa15503562dce39.tar.gz
maintainer update for misc/sword to version 1.5.5
PR: ports/45406 Submitted by: Willem van Engen <wvengen@stack.nl>
Diffstat (limited to 'misc/sword/Makefile')
-rw-r--r--misc/sword/Makefile25
1 files changed, 22 insertions, 3 deletions
diff --git a/misc/sword/Makefile b/misc/sword/Makefile
index 4003bc6..bb1a4d7 100644
--- a/misc/sword/Makefile
+++ b/misc/sword/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= sword
-PORTVERSION= 1.5.3
+PORTVERSION= 1.5.5
CATEGORIES= misc
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
http://www.crosswire.org/sword/download/ftpmirror/pub/sword/source/v1.5/ \
@@ -18,17 +18,36 @@ MAINTAINER= wvengen@stack.nl
USE_GMAKE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
-CONFIGURE_ARGS= --program-transform-name=""
+CONFIGURE_ARGS+= --program-transform-name="" --without-conf
+
+.if defined(WITH_INSTALLMGR)
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
+CONFIGURE_ARGS+= --enable-installmgr
+PLIST_SUB+= INSTALLMGR=""
+.else
+CONFIGURE_ARGS+= --disable-installmgr
+PLIST_SUB+= INSTALLMGR="@comment "
+
+pre-everything:
+ @${ECHO_CMD} "Define WITH_INSTALLMGR to include the installmanager (curl)"
+.endif
post-install: register
.if !exists(${PREFIX}/etc/sword.conf)
@${ECHO_CMD} "[Install]" >${PREFIX}/etc/sword.conf
- @${ECHO_CMD} "DataPath=${DATADIR}" >>${PREFIX}/etc/sword.conf
+ @${ECHO_CMD} "DataPath=${DATADIR}/" >>${PREFIX}/etc/sword.conf
@${ECHO_CMD} "Config file installed in ${PREFIX}/etc/sword.conf"
.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
+.if !exists(${PREFIX}/share/sword/mods.d/globals.conf)
+ @${MKDIR} ${PREFIX}/share/sword/mods.d
+ @${ECHO_CMD} "[Globals]" >${PREFIX}/share/sword/mods.d/globals.conf
+ @${ECHO_CMD} "" >>${PREFIX}/share/sword/mods.d/globals.conf
+ @${ECHO_CMD} "Global sword runtime settings installed in"
+ @${ECHO_CMD} " ${PREFIX}/share/sword/mods.d/globals.conf
+.endif
@${ECHO_CMD} ""
@${CAT} ${PKGMESSAGE}
OpenPOWER on IntegriCloud