From owner-svn-ports-head@FreeBSD.ORG Thu May 16 10:30:30 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8E1DE864; Thu, 16 May 2013 10:30:30 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 70767D00; Thu, 16 May 2013 10:30:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4GAUU8a086239; Thu, 16 May 2013 10:30:30 GMT (envelope-from miwi@svn.freebsd.org) Received: (from miwi@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4GAUUeT086237; Thu, 16 May 2013 10:30:30 GMT (envelope-from miwi@svn.freebsd.org) Message-Id: <201305161030.r4GAUUeT086237@svn.freebsd.org> From: Martin Wilke Date: Thu, 16 May 2013 10:30:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r318306 - head/graphics/quat-gui X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2013 10:30:30 -0000 Author: miwi Date: Thu May 16 10:30:29 2013 New Revision: 318306 URL: http://svnweb.freebsd.org/changeset/ports/318306 Log: - Trim header - Update MASTER_SITES - Add LICENSE - Add MAKE_JOBS_SAFE - Support PLIST_FILES - Support DESKTOP_ENTRIES - OptionNG PR: 178591 Submitted by: Ports Fury Modified: head/graphics/quat-gui/Makefile (contents, props changed) head/graphics/quat-gui/pkg-plist (contents, props changed) Modified: head/graphics/quat-gui/Makefile ============================================================================== --- head/graphics/quat-gui/Makefile Thu May 16 10:29:08 2013 (r318305) +++ head/graphics/quat-gui/Makefile Thu May 16 10:30:29 2013 (r318306) @@ -1,61 +1,74 @@ -# New ports collection makefile for: quat-gui -# Date created: 2 May 2002 -# Whom: David Yeske -# +# Created by: David Yeske # $FreeBSD$ -# PORTNAME= quat PORTVERSION= 1.20 -PORTREVISION= 11 +PORTREVISION= 12 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/ PKGNAMESUFFIX= -gui -DISTNAME= quat-${PORTVERSION:S/.p/pre/} MAINTAINER= ports@FreeBSD.org -COMMENT= A Three-dimensional fractal creator (X11 GUI) +COMMENT= Three-dimensional fractal creator (X11 GUI) -LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk +LICENSE= GPLv2 # (or later) + +LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk + +OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS + +UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX} USE_XORG= xext USE_GL= gl glut GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-lXext -lGL" FLUID="${LOCALBASE}/bin/fluid" -CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib +CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid" +CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc +MAKE_JOBS_SAFE= yes -.if defined(WITH_OPTIMIZED_CFLAGS) -CFLAGS+= -O3 -ffast-math -.endif +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} + +PORTDOCS= * +PLIST_FILES= bin/quat -pre-everything:: -.if !defined(WITH_OPTIMIZED_CFLAGS) - @${ECHO_MSG} "You can enable additional compilation optimizations" - @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS" +DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" "" + +.include + +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} +CFLAGS+= -O3 -ffast-math .endif post-patch: @${REINPLACE_CMD} -E -e \ - 's|^...CFLAGS=|#CFLAGS=|; \ - s|^...CXXFLAGS=|#CXXFLAGS=|' \ + '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}/gui/Makefile.in - @${REINPLACE_CMD} -e 's|#include |#include |' \ + @${REINPLACE_CMD} -e \ + 's||| ; \ + s|/doc/quat/|/doc/${UNIQUENAME}/|' \ ${WRKSRC}/gui/MainWindow.cxx # disable data file installation since distfile does not do # The Right Thing(TM) @${REINPLACE_CMD} -E -e \ - 's|^(install-data-am:).*$$|\1|' \ + 's|^(install-data-am:).*$$|\1| ; \ + s|^(SUBDIRS.*)doc|\1|' \ ${WRKSRC}/Makefile.in -.ifdef NOPORTDOCS - @${REINPLACE_CMD} '/install-data-am:/s/install-pkgdataDATA//' \ + @${REINPLACE_CMD} -e \ + 's|@PACKAGE@|${UNIQUENAME}|' \ ${WRKSRC}/doc/Makefile.in -.endif -post-configure: - @${REINPLACE_CMD} -E -e \ - 's|^(pkgdatadir).*$$|\1=${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}|' \ - ${WRKSRC}/doc/Makefile +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + @(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ + ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) +.endif .include Modified: head/graphics/quat-gui/pkg-plist ============================================================================== --- head/graphics/quat-gui/pkg-plist Thu May 16 10:29:08 2013 (r318305) +++ head/graphics/quat-gui/pkg-plist Thu May 16 10:30:29 2013 (r318306) @@ -1,27 +0,0 @@ -bin/quat -%%PORTDOCS%%share/quat-gui/Dendr_st.jpg -%%PORTDOCS%%share/quat-gui/ce.png -%%PORTDOCS%%share/quat-gui/chart_de.png -%%PORTDOCS%%share/quat-gui/chart_us.png -%%PORTDOCS%%share/quat-gui/ex_1.jpg -%%PORTDOCS%%share/quat-gui/ex_2.jpg -%%PORTDOCS%%share/quat-gui/ex_3.jpg -%%PORTDOCS%%share/quat-gui/gpl.html -%%PORTDOCS%%share/quat-gui/ie.png -%%PORTDOCS%%share/quat-gui/oe.png -%%PORTDOCS%%share/quat-gui/ote.png -%%PORTDOCS%%share/quat-gui/quat-de-1.html -%%PORTDOCS%%share/quat-gui/quat-de-2.html -%%PORTDOCS%%share/quat-gui/quat-de-3.html -%%PORTDOCS%%share/quat-gui/quat-de-4.html -%%PORTDOCS%%share/quat-gui/quat-de-5.html -%%PORTDOCS%%share/quat-gui/quat-de.html -%%PORTDOCS%%share/quat-gui/quat-us-1.html -%%PORTDOCS%%share/quat-gui/quat-us-2.html -%%PORTDOCS%%share/quat-gui/quat-us-3.html -%%PORTDOCS%%share/quat-gui/quat-us-4.html -%%PORTDOCS%%share/quat-gui/quat-us-5.html -%%PORTDOCS%%share/quat-gui/quat-us.html -%%PORTDOCS%%share/quat-gui/quat.png -%%PORTDOCS%%share/quat-gui/ve.png -%%PORTDOCS%%@dirrm share/quat-gui