blob: eccc9516b4df6a4d6e39e03d5f7e444eefd63125 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: sword
# Date created: 22 may 2001
# Whom: Willem van Engen <wvengen@stack.nl>
#
# $FreeBSD$
#
PORTNAME= sword
PORTVERSION= 1.5.5
CATEGORIES= misc
MASTER_SITES= ftp://ftp.crosswire.org/pub/sword/source/v1.5/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= wvengen@stack.nl
USE_GMAKE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
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} "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}
register:
.if !defined(BATCH)
@${ECHO} "Do you want to help the authors of SWORD to keep track of how many"
@${ECHO} -n "people use this program and register now ? [y/n] "
@read answer; \
if [ x$$answer = xy -o x$$answer = xY ]; then \
(cd ${WRKSRC}; ${GMAKE} register;); \
fi
.endif
.include <bsd.port.mk>
|