aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/mldonkey-devel/Makefile
blob: 63449034c7864ec42908ca231fd242d489452862 (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
# New ports collection makefile for:    mldonkey
# Date created:     21 August 2002
# Whom:         Holger Lamm <holger@e-gitt.net>
#
# $FreeBSD$
#

PORTNAME=   mldonkey
PORTVERSION=    2.04.r1
CATEGORIES= net
MASTER_SITES=   http://savannah.nongnu.org/download/mldonkey/release-2.04rc1/contributed/holger/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.r/rc/}-0.shared.${ARCH}-${OPSYS}-hl

MAINTAINER= holger@e-gitt.net
COMMENT=    A OCAML client for eDonkey and Overnet peer-to-peer networks (core)

ONLY_FOR_ARCHS= alpha i386
USE_BZIP2=  yes
NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-distrib-${PORTVERSION:S/.r/rc/}-0

DIRNAME=    ${HOME}/.mldonkey

DOCFILES=   AUTHORS BUGS ChangeLog Developers.txt FAQ.html \
        Readme.txt TODO ed2k_links.txt

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} ${FILESDIR}/kill_mldonkey    ${PREFIX}/bin
    @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh     ${PREFIX}/bin/mldonkey
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOCFILES}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

post-install:
    @${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
LIB_DEPENDS+=   c_r.4:${PORTSDIR}/misc/compat4x
.endif

.include <bsd.port.post.mk>