2002-09-20 18:48:34 +02:00
|
|
|
# New ports collection makefile for: mldonkey
|
|
|
|
# Date created: 21 August 2002
|
|
|
|
# Whom: Holger Lamm <holger@e-gitt.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mldonkey
|
2005-02-24 00:48:40 +01:00
|
|
|
PORTVERSION= 2.5.28.s1
|
2005-01-31 03:47:22 +01:00
|
|
|
PORTREVISION= 2
|
2004-03-11 04:15:15 +01:00
|
|
|
CATEGORIES+= net
|
2005-01-09 05:00:39 +01:00
|
|
|
MASTER_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/cvs/
|
|
|
|
PKGNAMESUFFIX= -devel
|
2004-09-19 19:32:20 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${DOWNLOADVERSION}
|
|
|
|
|
2005-01-09 05:00:39 +01:00
|
|
|
PATCH_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/patchpacks/
|
|
|
|
PATCHFILES= patch_pack${PORTVERSION:C/^.\..\.(.)/\1/:C/\.//}.gz
|
2002-09-20 18:48:34 +02:00
|
|
|
|
2005-01-09 05:00:39 +01:00
|
|
|
MAINTAINER?= lioux@FreeBSD.org
|
2003-06-15 21:54:06 +02:00
|
|
|
COMMENT?= A OCAML client for multiple peer-to-peer networks
|
2002-09-20 18:48:34 +02:00
|
|
|
|
2005-01-09 05:00:39 +01:00
|
|
|
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
2002-09-20 18:48:34 +02:00
|
|
|
|
2005-01-09 05:00:39 +01:00
|
|
|
DOWNLOADVERSION=${PORTVERSION:R}
|
2004-09-19 19:32:20 +02:00
|
|
|
|
2005-01-09 05:00:39 +01:00
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
CONFLICTS= mldonkey-[0-9]* mldonkey-{core,gui}-[0.9]*
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_AUTOCONF_VER= 213
|
|
|
|
USE_REINPLACE= yes
|
2003-06-15 21:39:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-01-09 05:00:39 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
ALL_TARGET= opt
|
|
|
|
|
2005-01-10 07:59:43 +01:00
|
|
|
CONFIGURE_ARGS= --disable-pthread --enable-ocamlver=3
|
2005-01-09 05:00:39 +01:00
|
|
|
CONFIGURE_WRKSRC= ${WRKSRC}/config
|
|
|
|
MAKE_ENV= OCAMLRUNPARAM="l=256M"
|
|
|
|
|
2004-09-19 19:32:20 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DOWNLOADVERSION}
|
2005-01-09 05:00:39 +01:00
|
|
|
|
2003-06-15 21:39:42 +02:00
|
|
|
.if defined(WITHOUT_GUI)
|
|
|
|
.if defined(WITHOUT_CORE)
|
|
|
|
.error "Cool, you defined both WITHOUT_GUI and WITHOUT_CORE. I think I'll do nothing."
|
|
|
|
.endif
|
|
|
|
# have no 'without-' flag
|
|
|
|
CONFIGURE_ARGS+=--disable-gui
|
|
|
|
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
|
2005-01-09 05:00:39 +01:00
|
|
|
PKGNAMESUFFIX= -core-devel
|
2003-06-15 21:39:42 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= GUI=""
|
|
|
|
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \
|
|
|
|
${LOCALBASE}/lib/ocaml/jabbr.cma:${PORTSDIR}/net/ocaml-jabbr
|
|
|
|
# we don't need lablgtk as RUN dependency, but we need gtk+glib
|
|
|
|
USE_GNOME= gtk12
|
|
|
|
.if defined(WITHOUT_CORE)
|
2005-01-09 05:00:39 +01:00
|
|
|
PKGNAMESUFFIX= -gui-devel
|
2003-06-15 21:39:42 +02:00
|
|
|
PLIST_SUB+= CORE="@comment " GUICORE="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CORE="" GUICORE=""
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2004-03-18 15:54:46 +01:00
|
|
|
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \
|
|
|
|
Install.txt Readme.txt Todo.txt ed2k_links.txt
|
2005-01-09 05:00:39 +01:00
|
|
|
PORTDOCS= ${DOCFILES}
|
2003-06-15 21:39:42 +02:00
|
|
|
|
2004-09-19 03:05:44 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-06-15 21:39:42 +02:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITHOUT_GUI) && !defined(WITHOUT_CORE)
|
|
|
|
@${ECHO_MSG} "You can disable the GUI by defining WITHOUT_GUI."
|
|
|
|
@${ECHO_MSG} "You can disable the CORE by defining WITHOUT_CORE."
|
|
|
|
.endif
|
2002-09-20 18:48:34 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
|
|
|
|
${WRKDIR}/wrapper.sh
|
2005-01-09 05:00:39 +01:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|%%AUTOCONF%%|${AUTOCONF}|' \
|
|
|
|
${BUILD_WRKSRC}/${MAKEFILE}
|
2002-09-20 18:48:34 +02:00
|
|
|
|
|
|
|
do-install:
|
2003-06-15 21:39:42 +02:00
|
|
|
.ifndef(WITHOUT_CORE)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
|
2003-01-27 18:53:01 +01:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin
|
2003-06-15 21:39:42 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
|
|
|
|
.endif
|
|
|
|
.ifndef(WITHOUT_GUI)
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlgui ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlim ${PREFIX}/bin
|
|
|
|
.endif
|
|
|
|
.ifndef(WITHOUT_CORE && WITHOUT_GUI)
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/distrib/mldonkey_previewer ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlguistarter ${PREFIX}/bin
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mlnet+gui ${PREFIX}/bin
|
|
|
|
.endif
|
2002-09-20 18:48:34 +02:00
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-01-26 19:42:48 +01:00
|
|
|
.for file in ${DOCFILES}
|
2003-06-15 21:39:42 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/distrib/${file} ${DOCSDIR}
|
2003-01-26 19:42:48 +01:00
|
|
|
.endfor
|
2002-09-20 18:48:34 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2003-06-15 21:39:42 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2003-01-31 17:53:15 +01:00
|
|
|
|
2003-06-15 21:39:42 +02:00
|
|
|
install-user: extract
|
|
|
|
.if !defined(LANG)
|
|
|
|
@${ECHO_MSG} "Please call as: make install-user LANG=<lang>"
|
|
|
|
@${ECHO_MSG} "with <lang> one of en,de,fr,fr.noaccents,sp !"
|
|
|
|
.else
|
|
|
|
@${CP} ${WRKSRC}/distrib/i18n/gui_messages.ini.${LANG}\
|
|
|
|
${HOME}/.mldonkey_gui_messages.ini
|
2003-01-31 17:53:15 +01:00
|
|
|
.endif
|
|
|
|
|
2004-09-19 03:05:44 +02:00
|
|
|
.include <bsd.port.post.mk>
|