From 71b8934e32a67a5b445b0bcb08ca55f70d696841 Mon Sep 17 00:00:00 2001 From: mezz Date: Mon, 6 Aug 2007 17:23:57 +0000 Subject: share/gnome/ -> share/. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9356 df743ca5-7f9a-e211-a948-0013205c9059 --- net-p2p/xmule/Makefile | 128 +++++++++++++++++++++++ net-p2p/xmule/distinfo | 3 + net-p2p/xmule/files/patch-Makefile.in | 16 +++ net-p2p/xmule/files/patch-docs::ED2K-Links.HOWTO | 44 ++++++++ net-p2p/xmule/pkg-descr | 16 +++ net-p2p/xmule/pkg-plist | 14 +++ 6 files changed, 221 insertions(+) create mode 100644 net-p2p/xmule/Makefile create mode 100644 net-p2p/xmule/distinfo create mode 100644 net-p2p/xmule/files/patch-Makefile.in create mode 100644 net-p2p/xmule/files/patch-docs::ED2K-Links.HOWTO create mode 100644 net-p2p/xmule/pkg-descr create mode 100644 net-p2p/xmule/pkg-plist (limited to 'net-p2p/xmule') diff --git a/net-p2p/xmule/Makefile b/net-p2p/xmule/Makefile new file mode 100644 index 000000000..e4cc46459 --- /dev/null +++ b/net-p2p/xmule/Makefile @@ -0,0 +1,128 @@ +# New ports collection makefile for: xmule +# Date created: Tue Mar 11 05:06:20 UTC 2003 +# Whom: Mario Sergio Fujikawa Ferreira +# +# $FreeBSD$ +# + +PORTNAME= xmule +PORTVERSION= 1.12.2 +PORTREVISION= 6 +CATEGORIES= net-p2p +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +#MASTER_SITES= http://download.berlios.de/%SUBDIR%/ +MASTER_SITE_SUBDIR= xmule + +MAINTAINER= lioux@FreeBSD.org +COMMENT= Port of eMule eDonkey P2P client using wxWindows class library + +BUILD_DEPENDS= ${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp +LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 +RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget + +USE_GETTEXT= yes +USE_XLIB= yes +USE_BZIP2= yes +USE_GNOME= gnomehier \ + gnomehack \ + gnomeprefix +USE_GMAKE= yes +USE_WX= 2.6 +WX_CONF_ARGS= absolute +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --without-included-gettext \ + --with-cryptopp-prefix=${LOCALBASE} \ + --with-gtk-prefix=${LOCALBASE} \ + --with-libiconv-prefix=${LOCALBASE} \ + --with-libintl-prefix=${LOCALBASE} \ + --enable-debug +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib" +MAKE_ARGS= -e +MAKE_ENV= CC="${CC}" CXX="${CXX}" + +# for debugging purposes +STRIP= + +FILES_ATOLL_PATCH= src/Preferences.cpp \ + src/otherfunctions.cpp +FILES_STDINT_PATCH= \ + intl/loadmsgcat.c \ + src/ClientList.h \ + src/sockets.h + +.include + +.if ${OSVERSION} < 500000 +BROKEN= "Does not compile on FreeBSD 4.x" +.endif + +.if ${ARCH} == "sparc64" +BROKEN= "Does not compile on sparc64" +.endif + +post-patch: +# it works for FreeBSD as well + @${REINPLACE_CMD} -E \ + -e 's|(Linux)|FreeBSD/\1|' \ + ${WRKSRC}/src/*.cpp +# update documentation with correct prefix + @${REINPLACE_CMD} -E \ + -e 's|/usr/X11R6/(bin/${PORTNAME}-ed2k-handler)|${PREFIX}/\1|' \ + ${WRKSRC}/docs/ED2K-Links.HOWTO +# use BSD_INSTALL_* macros + @${REINPLACE_CMD} -E \ + -e 's|cp -f|${INSTALL_DATA}|' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -E \ + -e 's|cp -p|${INSTALL_DATA}|' \ + ${WRKSRC}/po/Makefile.in.in +# fix mkinstalldirs location +# uphold CXX{,FLAGS} + ${FIND} ${WRKSRC} -name "Makefile*" -type f -print0 | \ + ${XARGS} -0 \ + ${REINPLACE_CMD} -E \ + -e 's,^(MKINSTALLDIRS|mkinstalldirs).*$$,\1=${INSTALL_WRKSRC}/mkinstalldirs,' \ + -e 's|g\+\+|${CXX}|' \ + -e 's|-O3|${CXXFLAGS}|' +# use correct FreeBSD atoll() prototype +.for file in ${FILES_ATOLL_PATCH} + @${REINPLACE_CMD} -E \ + -e 's|atoll[[:space:]]*\([[:space:]]*char|atoll(const char|' \ + ${WRKSRC}/${file} +.endfor +# stdint.h -> inttypes.h +.for file in ${FILES_STDINT_PATCH} + @${REINPLACE_CMD} -E \ + -e 's|||' \ + ${WRKSRC}/${file} +.endfor +# wx-config -> ${WX_CONFIG} + @${REINPLACE_CMD} -E \ + -e 's|wx-config|${WX_CONFIG}|' \ + ${WRKSRC}/src/xmule.make.in + +pre-configure: + @${FIND} ${WRKSRC} -type f -name "Makefile.in" | \ + ${XARGS} -x -n 10 \ + ${REINPLACE_CMD} -E \ + -e 's!^(AUTOCONF|AUTOHEADER|AUTOMAKE|ACLOCAL).*$$!\1=${TRUE}!' + @${REINPLACE_CMD} -E \ + -e 's|^(CXXFLAGS.*)$$|\1 -I${LOCALBASE}/include|' \ + ${WRKSRC}/xLibs/xrc/xrc.make.in + +pre-install: + @${CHMOD} a=rx ${WRKSRC}/mkinstalldirs + +post-install: +# install xmule binary + @${INSTALL_PROGRAM} \ + ${WRKSRC}/${PORTNAME} \ + ${PREFIX}/bin +# do not install a generic named ed2k binary +# install it under a more specific name + @${INSTALL_PROGRAM} \ + ${WRKSRC}/ed2k.xmule-2.0 \ + ${PREFIX}/bin/${PORTNAME}-ed2k-handler + +.include diff --git a/net-p2p/xmule/distinfo b/net-p2p/xmule/distinfo new file mode 100644 index 000000000..d90697f27 --- /dev/null +++ b/net-p2p/xmule/distinfo @@ -0,0 +1,3 @@ +MD5 (xmule-1.12.2.tar.bz2) = 372c02793f8282312a1370443420fda7 +SHA256 (xmule-1.12.2.tar.bz2) = e53b0f0d8d2fac630921c5bf82aedf298ceb48fb1b8a83b5361a81a272be1af5 +SIZE (xmule-1.12.2.tar.bz2) = 1290859 diff --git a/net-p2p/xmule/files/patch-Makefile.in b/net-p2p/xmule/files/patch-Makefile.in new file mode 100644 index 000000000..0d5c82471 --- /dev/null +++ b/net-p2p/xmule/files/patch-Makefile.in @@ -0,0 +1,16 @@ +--- Makefile.in.orig Fri Dec 9 19:22:49 2005 ++++ Makefile.in Fri Dec 9 19:23:02 2005 +@@ -268,10 +268,9 @@ + @rm -rf Compilation.flags Makefile aclocal.m4 autom4te.cache config.h* config.l* config.st* config.rp* configure depcomp intl + + install: all +- @mkdir -p @bindir@ +- @mkdir -p @datadir@/{applications,locale,icons} +- @cp -f ed2k.xmule-2.0 xmule @bindir@ +- @cp -f ed2k.xmule-2.0 @bindir@/ed2k ++ @mkdir -p @datadir@/applications ++ @mkdir -p @datadir@/locale ++ @mkdir -p @datadir@/pixmaps + @cd po && $(MAKE) install + @cp -f xmule.desktop @datadir@/applications + @cp -f xmule.xpm @datadir@/icons diff --git a/net-p2p/xmule/files/patch-docs::ED2K-Links.HOWTO b/net-p2p/xmule/files/patch-docs::ED2K-Links.HOWTO new file mode 100644 index 000000000..0bc6dcc5b --- /dev/null +++ b/net-p2p/xmule/files/patch-docs::ED2K-Links.HOWTO @@ -0,0 +1,44 @@ +--- docs/ED2K-Links.HOWTO.orig Thu Mar 4 12:46:20 2004 ++++ docs/ED2K-Links.HOWTO Tue Mar 9 21:21:16 2004 +@@ -14,7 +14,7 @@ + the mentioned directory: + + [Protocol] +- exec=/usr/local/bin/ed2k "%u" ++ exec=/usr/X11R6/bin/xmule-ed2k-handler "%u" + protocol=ed2k + input=none + output=none +@@ -39,12 +39,12 @@ + create xmule_submit.sh with this content: + + #!/bin/sh +- /usr/local/bin/ed2k "ed2k://$1"; ++ xmule-ed2k-handler "ed2k://$1"; + + now edit (as root) /etc/opera6rc or as non-root ~/.opera/opera6.ini: + + [Trusted Applications] +- ed2k=/usr/local/bin/xmule_submit.sh ++ ed2k=/usr/X11R6/bin/xmule_submit.sh + + [User Prefs] + TrustedExternalURLProtocols=ed2k +@@ -59,7 +59,7 @@ + TrustedExternalURLProtocols=ed2k + + in [Trusted Applications] +- ed2k=/path/to/ed2k ed2k://%u ++ ed2k=/usr/X11R6/bin/xmule-ed2k-handler ed2k://%u + + (Credits: ender) + +@@ -96,7 +96,7 @@ + + -create a file called "ed2k.cmd" with the following content: + +- ed2k ed2k:$URI_DATA ++ xmule-ed2k-handler ed2k:$URI_DATA + + [do this with your favorite text-editor, the file doesn't have to be executable] + diff --git a/net-p2p/xmule/pkg-descr b/net-p2p/xmule/pkg-descr new file mode 100644 index 000000000..8a46ef1bd --- /dev/null +++ b/net-p2p/xmule/pkg-descr @@ -0,0 +1,16 @@ +[ from author's website ] + +Port of eMule eDonkey P2P client using wxWindows class library. + +Features + +* Download/Upload works +* You can search and add ed2k-links +* Statistics +* Shared files tab works +* Messages tab is now implemented +* You can manage friends +* xMule can be minimized to systray +* You can set nearly all preferences + +WWW: http://www.xmule.ws/ diff --git a/net-p2p/xmule/pkg-plist b/net-p2p/xmule/pkg-plist new file mode 100644 index 000000000..a868ca572 --- /dev/null +++ b/net-p2p/xmule/pkg-plist @@ -0,0 +1,14 @@ +bin/xmule +bin/xmule-ed2k-handler +share/applications/xmule.desktop +share/icons/xmule.xpm +share/locale/de/LC_MESSAGES/xmule.mo +share/locale/ee/LC_MESSAGES/xmule.mo +share/locale/es/LC_MESSAGES/xmule.mo +share/locale/es_MX/LC_MESSAGES/xmule.mo +share/locale/fr/LC_MESSAGES/xmule.mo +share/locale/it/LC_MESSAGES/xmule.mo +share/locale/ko/LC_MESSAGES/xmule.mo +share/locale/pl/LC_MESSAGES/xmule.mo +share/locale/tr/LC_MESSAGES/xmule.mo +@dirrmtry share/icons -- cgit v1.2.3