aboutsummaryrefslogtreecommitdiffstats
path: root/misc/biblereader/Makefile
blob: f78ba9b931a1a45a11e90b149a4cf175a4152f30 (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
# New ports collection makefile for:    biblereader
# Date created:        16 April 2000
# Whom:                Patrick Seal <patseal@hyperhost.net>
#
# $FreeBSD$
#

PORTNAME=   biblereader
PORTVERSION=    0.3.2
CATEGORIES= misc
MASTER_SITES=   ftp://ftp.whitevine.com/biblereader/
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} kjv.tar.gz
.if defined(WITH_TRANSLATIONS)
DISTFILES+= asv.tar.gz darby.tar.gz
.endif
.if defined(WITH_SUPPLEMENTS)
DISTFILES+= easton.tar.gz mhc.tar.gz
.endif

MAINTAINER= patseal@hyperhost.net

USE_X_PREFIX=   yes
USE_GTK=    yes
PLIST=      ${WRKDIR}/PLIST

DATAFILES=  ${WRKDIR}/kjv/kjv
PLISTS=     ${PKGDIR}/PLIST
.if defined(WITH_TRANSLATIONS)
DATAFILES+=     ${WRKDIR}/asv/asv ${WRKDIR}/darby/darby
PLISTS+=    ${PKGDIR}/PLIST.translations
.endif
.if defined(WITH_SUPPLEMENTS)
DATAFILES+=     ${WRKDIR}/easton/easton.dict ${WRKDIR}/mhc/mhc
PLISTS+=    ${PKGDIR}/PLIST.supplements
.endif

.if !defined(WITH_TRANSLATIONS)
pre-fetch:
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to download/install additional tranlations use"
    @${ECHO_MSG} "\"make -DWITH_TRANSLATIONS\""
    @${ECHO_MSG}
.endif
.if !defined(WITH_SUPPLEMENTS)
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want download/install commentary and dictionary files please use"
    @${ECHO_MSG} "\"make -DWITH_SUPPLEMENTS\""
    @${ECHO_MSG}
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/biblereader ${PREFIX}/bin/biblereader
    ${MKDIR} ${PREFIX}/share/biblereader
    @for file in ${DATAFILES}; do \
        ${INSTALL_DATA} $${file} ${PREFIX}/share/biblereader; \
    done
    @${CAT} ${PLISTS} > ${PLIST}

.include <bsd.port.mk>