aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/mldonkey
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2014-07-21 08:07:26 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2014-07-21 08:07:26 +0000
commit9b3621b9e4622efaac85a97e21d91c62fa4d336a (patch)
treedb1a55098698515f4350b7004a80a9ae9c49e43c /net-p2p/mldonkey
parent91a4e7ee02b0b8f28f7a217b16518179d5b3acc1 (diff)
downloadports-9b3621b9e4622efaac85a97e21d91c62fa4d336a.tar.gz
ports-9b3621b9e4622efaac85a97e21d91c62fa4d336a.zip
Notes
Diffstat (limited to 'net-p2p/mldonkey')
-rw-r--r--net-p2p/mldonkey/Makefile81
-rw-r--r--net-p2p/mldonkey/distinfo4
-rw-r--r--net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h11
3 files changed, 40 insertions, 56 deletions
diff --git a/net-p2p/mldonkey/Makefile b/net-p2p/mldonkey/Makefile
index 00522ef0594a..c1fbe14f872f 100644
--- a/net-p2p/mldonkey/Makefile
+++ b/net-p2p/mldonkey/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= mldonkey
-PORTVERSION= 3.1.3
-PORTREVISION= 1
+PORTVERSION= 3.1.5
CATEGORIES+= net-p2p
MASTER_SITES= SF
@@ -36,74 +35,70 @@ SUB_FILES= pkg-message
###
## Options activation
###
-.if defined(WITHOUT_GUI) && defined(WITHOUT_CORE)
-IGNORE= cannot install: you defined both WITHOUT_GUI and WITHOUT_CORE. I think I'll do nothing
-.endif
-.if !(defined(WITHOUT_GUI) || defined(WITHOUT_CORE))
+OPTIONS_DEFINE= GD DOCS EXAMPLES
+OPTIONS_DEFAULT=CORE GD GUI
+OPTIONS_MULTI= CLIENT
+OPTIONS_MULTI_CLIENT=CORE GUI
+CORE_DESC= Client 'core' support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MCORE}
CONFLICTS+= mldonkey-core-[0.9]*
CONFLICTS+= mldonkey-gui-[0.9]*
PLIST_SUB+= CORE="" GUI="" GUICORE=""
-.else # (defined(WITHOUT_GUI) || defined(WITHOUT_CORE))
+.else # (${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MCORE})
-. if defined(WITHOUT_GUI)
+. if !${PORT_OPTIONS:MGUI}
PKGNAMESUFFIX= -core
CONFLICTS+= mldonkey-gui-[0.9]*
CONFIGURE_ARGS+=--disable-gui
PLIST_SUB+= CORE="" GUI="@comment " GUICORE="@comment "
-. endif # defined(WITHOUT_GUI)
+. endif # !${PORT_OPTIONS:MGUI}
-. if defined(WITHOUT_CORE)
+. if !${PORT_OPTIONS:MCORE}
PKGNAMESUFFIX= -gui
CONFLICTS+= mldonkey-core-[0.9]*
PLIST_SUB+= CORE="@comment " GUI="" GUICORE="@comment "
-. endif # defined(WITHOUT_CORE)
+. endif # !${PORT_OPTIONS:MCORE}
-.endif # !(defined(WITHOUT_GUI) || defined(WITHOUT_CORE))
+.endif # ${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MCORE}
-.if !defined(WITHOUT_GUI)
+.if ${PORT_OPTIONS:MGUI}
BUILD_DEPENDS+= ${LOCALBASE}/lib/ocaml/site-lib/lablgtk2/lablrsvg.cma:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
LIB_DEPENDS+= librsvg-2.so:${PORTSDIR}/graphics/librsvg2
CONFIGURE_ARGS+=--enable-gui=newgui2
# we don't need lablgtk as RUN dependency, but we need gtk+glib
USE_GNOME= gtk20
-.endif # !defined(WITHOUT_GUI)
+.endif # ${PORT_OPTIONS:MGUI}
-.if !defined(WITHOUT_CORE)
+.if ${PORT_OPTIONS:MCORE}
USE_RC_SUBR= mlnet
SUB_LIST+= SH=${SH:Q}
-. if !defined(WITHOUT_GD)
+. if ${PORT_OPTIONS:MGD}
LIB_DEPENDS+= libgd.so:${PORTSDIR}/graphics/gd
. else
CONFIGURE_ARGS+=--disable-gd
. endif
.endif
-DOCFILES= Authors.txt Bugs.txt ChangeLog Developers.txt \
+PORTDOCS= Authors.txt Bugs.txt ChangeLog Developers.txt \
Install.txt Todo.txt ed2k_links.txt
-PORTDOCS= ${DOCFILES}
# build additional tools
ALL_TARGET+= \
mld_hash
-NO_STAGE= yes
.include <bsd.port.pre.mk>
-pre-everything::
-.if !defined(WITHOUT_GUI) && !defined(WITHOUT_CORE)
- @${ECHO_MSG} "You can disable the GUI by defining WITHOUT_GUI."
- @${ECHO_MSG} "You can disable the CORE by defining WITHOUT_CORE."
- @${ECHO_MSG}
-.endif
-
post-patch:
@${SED} \
-e "s|%%PREFIX%%|${PREFIX}|" \
@@ -133,27 +128,27 @@ pre-configure:
@cd ${WRKSRC}/config && ${AUTOCONF}
do-install:
-.ifndef(WITHOUT_CORE)
- @${INSTALL_PROGRAM} ${WRKSRC}/mld_hash ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${PREFIX}/bin/mlnet-real
- @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/mlnet
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- @${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MCORE}
+ ${INSTALL_PROGRAM} ${WRKSRC}/mld_hash ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mlnet ${STAGEDIR}${PREFIX}/bin/mlnet-real
+ ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/mlnet
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${FILESDIR}/kill_mldonkey ${STAGEDIR}${EXAMPLESDIR}
.endif
.endif
-.ifndef(WITHOUT_GUI)
- @${INSTALL_PROGRAM} ${WRKSRC}/mlgui ${PREFIX}/bin
+.if ${PORT_OPTIONS:MGUI}
+ ${INSTALL_PROGRAM} ${WRKSRC}/mlgui ${STAGEDIR}${PREFIX}/bin
.endif
-.ifndef(WITHOUT_CORE && WITHOUT_GUI)
- @${INSTALL_SCRIPT} ${WRKSRC}/distrib/mldonkey_previewer ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/mlguistarter ${PREFIX}/bin
- @${INSTALL_PROGRAM} ${WRKSRC}/mlnet+gui ${PREFIX}/bin
+.if ${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MCORE}
+ ${INSTALL_SCRIPT} ${WRKSRC}/distrib/mldonkey_previewer ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mlguistarter ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/mlnet+gui ${STAGEDIR}${PREFIX}/bin
.endif
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for _file in ${DOCFILES}
- @${INSTALL_DATA} ${WRKSRC}/distrib/${_file} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for _file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/distrib/${_file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/net-p2p/mldonkey/distinfo b/net-p2p/mldonkey/distinfo
index 7949e173684d..8d2db7c64632 100644
--- a/net-p2p/mldonkey/distinfo
+++ b/net-p2p/mldonkey/distinfo
@@ -1,2 +1,2 @@
-SHA256 (mldonkey-3.1.3.tar.bz2) = 7c259f9f41cc12899045710ddce02e6d25962b2cb5c22f9cf58af0483f06d9e2
-SIZE (mldonkey-3.1.3.tar.bz2) = 2848964
+SHA256 (mldonkey-3.1.5.tar.bz2) = 74f9d4bcc72356aa28d0812767ef5b9daa03efc5d1ddabf56447dc04969911cb
+SIZE (mldonkey-3.1.5.tar.bz2) = 2847382
diff --git a/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h b/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
deleted file mode 100644
index bf8afe9faec9..000000000000
--- a/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/utils/lib/CryptoPP.h.orig
-+++ src/utils/lib/CryptoPP.h
-@@ -274,7 +274,7 @@
- // CodeWarrior defines _MSC_VER
- #if !defined(CRYPTOPP_DISABLE_X86ASM) && ((defined(_MSC_VER) && !defined(__MWERKS__) && defined(_M_IX86)) || (defined(__GNUC__) && defined(__i386__)))
- // The x86 version of MacOSX fails when asm is enabled.
-- #if !defined(__i386__) || !defined(__APPLE__)
-+ #if !defined(__APPLE__) && !defined(__clang__)
- #define CRYPTOPP_X86ASM_AVAILABLE
- #endif
- #endif