Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2003 02:05:44 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47758: Update port: textproc/raptor
Message-ID:  <20030201020544.29ce94d8.tkato@prontomail.com>

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

>Number:         47758
>Category:       ports
>Synopsis:       Update port: textproc/raptor
>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:19 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/textproc/raptor/Makefile textproc/raptor/Makefile
--- /usr/ports/textproc/raptor/Makefile	Mon Jan  6 16:08:08 2003
+++ textproc/raptor/Makefile	Fri Jan 24 04:10:31 2003
@@ -16,8 +16,7 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
-		xml2.5:${PORTSDIR}/textproc/libxml2 \
+LIB_DEPENDS=	xml2.5:${PORTSDIR}/textproc/libxml2 \
 		xmlparse.1:${PORTSDIR}/www/libwww
 
 LIBWWW_CONFIG=	${LOCALBASE}/bin/libwww-config
@@ -31,6 +30,11 @@
 MAN3=		libraptor.3
 
 CPPFLAGS=	-I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags`
-LDFLAGS=	-L${LOCALBASE}/lib -lgnugetopt `${LIBWWW_CONFIG} --libs`
+LDFLAGS=	-L${LOCALBASE}/lib `${LIBWWW_CONFIG} --libs`
+
+.if !exists(/usr/include/getopt.h)
+LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
+LDFLAGS+=	-lgnugetopt
+.endif
 
 .include <bsd.port.mk>
>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?20030201020544.29ce94d8.tkato>