Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2013 05:48:50 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/175568: ftp/wxdfast: Support CFLAGS/CXXFLAGS properly
Message-ID:  <20130126054850.143b39a17771bc4a1ab4c98a@yahoo.com>
Resent-Message-ID: <201301252110.r0PLA1Ee074895@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175568
>Category:       ports
>Synopsis:       ftp/wxdfast: Support CFLAGS/CXXFLAGS properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 25 21:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/CXXFLAGS properly
- Fix build on 8-stable or later
- Fix build with wxWidgets 2.8
- Add LICENSE
- Add MAKE_JOBS_SAFE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/ftp/wxdfast/Makefile ftp/wxdfast/Makefile
--- /usr/ports/ftp/wxdfast/Makefile	2012-11-08 07:13:14.000000000 +0900
+++ ftp/wxdfast/Makefile	2013-01-24 01:53:07.000000000 +0900
@@ -1,38 +1,39 @@
-# New ports collection makefile for:	wxdfast
-# Date created:				2006-11-07
-# Whom:					alepulver
-#
+# Created by: alepulver
 # $FreeBSD: head/ftp/wxdfast/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	wxdfast
 PORTVERSION=	0.6.0
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	ftp www
 MASTER_SITES=	SF/dfast/wxDownload%20Fast/${PORTVERSION}
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A great multithreaded and multi-platform download manager
+COMMENT=	Multithread and multi-platform download manager
 
-USE_GETTEXT=	yes
-USE_WX=		2.6
+LICENSE=	GPLv2
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+USE_WX=		2.6+
 WX_CONF_ARGS=	relative
 WX_UNICODE=	yes
-GNU_CONFIGURE=	yes
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_GETTEXT=	yes
+USE_AUTOTOOLS=	aclocal automake autoconf libtoolize
+ACLOCAL_ARGS=	-I ${LOCALBASE}/share/locale
+AUTOMAKE_ARGS=	--add-missing --copy --force-missing --foreign
+LIBTOOLIZE_ARGS=--copy --force
+CONFIGURE_ENV=	WXRC="${WXRC_CMD}"
+MAKE_JOBS_SAFE=	yes
 
 MAN1=		wxdfast.1
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|wxrc|${WXRC_CMD:T}|' \
-		${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-	@${REINPLACE_CMD} -e 's|pt_BR||' ${WRKSRC}/man/Makefile.in
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 800000 && ${ARCH} == i386
-BROKEN=	Does not compile
-.endif
+	@${REINPLACE_CMD} -e \
+		's|pt_BR||' ${WRKSRC}/man/Makefile.am
+	@${REINPLACE_CMD} -e \
+		's|^CFLAGS |AM_CFLAGS | ; \
+		 s|^CXXFLAGS |AM_CXXFLAGS | ; \
+		 s|-O2 ||' ${WRKSRC}/src/Makefile.am
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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