aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/edonkey-tool-hash/Makefile
blob: 85a4cdefba5f1df91b60a5cb95d3895d40bbe5f3 (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
# New ports collection makefile for:    edonkey hash tool
# Date created:             Wed Feb 20 18:03:49 BRT 2002
# Whom:         Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   edonkey
PORTVERSION=    0.4.0
CATEGORIES= net-p2p
MASTER_SITES=   SF/ed2k-tools/ed2k_hash/${PORTVERSION}
PKGNAMESUFFIX=  -tool-hash
DISTNAME=   ed2k_hash-${PORTVERSION}

MAINTAINER= lioux@FreeBSD.org
COMMENT=    Both calculates 'eDonkey/Overnet hashes' producing ed2k:// file links

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

PLIST_FILES=    bin/edonkey-tool-hash
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

WRKSRC= ${WRKDIR}/ed2k_hash-${PORTVERSION}

post-patch:
# respect CFLAGS
    @${REINPLACE_CMD} -E -e \
        's|-O2||' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}

do-install:
# uphold POLA, do not change binary name
    @${INSTALL_PROGRAM} ${WRKSRC}/ed2k_hash/ed2k_hash \
        ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}

.include <bsd.port.mk>