Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 05:30:53 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47333: Update port: graphics/gliv
Message-ID:  <20030122053053.6ecdc4fc.tkato@prontomail.com>

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

>Number:         47333
>Category:       ports
>Synopsis:       Update port: graphics/gliv
>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:   Tue Jan 21 12:40:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.7-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Conditionalize gnugetopt dependencies

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/gliv/Makefile graphics/gliv/Makefile
--- /usr/ports/graphics/gliv/Makefile	Mon Nov 11 18:59:48 2002
+++ graphics/gliv/Makefile	Mon Jan 20 09:58:18 2003
@@ -12,8 +12,7 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
-		gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
+LIB_DEPENDS=	gtkgl-2.0.1:${PORTSDIR}/x11-toolkits/gtkglarea2
 RUN_DEPENDS=	${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick
 
 USE_BZIP2=	yes
@@ -26,8 +25,12 @@
 MAN1=		gliv.1
 
 CPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 -lgnugetopt \
-		${PTHREAD_LIBS}
+LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib -lXext -lX11 ${PTHREAD_LIBS}
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+=	-lgnugetopt
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|LDFLAGS="[\$$]CFLAGS|LDFLAGS="\$$LDFLAGS|g ; \
>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?20030122053053.6ecdc4fc.tkato>