summaryrefslogtreecommitdiff
path: root/graphics/megapov
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2006-03-15 05:59:41 +0000
committerMaho Nakata <maho@FreeBSD.org>2006-03-15 05:59:41 +0000
commiteb97e6c367d877f306b3b8de04874b650394ec04 (patch)
treef3203d81d0d71aacb199cb2f1e566020857479bd /graphics/megapov
parentMinor cleanups (diff)
Cleanups
PR: 93834 Submitted by: Pedro F. Giffuni <giffunip@asme.org>
Notes
Notes: svn path=/head/; revision=157120
Diffstat (limited to 'graphics/megapov')
-rw-r--r--graphics/megapov/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/graphics/megapov/Makefile b/graphics/megapov/Makefile
index 6d9bce0c35e6..68c8d2d0aa9b 100644
--- a/graphics/megapov/Makefile
+++ b/graphics/megapov/Makefile
@@ -14,16 +14,14 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
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 @@ LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
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 @@ do-install:
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>