summaryrefslogtreecommitdiff
path: root/net/mldonkey/Makefile.common
blob: a4e4fe4331be7c25a46106f5f3e5a2ef7fc5cc40 (plain)
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
# $NetBSD: Makefile.common,v 1.2 2005/02/04 22:33:34 adrianp Exp $
#

DISTNAME=	mldonkey-2.5.28
CATEGORIES=	net
MASTER_SITES=	http://www.opendarwin.org/~mww/files/
EXTRACT_SUFX=        .tar.bz2

MAINTAINER=	wiz@NetBSD.org
HOMEPAGE=	http://www.nongnu.org/mldonkey/
COMMENT=	Free peer-to-peer client with eDonkey support and more

DISTINFO_FILE=		${.CURDIR}/../../net/mldonkey/distinfo
PATCHDIR=		${.CURDIR}/../../net/mldonkey/patches

GNU_CONFIGURE=		yes
USE_BUILDLINK3=		yes
USE_GNU_TOOLS+=		make
USE_PERL5=		build

CONFIGURE_ENV+=		WGET=""
CONFIGURE_ENV+=		ac_cv_prog_WGET="no"
MAKE_ENV+=		BUILDLINK_PREFIX.pthread=${BUILDLINK_PREFIX.pthread}
CONFIGURE_ARGS+=	--enable-pthread-lib

UNLIMIT_RESOURCES=	stacksize

PRINT_PLIST_AWK+=	/^@dirrm libexec\/mldonkey$$/ \
				{ print "@unexec $${RMDIR} %D/libexec/mldonkey"\
				  " >/dev/null 2>&1 || $${TRUE}"; next }

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"

post-extract:
	${CHMOD} 0644 ${WRKSRC}/Makefile

.include "../../mk/pthread.buildlink3.mk"