aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/ed2k/Makefile
blob: 40d6e5824c804f768cfbd791a7b2c2fd2407e0ef (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
# $FreeBSD$

PORTNAME=   ed2k
PORTVERSION=    1.4
CATEGORIES= net-p2p
MASTER_SITES=   http://www.sdalu.com/download/software/tools/
PKGNAMESUFFIX=  -hash${OPENSSLSUFFIX}${PKGNAMESUFFIX2}
DISTNAME=   ed2k.c
EXTRACT_SUFX=
EXTRACT_ONLY=

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Calculates 'eMule' hashes or producing ed2k:// file links

CONFLICTS=  amule-*
NO_STAGE=   yes

NO_WRKSUBDIR=   yes
MAKEFILE=   /dev/null
ALL_TARGET= ed2k
PLIST_FILES=    bin/ed2k

.if defined(WITHOUT_OPENSSL)
OPENSSLSUFFIX=  -rsa
CFLAGS+=    -DWITH_RSA
.else
OPENSSLSUFFIX=  -openssl
USE_OPENSSL=    yes
LDLIBS+=    -lmd
.endif

MAKE_ARGS+= CFLAGS="${CFLAGS}"
MAKE_ENV+=  LDLIBS="${LDLIBS}"

post-extract:
    ${CP} -p ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/

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

.include <bsd.port.mk>