ports/93834: graphics/megapov cleanup

Pedro F. Giffuni giffunip at asme.org
Sat Feb 25 18:10:08 UTC 2006


>Number:         93834
>Category:       ports
>Synopsis:       graphics/megapov cleanup
>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:   Sat Feb 25 18:10:07 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list