blob: 1a78b368b90ff746c55f1e4d482b3fa22e63f67f (
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
|
# New ports collection makefile for: mldonkey link submitter
# Date created: Fri Feb 21 14:11:00 UTC 2003
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mldonkey
PORTVERSION= 0.0.1
PORTREVISION= 4
CATEGORIES= net-p2p perl5
MASTER_SITES= http://home.ircnet.de/cru/ed2k_urlslave/dist/
PKGNAMESUFFIX= -urlslave
DISTNAME= mlurlslave-v${PORTVERSION:S/^0.0.//}
MAINTAINER= ports@FreeBSD.org
COMMENT= GTK+ enabled Perl script for adding ed2k:// links to MLDonkey
BUILD_DEPENDS= p5-Gtk>=0:${PORTSDIR}/x11-toolkits/p5-Gtk
USE_PERL5= yes
NO_BUILD= yes
BINARY_NAME= mlurlslave
post-extract:
@${GREP} '^#' ${WRKSRC}/${BINARY_NAME} | ${GREP} -v '/usr/bin/perl' > ${WRKDIR}/README
post-patch:
@${PERL} -pi -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/${BINARY_NAME}
do-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
@${CHMOD} 0755 ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
@${INSTALL_DATA} ${WRKDIR}/README ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
.endif
@${INSTALL_SCRIPT} ${WRKSRC}/${BINARY_NAME} ${PREFIX}/bin
post-install:
@${SED} -e 's|/usr/local/|${PREFIX}/|' ${PKGMESSAGE}
.include <bsd.port.mk>
|