aboutsummaryrefslogtreecommitdiff
path: root/misc/linux-edonkey-tool-list/Makefile
blob: 4e27698868ee69f175b2b5bf4110835f901410e9 (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:	edonkey list tool
# Date created:				Wed Feb 20 18:03:49 BRT 2002
# Whom:			Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	edonkey
PORTVERSION=	0.0.1
CATEGORIES=	misc linux
MASTER_SITES=	http://users.aber.ac.uk/tpm01/ed2k_tools/
PKGNAMEPREFIX=	linux-
PKGNAMESUFFIX=	-tool-list
DISTNAME=	ed2k_list
EXTRACT_SUFX=	.gz
EXTRACT_ONLY=

MAINTAINER=	lioux@FreeBSD.org
COMMENT=	Creates a web page with ed2k:// links to all your shared files

ONLY_FOR_ARCHS=	i386
USE_LINUX=	yes
NO_WRKSUBDIR=	yes
NO_BUILD=	yes
STRIP=

STRIP_CMD=	${LINUXBASE}/usr/bin/strip

.if exists(/usr/bin/brandelf)
BRANDELF?=	/usr/bin/brandelf
.else
BRANDELF?=	brandelf
.endif

BINARY_NAME=	${PORTNAME}${PKGNAMESUFFIX}

post-extract:
	@${GZCAT} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKSRC}/${BINARY_NAME}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/${BINARY_NAME} ${PREFIX}/bin

.include <bsd.port.pre.mk>

pre-install:
.if exists(${STRIP_CMD})
	@${STRIP_CMD} ${WRKSRC}/${BINARY_NAME}
.endif
	@${BRANDELF} -t Linux ${WRKSRC}/${BINARY_NAME}

.include <bsd.port.post.mk>