From nobody@FreeBSD.org  Mon Jan 14 10:20:35 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 3A47137B416
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 14 Jan 2002 10:20:35 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0EIKZT84402;
	Mon, 14 Jan 2002 10:20:35 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201141820.g0EIKZT84402@freefall.freebsd.org>
Date: Mon, 14 Jan 2002 10:20:35 -0800 (PST)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: graphics/opendis   
X-Send-Pr-Version: www-1.0

>Number:         33883
>Category:       ports
>Synopsis:       Update port: graphics/opendis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 14 10:30:01 PST 2002
>Closed-Date:    Mon Jan 14 13:49:41 PST 2002
>Last-Modified:  Mon Jan 14 13:49:54 PST 2002
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix MASTER_SITES                              
- Support CFLAGS properly
- Remove unnecessary USE_AUTOCONF

Remove file:
files/patch-configure.in 

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/opendis/Makefile graphics/opendis/Makefile
--- /usr/ports/graphics/opendis/Makefile	Tue Oct  9 19:01:03 2001
+++ graphics/opendis/Makefile	Sun Jan 13 21:58:42 2002
@@ -7,24 +7,25 @@
 
 PORTNAME=	opendis
 PORTVERSION=	0.0.3
+PORTREVISION=	1
 CATEGORIES=	graphics
-MASTER_SITES=	http://ods.sourceforge.net/dl/ \
-		ftp://ftp.nuug.no/pub/anders/distfiles/
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
+		http://ods.sourceforge.net/dl/
+MASTER_SITE_SUBDIR=	ods
 
 MAINTAINER=	ports@FreeBSD.org
 
-USE_AUTOCONF=	yes
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}"
 
-DOCS=	NEWS AUTHORS doc/ERRATA doc/PHILOSOPHY doc/THUMB
+post-patch:
+	@${PERL} -pi -e 's|-pedantic -W|-pedantic|g' ${WRKSRC}/configure
+	@${PERL} -pi -e 's| -g| \@CFLAGS\@|g' ${WRKSRC}/src/Makefile.in
 
-.if !defined(NOPORTDOCS)
 post-install:
-	@${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/share/doc/${PORTNAME}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PORTNAME}/
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for file in NEWS AUTHORS doc/ERRATA doc/PHILOSOPHY doc/THUMB
+	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
 .endfor
 .endif
 
diff -urN /usr/ports/graphics/opendis/files/patch-configure.in graphics/opendis/files/patch-configure.in
--- /usr/ports/graphics/opendis/files/patch-configure.in	Sat Jun  9 01:54:25 2001
+++ graphics/opendis/files/patch-configure.in	Thu Jan  1 09:00:00 1970
@@ -1,11 +0,0 @@
---- configure.in.old	Tue May 22 13:16:35 2001
-+++ configure.in	Tue May 22 13:16:58 2001
-@@ -10,7 +10,7 @@
- 
- if test "$GCC" = yes; then
-   dnl Add some extra flags when compiling with gcc.
--  gcc_extra_cflags="-D_GNU_SOURCE -Wall -ansi -pedantic -W"
-+  gcc_extra_cflags="-D_GNU_SOURCE -ansi -pedantic"
-   AC_SUBST(gcc_extra_cflags)
- fi
- 

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jim 
State-Changed-When: Mon Jan 14 13:49:41 PST 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=33883 
>Unformatted:
