summaryrefslogtreecommitdiffstats
path: root/net/mldonkey-gui/Makefile
blob: 437294570f0c301b4d717853c71513dd5fc4445f (plain)
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
52
53
54
55
56
57
58
59
60
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>
OpenPOWER on IntegriCloud