aboutsummaryrefslogtreecommitdiffstats
path: root/net/sulci/Makefile
blob: f88b770fc42275624d5d101a231831fc85fe45f1 (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
64
65
# New ports collection makefile for:    sulci
# Date created:             Fri Jul  8 13:12:34 MSD 2005
# Whom:                 Denis Shaposhnikov <dsh@vlink.ru>
#
# $FreeBSD$
#

PORTNAME=   sulci
PORTVERSION=    0.5.a.20050918
PORTEPOCH=  1
CATEGORIES= net
MASTER_SITES=   http://www.jabber.ru/files/sulci/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.a./-alpha-/}

MAINTAINER= dsh@vlink.ru
COMMENT=    A Jabber bot

BUILD_DEPENDS=  ocamlc:${PORTSDIR}/lang/ocaml \
        ${LOCALBASE}/lib/ocaml/cryptokit.cma:${PORTSDIR}/security/ocaml-cryptokit \
        ${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
        ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
        ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
        ${OCAML_SITELIBDIR}/netclient/netclient.a:${PORTSDIR}/net/ocaml-netclient \
        ${OCAML_SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
LIB_DEPENDS=    sqlite.2:${PORTSDIR}/databases/sqlite2 \
        pcre.0:${PORTSDIR}/devel/pcre-utf8
RUN_DEPENDS=    ${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
        mueller:${PORTSDIR}/russian/mueller-dic

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_RC_SUBR=    ${PORTNAME}.sh

ALL_TARGET= subdirs
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES=  pkg-message

OCAML_SITELIBDIR=   ${LOCALBASE}/lib/ocaml/site-lib

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/sbin

    ${MKDIR} ${DATADIR}/lang
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/lang/*.htbl ${WRKSRC}/${PORTNAME}/lang/*.ml ${WRKSRC}/${PORTNAME}/lang/*.msg ${DATADIR}/lang
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/tlds.db ${DATADIR}

    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${PORTNAME}.conf.example ${EXAMPLESDIR}

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}

.  for i in COPYING
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.  endfor

.  for i in cmdlist.en.txt cmdlist.ru.txt
    ${INSTALL_DATA} ${WRKSRC}/docs/sulci/${i} ${DOCSDIR}
.  endfor
.endif

post-install:
    ${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>