# New ports collection makefile for: mldonkey # Date created: 18 January 2003 # Whom: Holger Lamm # # $FreeBSD$ # PORTNAME= mldonkey PORTVERSION= 2.02.0 PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://ernie.eit.uni-kl.de/mldonkey/ \ http://savannah.nongnu.org/download/mldonkey/stable/ PKGNAMESUFFIX= -src DISTNAME= ${PORTNAME}-${PORTVERSION:C/.0$/-0/}.sources MAINTAINER= holger@e-gitt.net BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-multinet WRKSRC= ${WRKDIR}/${PORTNAME} USE_GMAKE= yes ALL_TARGET= depend all .if defined(WITHOUT_GUI) # have no 'without-' flag CONFIGURE_ENV= GTK_CONFIG=no PLIST_SUB+= GUI="@comment " .else PLIST_SUB+= GUI="" BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk # we don't need lablgtk as RUN dependency, but we need gtk+glib USE_GNOMENG= yes USE_GNOME= gtk12 .endif DOCFILES= AUTHORS BUGS ChangeLog Developers.txt FAQ.html \ Readme.txt TODO ed2k_links.txt pre-everything:: .if !defined(WITHOUT_GUI) @${ECHO_MSG} "You can disable the GUI by defining WITHOUT_GUI." .endif post-patch: @${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \ ${WRKDIR}/wrapper.sh do-install: @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey ${PREFIX}/bin/mldonkey-real @${INSTALL_SCRIPT} ${WRKSRC}/distrib/mldonkey_previewer ${PREFIX}/bin @${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${PREFIX}/bin @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mldonkey .ifndef(WITHOUT_GUI) @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey_guistarter ${PREFIX}/bin @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey_gui ${PREFIX}/bin @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey_gui2 ${PREFIX}/bin @${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/bin .endif .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for file in ${DOCFILES} @${INSTALL_DATA} ${WRKSRC}/distrib/${file} ${DOCSDIR} .endfor .endif post-install: @${FMT} < ${PKGMESSAGE} install-user: extract .if !defined(LANG) @${ECHO_MSG} "Please call as: make install-user LANG=" @${ECHO_MSG} "with one of en,de,fr,fr.noaccents !" .else @${CP} ${WRKSRC}/i18n/gui_messages.ini.${LANG}\ ${HOME}/.mldonkey_gui_messages.ini .endif .include