Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2003 05:31:12 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47325: Update port: graphics/recmpeg
Message-ID:  <20030122053112.3a356127.tkato@prontomail.com>

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

>Number:         47325
>Category:       ports
>Synopsis:       Update port: graphics/recmpeg
>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:06 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/recmpeg/Makefile graphics/recmpeg/Makefile
--- /usr/ports/graphics/recmpeg/Makefile	Mon Nov 11 18:59:52 2002
+++ graphics/recmpeg/Makefile	Mon Jan 20 10:07:49 2003
@@ -14,13 +14,19 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \
-		fame-0.9.0:${PORTSDIR}/graphics/libfame
+LIB_DEPENDS=	fame-0.9.0:${PORTSDIR}/graphics/libfame
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 
 MAN1=	recmpeg.1
+
+CPPFLAGS=	-I${LOCALBASE}/include
+LDFLAGS=	-L${LOCALBASE}/lib
+
+.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?20030122053112.3a356127.tkato>