From nobody@FreeBSD.org  Sat Feb 25 18:09:48 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 294E616A420
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Feb 2006 18:09:48 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DA13843D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Feb 2006 18:09:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1PI9lkn002256
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 25 Feb 2006 18:09:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k1PI9lWB002255;
	Sat, 25 Feb 2006 18:09:47 GMT
	(envelope-from nobody)
Message-Id: <200602251809.k1PI9lWB002255@www.freebsd.org>
Date: Sat, 25 Feb 2006 18:09:47 GMT
From: "Pedro F. Giffuni" <giffunip@asme.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: graphics/megapov cleanup
X-Send-Pr-Version: www-2.3

>Number:         93834
>Category:       ports
>Synopsis:       graphics/megapov cleanup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    maho
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 25 18:10:07 GMT 2006
>Closed-Date:    Wed Mar 15 06:00:42 GMT 2006
>Last-Modified:  Wed Mar 15 06:00:42 GMT 2006
>Originator:     Pedro F. Giffuni
>Release:        6.0-Release
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.0-RELEASE FreeBSD 6.0-RELEASE #12: Sat Feb 11 13:45:47 COT 2006     root@etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64
>Description:
              
- Remove the dependency on svgalib for platforms !i386. 
- Clean the optimized flags so that it builds on non-i386 platforms (tested on AMD64).
- Porlint cleanups.
>How-To-Repeat:
              
>Fix:
              patch follows:
diff -ru megapov.orig/Makefile megapov/Makefile
--- megapov.orig/Makefile	Sat Feb 25 12:25:27 2006
+++ megapov/Makefile	Sat Feb 25 13:02:18 2006
@@ -14,16 +14,14 @@
 MAINTAINER=	maho@FreeBSD.org
 COMMENT=	Unofficial extensions of POV-Ray
 
-USE_BZIP2=	yes
 RUN_DEPENDS=	povray:${PORTSDIR}/graphics/povray
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
 		jpeg:${PORTSDIR}/graphics/jpeg \
-		tiff:${PORTSDIR}/graphics/tiff \
-		vga:${PORTSDIR}/graphics/svgalib
+		tiff:${PORTSDIR}/graphics/tiff
 
+USE_BZIP2=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 USE_XLIB=	yes
-USE_REINPLACE=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
 ALL_TARGET=	# empty
@@ -32,10 +30,16 @@
 CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
 CXXFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
 
+.include <bsd.port.pre.mk>
+
+.if (${ARCH} == "i386")
+LIB_DEPENDS+=	vga:${PORTSDIR}/graphics/svgalib
+.endif
+
 .if defined(WITH_OPTIMIZED_FLAGS)
-CFLAGS+=	-O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wunused-variable
-CXXFLAGS+=	-O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double  -Wunused-variable -Wno-multichar
-.if (${MACHINE_ARCH} == "i386")
+CFLAGS+=	-O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
+CXXFLAGS+=	-O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
+.if (${ARCH} == "i386")
 CFLAGS+=	-mcpu=i686 -march=i686 -mfancy-math-387
 CXXFLAGS+=	-mcpu=i686 -march=i686 -mfancy-math-387
 .endif # i386
@@ -61,4 +65,4 @@
 	@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ru megapov.orig/distinfo megapov/distinfo
--- megapov.orig/distinfo	Sat Feb 25 12:25:27 2006
+++ megapov/distinfo	Sat Feb 25 12:54:12 2006
@@ -1,2 +1,3 @@
 MD5 (megapov-1.2.1.tar.bz2) = 0d8fb86e6a583257023bf3bb2d43a357
+SHA256 (megapov-1.2.1.tar.bz2) = 31f27b250250503987171034fb6d1b46219ae31f9fb31e799e3c4698edfd2b66
 SIZE (megapov-1.2.1.tar.bz2) = 7674540

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->maho 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Feb 25 18:12:10 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93834 
State-Changed-From-To: open->closed 
State-Changed-By: maho 
State-Changed-When: Wed Mar 15 06:00:18 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93834 
>Unformatted:
