Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2003 02:03:50 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47739: Update port: ftp/mget
Message-ID:  <20030201020350.5bc5aaab.tkato@prontomail.com>

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

>Number:         47739
>Category:       ports
>Synopsis:       Update port: ftp/mget
>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 31 09:10:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Conditionalize libgnugetopt dependencies

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/ftp/mget/Makefile ftp/mget/Makefile
--- /usr/ports/ftp/mget/Makefile	Mon Nov 11 18:59:32 2002
+++ ftp/mget/Makefile	Fri Jan 24 09:45:43 2003
@@ -13,11 +13,15 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-
 CFLAGS+=	-DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
-		-I${LOCALBASE}/include ${PTHREAD_CFLAGS:S/"//g}
-LDFLAGS=	-L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS:S/"//g}
+		${PTHREAD_CFLAGS:S/"//g}
+LDFLAGS=	${PTHREAD_LIBS:S/"//g}
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+CFLAGS+=	-I${LOCALBASE}/include 
+LDFLAGS+=	-L${LOCALBASE}/lib -lgnugetopt 
+.endif
 
 do-build:
 	cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS}
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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