diff options
author | lioux <lioux@FreeBSD.org> | 2002-09-21 00:48:34 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2002-09-21 00:48:34 +0800 |
commit | e5508e3840d8665212c8d509e0db755208935e33 (patch) | |
tree | d725a1ed2db89044ec3640290ddba9cdb9e06543 /net-p2p/mldonkey/Makefile | |
parent | 4d94715e224b4f33d0eb23164dbd759c65074de1 (diff) | |
download | freebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.tar.gz freebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.tar.zst freebsd-ports-gnome-e5508e3840d8665212c8d509e0db755208935e33.zip |
New port mldonkey version 1.16: A OCAML/GTK client for the eDonkey
peer-to-peer network
Submitted by: Holger Lamm <holger@e-gitt.net>
Diffstat (limited to 'net-p2p/mldonkey/Makefile')
-rw-r--r-- | net-p2p/mldonkey/Makefile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile new file mode 100644 index 000000000000..437294570f0c --- /dev/null +++ b/net-p2p/mldonkey/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: mldonkey +# Date created: 21 August 2002 +# Whom: Holger Lamm <holger@e-gitt.net> +# +# $FreeBSD$ +# + +PORTNAME= mldonkey +PORTVERSION= 1.16 +CATEGORIES= net +MASTER_SITES= http://savannah.nongnu.org/download/mldonkey/ \ + http://freesoftware.fsf.org/download/mldonkey/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.static.${ARCH}-FreeBSD + +MAINTAINER= holger@e-gitt.net + +RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww + +ONLY_FOR_ARCHS= i386 +USE_BZIP2= yes +USE_PERL5= yes +USE_REINPLACE= yes +NO_BUILD= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-distrib + +DIRNAME= ${HOME}/.mldonkey + +# do not strip, it breaks OCAML binaries +STRIP= + +post-patch: + @${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \ + ${WRKDIR}/wrapper.sh + @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \ + ${WRKSRC}/kill_mldonkey + +pre-install: +# we can strip the GTK binary + @${STRIP_CMD} ${WRKSRC}/mldonkey_gui + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey ${PREFIX}/bin/mldonkey-real + @${INSTALL_PROGRAM} ${WRKSRC}/mldonkey_gui ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKSRC}/kill_mldonkey ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKSRC}/mldonkey_previewer ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mldonkey +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DOCSDIR} +.endif + +post-install: + @${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE} + +.include <bsd.port.pre.mk> + +install-user: extract + @${TEST} -d ${DIRNAME} || ${MKDIR} ${DIRNAME} + @${CP} ${WRKSRC}/servers.ini ${DIRNAME}/ + +.include <bsd.port.post.mk> |