Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2013 14:02:51 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336908 - in head/ftp/multiget: . files
Message-ID:  <201312191402.rBJE2p8I047356@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Dec 19 14:02:50 2013
New Revision: 336908
URL: http://svnweb.freebsd.org/changeset/ports/336908

Log:
  - Fix build with clang
  - Add desktop entry file
  - Support staging
  
  PR:		ports/184814
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Added:
  head/ftp/multiget/files/
  head/ftp/multiget/files/patch-common.cpp   (contents, props changed)
  head/ftp/multiget/files/patch-mgftpbase.cpp   (contents, props changed)
Modified:
  head/ftp/multiget/Makefile   (contents, props changed)

Modified: head/ftp/multiget/Makefile
==============================================================================
--- head/ftp/multiget/Makefile	Thu Dec 19 13:53:30 2013	(r336907)
+++ head/ftp/multiget/Makefile	Thu Dec 19 14:02:50 2013	(r336908)
@@ -3,29 +3,40 @@
 
 PORTNAME=	multiget
 PORTVERSION=	1.1.3
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	ftp www
 MASTER_SITES=	SF/${PORTNAME}/OldFiles
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	An http/ftp downloader with a nice GUI
+COMMENT=	HTTP/FTP downloader with a nice GUI
 
+WRKSRC_SUBDIR=	src
+
+USES=		dos2unix
 USE_WX=		2.6+
 MAKEFILE=	makefile
 ALL_TARGET=	MultiGet
-WRKSRC=		${WRKDIR}/${DISTNAME}/src
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} share/pixmaps/MultiGet.png
+
+DESKTOP_ENTRIES="MultiGet" "" "${PREFIX}/share/pixmaps/MultiGet.png" \
+		"${PORTNAME}" "" ""
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e \
-		's|g++|${CXX}|; \
-		 s|\(CFLAGS\) =|\1 +=|; \
-		 s|wx-config|${WX_CONFIG}|' \
+		's|$$(CC)|$$(CXX)| ; \
+		 s|$$(CFLAGS)|$$(CXXFLAGS)| ; \
+		 s|^CC =|CXX ?=| ; \
+		 s|^CFLAGS =|CXXFLAGS +=| ; \
+		 s| -O2 | | ; \
+		 s| -s | | ; \
+		 s|wx-config|$${WX_CONFIG}|' \
 		 ${WRKSRC}/${MAKEFILE}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/MultiGet ${PREFIX}/bin/${PORTNAME}
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} MultiGet \
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME})
+	(cd ${WRKSRC}/.. && ${INSTALL_DATA} MultiGet.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps)
 
 .include <bsd.port.mk>

Added: head/ftp/multiget/files/patch-common.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ftp/multiget/files/patch-common.cpp	Thu Dec 19 14:02:50 2013	(r336908)
@@ -0,0 +1,11 @@
+--- common.cpp.orig
++++ common.cpp
+@@ -22,6 +22,8 @@
+  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+  */
+ 
++#include <cstdlib>
++
+ #include "common.h"
+ #include "speedctrl.h"
+ #include "mirroradmin.h"

Added: head/ftp/multiget/files/patch-mgftpbase.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ftp/multiget/files/patch-mgftpbase.cpp	Thu Dec 19 14:02:50 2013	(r336908)
@@ -0,0 +1,11 @@
+--- mgftpbase.cpp.orig
++++ mgftpbase.cpp
+@@ -22,6 +22,8 @@
+  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+  */
+ 
++#include <cstdlib>
++
+ #ifdef WIN32
+ #include <winsock2.h>
+ #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312191402.rBJE2p8I047356>