Lines 6-33
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mldonkey |
8 |
PORTNAME= mldonkey |
9 |
PORTVERSION= 2.5.23 |
9 |
PORTVERSION= 2.5.28.h |
10 |
CATEGORIES+= net |
10 |
CATEGORIES+= net |
11 |
MASTER_SITES= ${MASTER_SITE_SAVANNAH} |
11 |
#MASTER_SITES= ${MASTER_SITE_SAVANNAH} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
#MASTER_SITE_SUBDIR= ${PORTNAME} |
|
|
13 |
MASTER_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/cvs/ |
14 |
PKGNAMESUFFIX= -devel |
13 |
DISTNAME= ${PORTNAME}-${DOWNLOADVERSION} |
15 |
DISTNAME= ${PORTNAME}-${DOWNLOADVERSION} |
14 |
|
16 |
|
15 |
PATCH_SITES= http://www.schraegerpunkt.de/ |
17 |
PATCH_SITES= http://download.berlios.de/pub/mldonkey/spiralvoice/patchpacks/ |
16 |
PATCHFILES= mldonkey-${DOWNLOADVERSION}-${PORTVERSION:C/.+\.//}.patch.gz |
18 |
PATCHFILES= patch_pack${PORTVERSION:C/^.\..\.(.)/\1/:C/\.//}.gz |
17 |
|
19 |
|
18 |
MAINTAINER?= holger@e-gitt.net |
20 |
MAINTAINER?= holger@e-gitt.net |
19 |
COMMENT?= A OCAML client for multiple peer-to-peer networks |
21 |
COMMENT?= A OCAML client for multiple peer-to-peer networks |
20 |
|
22 |
|
21 |
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ |
23 |
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml |
22 |
autoconf213:${PORTSDIR}/devel/autoconf213 |
|
|
23 |
|
24 |
|
24 |
DOWNLOADVERSION=2.5.22 |
25 |
DOWNLOADVERSION=${PORTVERSION:R} |
25 |
|
26 |
|
|
|
27 |
NO_LATEST_LINK= yes |
28 |
CONFLICTS= mldonkey-[0-9]* mldonkey-{core,gui}-[0.9]* |
29 |
|
30 |
USE_BZIP2= yes |
31 |
USE_AUTOCONF_VER= 213 |
32 |
USE_REINPLACE= yes |
26 |
GNU_CONFIGURE= yes |
33 |
GNU_CONFIGURE= yes |
|
|
34 |
USE_GMAKE= yes |
35 |
ALL_TARGET= opt |
36 |
|
27 |
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3 |
37 |
CONFIGURE_ARGS= --enable-pthread --enable-ocamlver=3 |
|
|
38 |
CONFIGURE_WRKSRC= ${WRKSRC}/config |
28 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DOWNLOADVERSION} |
39 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DOWNLOADVERSION} |
29 |
USE_GMAKE= yes |
40 |
|
30 |
ALL_TARGET= depend opt |
41 |
# XXX |
|
|
42 |
# filetp is known to be broken on version 2.5.28* and prior |
43 |
CONFIGURE_ARGS+= --disable-filetp |
31 |
|
44 |
|
32 |
.if defined(WITHOUT_GUI) |
45 |
.if defined(WITHOUT_GUI) |
33 |
.if defined(WITHOUT_CORE) |
46 |
.if defined(WITHOUT_CORE) |
Lines 36-42
Link Here
|
36 |
# have no 'without-' flag |
49 |
# have no 'without-' flag |
37 |
CONFIGURE_ARGS+=--disable-gui |
50 |
CONFIGURE_ARGS+=--disable-gui |
38 |
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment " |
51 |
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment " |
39 |
PKGNAMESUFFIX= -core |
52 |
PKGNAMESUFFIX= -core-devel |
40 |
.else |
53 |
.else |
41 |
PLIST_SUB+= GUI="" |
54 |
PLIST_SUB+= GUI="" |
42 |
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \ |
55 |
BUILD_DEPENDS+= lablgtk:${PORTSDIR}/x11-toolkits/ocaml-lablgtk \ |
Lines 44-50
Link Here
|
44 |
# we don't need lablgtk as RUN dependency, but we need gtk+glib |
57 |
# we don't need lablgtk as RUN dependency, but we need gtk+glib |
45 |
USE_GNOME= gtk12 |
58 |
USE_GNOME= gtk12 |
46 |
.if defined(WITHOUT_CORE) |
59 |
.if defined(WITHOUT_CORE) |
47 |
PKGNAMESUFFIX= -gui |
60 |
PKGNAMESUFFIX= -gui-devel |
48 |
PLIST_SUB+= CORE="@comment " GUICORE="@comment " |
61 |
PLIST_SUB+= CORE="@comment " GUICORE="@comment " |
49 |
.else |
62 |
.else |
50 |
PLIST_SUB+= CORE="" GUICORE="" |
63 |
PLIST_SUB+= CORE="" GUICORE="" |
Lines 53-58
Link Here
|
53 |
|
66 |
|
54 |
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \ |
67 |
DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt FAQ.html \ |
55 |
Install.txt Readme.txt Todo.txt ed2k_links.txt |
68 |
Install.txt Readme.txt Todo.txt ed2k_links.txt |
|
|
69 |
PORTDOCS= ${DOCFILES} |
56 |
|
70 |
|
57 |
.include <bsd.port.pre.mk> |
71 |
.include <bsd.port.pre.mk> |
58 |
|
72 |
|
Lines 62-73
Link Here
|
62 |
@${ECHO_MSG} "You can disable the CORE by defining WITHOUT_CORE." |
76 |
@${ECHO_MSG} "You can disable the CORE by defining WITHOUT_CORE." |
63 |
.endif |
77 |
.endif |
64 |
|
78 |
|
65 |
pre-configure: |
|
|
66 |
@cd ${WRKSRC}/config && ${AUTOCONF} |
67 |
|
68 |
post-patch: |
79 |
post-patch: |
69 |
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \ |
80 |
@${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \ |
70 |
${WRKDIR}/wrapper.sh |
81 |
${WRKDIR}/wrapper.sh |
|
|
82 |
@${REINPLACE_CMD} -E \ |
83 |
-e 's|%%AUTOCONF%%|${AUTOCONF}|' \ |
84 |
${BUILD_WRKSRC}/${MAKEFILE} |
71 |
|
85 |
|
72 |
do-install: |
86 |
do-install: |
73 |
.ifndef(WITHOUT_CORE) |
87 |
.ifndef(WITHOUT_CORE) |