2005-07-13 22:54:35 +00:00
|
|
|
# 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
|
2006-05-09 12:40:32 +00:00
|
|
|
PORTVERSION= 0.5.a.20060221
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 1
|
2007-03-11 19:41:33 +00:00
|
|
|
PORTEPOCH= 2
|
2005-11-09 07:48:19 +00:00
|
|
|
CATEGORIES= net-im
|
2005-10-21 23:34:09 +00:00
|
|
|
MASTER_SITES= http://www.jabber.ru/files/sulci/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a./-alpha-/}
|
2005-07-13 22:54:35 +00:00
|
|
|
|
|
|
|
MAINTAINER= dsh@vlink.ru
|
|
|
|
COMMENT= A Jabber bot
|
|
|
|
|
2007-03-27 08:01:48 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/ocaml/cryptokit.cma:${PORTSDIR}/security/ocaml-cryptokit \
|
|
|
|
${LOCALBASE}/${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
|
|
|
|
${LOCALBASE}/${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
|
|
|
|
${LOCALBASE}/${OCAML_SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
|
2005-07-13 22:54:35 +00:00
|
|
|
LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite2 \
|
2007-03-11 19:41:33 +00:00
|
|
|
pcre.0:${PORTSDIR}/devel/pcre
|
2007-03-27 08:01:48 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
|
2005-07-16 21:58:03 +00:00
|
|
|
mueller:${PORTSDIR}/russian/mueller-dic
|
2005-07-13 22:54:35 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2007-03-27 08:01:48 +00:00
|
|
|
USE_OCAML= yes
|
|
|
|
NO_OCAML_RUNDEPENDS= yes
|
|
|
|
USE_OCAML_FINDLIB= yes
|
2005-07-13 22:54:35 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}.sh
|
|
|
|
|
|
|
|
ALL_TARGET= subdirs
|
2005-10-21 23:34:09 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2007-03-27 08:01:48 +00:00
|
|
|
OPTIONS= MUC_LOG "with muc_log plugin" on
|
2005-07-13 22:54:35 +00:00
|
|
|
|
2008-04-08 19:45:16 +00:00
|
|
|
BROKEN= don't work with ocaml 3.10
|
|
|
|
|
2005-07-13 22:54:35 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/sbin
|
|
|
|
|
2006-05-09 12:40:32 +00:00
|
|
|
${MKDIR} ${PREFIX}/libexec/${PORTNAME}
|
|
|
|
.for i in lang/langcompile tlds/createtlds utils/wtf/wtf_convert
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${i} ${PREFIX}/libexec/${PORTNAME}
|
|
|
|
.endfor
|
|
|
|
|
2005-07-13 22:54:35 +00:00
|
|
|
${MKDIR} ${DATADIR}/lang
|
2006-05-09 12:40:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/lang/*.htbl ${WRKSRC}/${PORTNAME}/lang/*.msg ${DATADIR}/lang
|
|
|
|
|
|
|
|
.for i in tlds.db tlds.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/tlds/${i} ${DATADIR}
|
|
|
|
.endfor
|
2005-07-13 22:54:35 +00:00
|
|
|
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/${PORTNAME}.conf.example ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-07-18 15:32:09 +00:00
|
|
|
|
2005-10-21 23:34:09 +00:00
|
|
|
. for i in COPYING
|
2005-07-18 15:32:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
. endfor
|
|
|
|
|
|
|
|
. for i in cmdlist.en.txt cmdlist.ru.txt
|
2005-10-21 23:34:09 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/sulci/${i} ${DOCSDIR}
|
2005-07-18 15:32:09 +00:00
|
|
|
. endfor
|
2005-07-13 22:54:35 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CAT} ${PKGMESSAGE}
|
|
|
|
|
2007-03-27 08:01:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_MUC_LOG)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/without-muc-log.patch
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|