Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2013 05:51:07 +0000 (UTC)
From:      Martin Wilke <miwi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r318643 - head/graphics/quat
Message-ID:  <201305210551.r4L5p77K035794@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Tue May 21 05:51:07 2013
New Revision: 318643
URL: http://svnweb.freebsd.org/changeset/ports/318643

Log:
  - Update MASTER_SITES
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  - Support PLIST_FILES
  - Trim Header
  
  PR:		178593
  Submitted by:	Ports Fury

Modified:
  head/graphics/quat/Makefile   (contents, props changed)
  head/graphics/quat/pkg-plist   (contents, props changed)

Modified: head/graphics/quat/Makefile
==============================================================================
--- head/graphics/quat/Makefile	Tue May 21 05:47:45 2013	(r318642)
+++ head/graphics/quat/Makefile	Tue May 21 05:51:07 2013	(r318643)
@@ -1,46 +1,52 @@
-# New ports collection makefile for:	quat
-# Date created:				26 Aug 2002
-# Whom:					David Yeske <dyeske@gmail.com>
-#
+# Created by: David Yeske <dyeske@gmail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	quat
 PORTVERSION=	1.20
 CATEGORIES=	graphics
-MASTER_SITES=   http://www.physcip.uni-stuttgart.de/phy11733/download/
+#MASTER_SITES=	http://www.physcip.uni-stuttgart.de/phy11733/download/
+MASTER_SITES=	http://www.sourcefiles.org/Graphics/Fractals/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A Three-dimensional fractal creator (command line only)
+COMMENT=	Three-dimensional fractal creator (command line only)
+
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	OPTIMIZED_CFLAGS DOCS
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-gui \
 		--datadir=${PREFIX}/share/doc
+MAKE_JOBS_SAFE=	yes
 
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CFLAGS+=	-O3 -ffast-math
-.endif
+PORTDOCS=	*
+PLIST_FILES=	bin/quat-txt
+
+.include <bsd.port.options.mk>
 
-pre-everything::
-.if !defined(WITH_OPTIMIZED_CFLAGS)
-	@${ECHO_MSG} "You can enable additional compilation optimizations"
-	@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+CFLAGS+=	-O3 -ffast-math
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -E -e 's,-(march=pentium|O3|ffast-math),,g' \
+	@${REINPLACE_CMD} -E -e \
+		's,-(march=pentium|O3|ffast-math),,g' \
 		${WRKSRC}/configure
-	@${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
+	@${REINPLACE_CMD} -E -e \
+		's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
 		${WRKSRC}/kernel/Makefile.in
 # disable data file installation since distfile does not do
 # The Right Thing(TM)
 	@${REINPLACE_CMD} -E -e \
-		's|^(install-data-am:).*$$|\1|' \
-		${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -E -e \
-		's|^(SUBDIRS.*)doc|\1|' \
+		's|^(install-data-am:).*$$|\1| ; \
+		 s|^(SUBDIRS.*)doc|\1|' \
 		${WRKSRC}/Makefile.in
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
+		${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/quat/pkg-plist
==============================================================================
--- head/graphics/quat/pkg-plist	Tue May 21 05:47:45 2013	(r318642)
+++ head/graphics/quat/pkg-plist	Tue May 21 05:51:07 2013	(r318643)
@@ -1,27 +0,0 @@
-bin/quat-txt
-%%PORTDOCS%%share/doc/quat/Dendr_st.jpg
-%%PORTDOCS%%share/doc/quat/ce.png
-%%PORTDOCS%%share/doc/quat/chart_de.png
-%%PORTDOCS%%share/doc/quat/chart_us.png
-%%PORTDOCS%%share/doc/quat/ex_1.jpg
-%%PORTDOCS%%share/doc/quat/ex_2.jpg
-%%PORTDOCS%%share/doc/quat/ex_3.jpg
-%%PORTDOCS%%share/doc/quat/gpl.html
-%%PORTDOCS%%share/doc/quat/ie.png
-%%PORTDOCS%%share/doc/quat/oe.png
-%%PORTDOCS%%share/doc/quat/ote.png
-%%PORTDOCS%%share/doc/quat/quat-de-1.html
-%%PORTDOCS%%share/doc/quat/quat-de-2.html
-%%PORTDOCS%%share/doc/quat/quat-de-3.html
-%%PORTDOCS%%share/doc/quat/quat-de-4.html
-%%PORTDOCS%%share/doc/quat/quat-de-5.html
-%%PORTDOCS%%share/doc/quat/quat-de.html
-%%PORTDOCS%%share/doc/quat/quat-us-1.html
-%%PORTDOCS%%share/doc/quat/quat-us-2.html
-%%PORTDOCS%%share/doc/quat/quat-us-3.html
-%%PORTDOCS%%share/doc/quat/quat-us-4.html
-%%PORTDOCS%%share/doc/quat/quat-us-5.html
-%%PORTDOCS%%share/doc/quat/quat-us.html
-%%PORTDOCS%%share/doc/quat/quat.png
-%%PORTDOCS%%share/doc/quat/ve.png
-%%PORTDOCS%%@dirrm share/doc/quat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305210551.r4L5p77K035794>