blob: e9210847a6d2f9359ad997a94a87e14177b979d7 (
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
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= cdonkey
PORTVERSION= 0.9.0
PORTREVISION= 2
CATEGORIES= net-p2p
MASTER_SITES= http://www.sourcefiles.org/Internet/File_Sharing/Edonkey/
DISTNAME= cDonkey-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Open and free core client for the eDonkey protocol
WRKSRC= ${WRKDIR}/cDonkey-${PORTVERSION}
USE_BZIP2= yes
USE_BDB= 41
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ARGS= --with-berkeley-db="${BDB_INCLUDE_DIR}:${BDB_LIB_DIR}"
PLIST_FILES= bin/cDonkey
post-patch:
@${REINPLACE_CMD} -e \
's|-ldb|-l${BDB_LIB_NAME}|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|-fno-for-scope||' ${WRKSRC}/Makefile.in
.for i in donkey.cpp donkey.h
@${REINPLACE_CMD} -e \
's|/etc/|${LOCALBASE}/etc/|' ${WRKSRC}/${i}
.endfor
.include <bsd.port.mk>
|