blob: beb7b9c88b2eff8aa4d6af3e717ef532724ef452 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.13 2004/01/20 12:22:20 agc Exp $
#
DISTNAME= mldonkey-${VER}.sources
VER= 2.5-3
PKGNAME= mldonkey-${VER:S/-/./}
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://savannah.nongnu.org/download/mldonkey/release-${VER}/official/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.nongnu.org/mldonkey/
COMMENT= Free peer-to-peer client with eDonkey support and more
WRKSRC= ${WRKDIR}/mldonkey-${VER}
GNU_CONFIGURE= yes
USE_BUILDLINK2= yes
USE_GMAKE= yes
USE_PERL5= build
MLDONKEY_SUBST= PREFIX="${PREFIX}"
MLDONKEY_SUBST_SED= ${MLDONKEY_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
CONFIGURE_ENV+= WGET=""
CONFIGURE_ENV+= ac_cv_prog_WGET="no"
MAKE_ENV+= BUILDLINK_PREFIX.pthread=${BUILDLINK_PREFIX.pthread}
CONFIGURE_ARGS+= --enable-pthread-lib
pre-build:
${SED} ${MLDONKEY_SUBST_SED} ${FILESDIR}/mldonkey.sh > \
${WRKDIR}/mldonkey.sh
${CHMOD} +x ${WRKDIR}/mldonkey.sh
do-install:
( cd ${WRKDIR} && \
${INSTALL_SCRIPT} mldonkey.sh ${PREFIX}/bin/mldonkey \
)
( cd ${WRKSRC} && \
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlchat ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlguistarter ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlgui ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlim ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlnet ${PREFIX}/libexec/mldonkey && \
${INSTALL_PROGRAM} mlnet+gui ${PREFIX}/libexec/mldonkey \
)
.include "../../archivers/bzip2/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../lang/ocaml/buildlink2.mk"
.include "../../x11/lablgtk/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|