diff options
author | Maho Nakata <maho@FreeBSD.org> | 2003-07-27 15:22:31 +0000 |
---|---|---|
committer | Maho Nakata <maho@FreeBSD.org> | 2003-07-27 15:22:31 +0000 |
commit | ab050f80c4aa0fee238d5c233bc488468d30067d (patch) | |
tree | 7ae50a4144c73039ef4384d46d65f3300a512164 /graphics/megapov/Makefile | |
parent | 2de1f12f134953f96bf9c376f68a13276e4d0bc4 (diff) | |
download | ports-ab050f80c4aa0fee238d5c233bc488468d30067d.tar.gz ports-ab050f80c4aa0fee238d5c233bc488468d30067d.zip |
Notes
Diffstat (limited to 'graphics/megapov/Makefile')
-rw-r--r-- | graphics/megapov/Makefile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/graphics/megapov/Makefile b/graphics/megapov/Makefile new file mode 100644 index 000000000000..b2a01515715b --- /dev/null +++ b/graphics/megapov/Makefile @@ -0,0 +1,68 @@ +# New ports collection makefile for: MegaPov +# Date created: 25 July 2003 +# Whom: maho@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= megapov +PORTVERSION= 1.0 +CATEGORIES= graphics +MASTER_SITES= http://megapov.inetart.net/ +DISTNAME= ${PORTNAME}-${PORTVERSION}_unix_s +EXTRACT_SUFX= .tgz + +MAINTAINER= maho@FreeBSD.org +COMMENT= Unofficial extensions of POV-Ray + +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 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_XLIB= yes +USE_REINPLACE= yes +USE_GMAKE= yes +ALL_TARGET= # empty + +.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+= -mcpu=i686 -march=i686 -mfancy-math-387 +CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387 +.endif # i386 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ + s|%%X11BASE%%|${X11BASE}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g ;\ + s|%%CC%%|${CC}|g ; \ + s|%%CXX%%|${CXX}|g ; \ + s|%%CFLAGS%%|${CFLAGS}|g ; \ + s|%%CXXFLAGS%%|${CXXFLAGS}|g' ${WRKSRC}/unix/Makefile + +.if !defined(WITH_OPTIMIZED_FLAGS) + @${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes." +.endif + +do-install: + @(cd ${WRKSRC}/unix ; ${GMAKE} install) +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR}/manual + @${TAR} -C ${WRKSRC}/manual -cf - . | \ + ${TAR} -C ${DOCSDIR}/manual -xf - + @${INSTALL_DATA} ${WRKSRC}/povlegal.doc ${DOCSDIR} + @${FIND} ${DOCSDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} + @${FIND} ${DOCSDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} + @${MKDIR} ${EXAMPLESDIR} + @${TAR} -C ${WRKSRC} -cf - include scenes | \ + ${TAR} -C ${EXAMPLESDIR} -xf - + @${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} + @${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} +.endif + +.include <bsd.port.mk> |