Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 2013 02:43:20 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/177916: www/aria: Fix build
Message-ID:  <20130418024320.62d520f7775f3f2a2678aadf@yahoo.com>
Resent-Message-ID: <201304171810.r3HIA2T2003596@freefall.freebsd.org>

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

>Number:         177916
>Category:       ports
>Synopsis:       www/aria: Fix build
>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:   Wed Apr 17 18:10:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/www/aria/Makefile www/aria/Makefile
--- /usr/ports/www/aria/Makefile	2013-02-28 13:19:49.000000000 +0900
+++ www/aria/Makefile	2013-04-04 19:16:13.000000000 +0900
@@ -1,9 +1,5 @@
-# New ports collection makefile for:   aria
-# Date created:        30 March 2001
-# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
-#
+# Created by: Yukihiro Nakai <nakai@FreeBSD.org>
 # $FreeBSD: head/www/aria/Makefile 313078 2013-02-28 03:38:38Z miwi $
-#
 
 PORTNAME=	aria
 PORTVERSION=	1.0.0
@@ -14,25 +10,37 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Yet another download tool
 
-MAKE_JOBS_SAFE=  yes
-BROKEN=		fails to build
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	NLS DOCS
 
 USE_BZIP2=	yes
-.if !defined(WITHOUT_NLS)
+USE_GNOME=	gtk12
+USE_OPENSSL=	yes
+USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
+PORTDOCS=	README README.euc
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
 .else
 CONFIGURE_ARGS+=	--disable-nls
 PLIST_SUB+=	NLS="@comment "
 .endif
-USE_GNOME=	gtk12
-USE_OPENSSL=	yes
-USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
-PORTDOCS=	README README.euc
 
-CPPFLAGS+=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT
-LDFLAGS+=	-L${LOCALBASE}/lib
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
+BROKEN=		Does not compile on ia64, powerpc, or sparc64: just hangs
+.endif
 
 post-extract:
 	@${RM} -f ${WRKSRC}/src/getopt*
@@ -49,17 +57,13 @@
 		${WRKSRC}/src/Makefile.in
 	@${REINPLACE_CMD} -e 's|"getopt.h"|<getopt.h>|g' \
 		${WRKSRC}/src/main.cc
+	@${REINPLACE_CMD} -e 's|\*infile|infile|g ; \
+		s|(gzFile \*)||' ${WRKSRC}/src/RetrieveHTTP.cc
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${INSTALL} -d ${DOCSDIR}
 	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN=		Does not compile on ia64, powerpc, or sparc64: just hangs
-.endif
-
 .include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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