ports/177916: www/aria: Fix build
KATO Tsuguru
tkato432 at yahoo.com
Wed Apr 17 18:10:03 UTC 2013
>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 at FreeBSD.org>
-#
+# Created by: Yukihiro Nakai <nakai at 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 at 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:
More information about the freebsd-ports-bugs
mailing list