Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2018 16:29:35 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475027 - in head/graphics/fracplanet: . files
Message-ID:  <201807201629.w6KGTZoB065052@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Jul 20 16:29:34 2018
New Revision: 475027
URL: https://svnweb.freebsd.org/changeset/ports/475027

Log:
  graphics/fracplanet: update to 0.5.1
  
  PR:		229874
  Submitted by:	Kai <freebsd_ports@k-worx.org>
  Approved by:	portmgr (implicit)

Deleted:
  head/graphics/fracplanet/files/
Modified:
  head/graphics/fracplanet/Makefile   (contents, props changed)
  head/graphics/fracplanet/distinfo   (contents, props changed)

Modified: head/graphics/fracplanet/Makefile
==============================================================================
--- head/graphics/fracplanet/Makefile	Fri Jul 20 16:09:45 2018	(r475026)
+++ head/graphics/fracplanet/Makefile	Fri Jul 20 16:29:34 2018	(r475027)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	fracplanet
-PORTVERSION=	0.4.0
-PORTREVISION=	16
+PORTVERSION=	0.5.1
 CATEGORIES=	graphics
 MASTER_SITES=	SF \
 		SF/nemysisfreebsdp/:icons
@@ -18,54 +17,50 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_powerpc64=	fails to link: obj/fracplanet.o:(.text+0x250): undefined reference to boost::program_options::options_description::options_description
 
-BUILD_DEPENDS=	xsltproc:textproc/libxslt
 LIB_DEPENDS=	libboost_program_options.so:devel/boost-libs
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
+FLAVORS=	qt4 qt5
+FLAVOR?=	${FLAVORS:[1]}
+qt5_PKGNAMESUFFIX=	-${FLAVOR}
 
-USES=		gmake qmake:no_env qt:4
-USE_GL=		glu
-USE_QT=		corelib moc_build qmake_build gui opengl
-HAS_CONFIGURE=	yes
-CONFIGURE_ENV=	QTDIR="${PREFIX}"
-CONFIGURE_ARGS=	-spec ${QMAKESPEC}
+USES=		qmake:outsource
+USE_GL=		gl glu
+QMAKE_ARGS=	VERSION_NUMBER=${PORTVERSION}
 
-CXXFLAGS+=	-include ${WRKSRC}/precompiled.h
+.if ${FLAVOR} == qt4
+USES+=	qt:4
+USE_QT=		corelib gui moc_build opengl
+.else
+USES+=	qt:5
+USE_QT=		buildtools_build core gui opengl
+.endif
 
+DESKTOP_ENTRIES=	"Fracplanet" \
+			"" \
+			"${PORTNAME}" \
+			"${PORTNAME}" \
+			"Graphics;" \
+			""
+INSTALLS_ICONS=	yes
 PORTDOCS=	*
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-INSTALLS_ICONS=	yes
+OPTIONS_DEFINE=		DOXYGEN DOCS
+DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
+DOXYGEN_IMPLIES=	DOCS
+
+DOCFILES=	BUGS NEWS README THANKS fracplanet.css fracplanet.htm
 ICON_SIZES=	32x32 48x48 64x64 72x72 96x96
 
-DESKTOP_ENTRIES="Fracplanet" "" "${PORTNAME}" \
-		"${PORTNAME}" "Graphics;" ""
-
-OPTIONS_DEFINE=	DOXYGEN DOCS
-
-.include <bsd.port.pre.mk>
-
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
-BUILD_DEPENDS+=	doxygen:devel/doxygen
-.endif
-
 post-patch:
-.for f in BUILD VERSION configure
-	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \
-		${WRKSRC}/${f}
-.endfor
-	@${REINPLACE_CMD} -e 's|qmake-qt4|${QMAKE} ${QMAKE_ARGS}|' \
-		${WRKSRC}/configure
-	@${REINPLACE_CMD} -e \
-		's|-lboost_program_options|-lboost_program_options -lGLU|' \
-		${WRKSRC}/fracplanet.pro
+	@${REINPLACE_CMD} -Ee 's|(OBJECTS_DIR)|#\1|' ${WRKSRC}/fracplanet.pro
 
-.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MDOXYGEN}
-post-build:
+post-build-DOXYGEN-on:
 	cd ${WRKSRC} && doxygen .
-.endif
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin/
 	${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 \
 		${STAGEDIR}${MAN1PREFIX}/man/man1/
 
@@ -77,13 +72,12 @@ do-install:
 	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps
 
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} BUGS NEWS README THANKS \
-		fracplanet.css fracplanet.htm ${STAGEDIR}${DOCSDIR}
-. if ${PORT_OPTIONS:MDOXYGEN}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR})
-. endif
-.endif
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCFILES} ${STAGEDIR}${DOCSDIR})
 
-.include <bsd.port.post.mk>
+post-install-DOXYGEN-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "html latex" ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>

Modified: head/graphics/fracplanet/distinfo
==============================================================================
--- head/graphics/fracplanet/distinfo	Fri Jul 20 16:09:45 2018	(r475026)
+++ head/graphics/fracplanet/distinfo	Fri Jul 20 16:29:34 2018	(r475027)
@@ -1,4 +1,5 @@
-SHA256 (fracplanet-0.4.0.tar.gz) = 38d56aba3c5cf19d4f2c218bece471d3860b161d2210a24ba94550356723482a
-SIZE (fracplanet-0.4.0.tar.gz) = 101700
+TIMESTAMP = 1529683211
+SHA256 (fracplanet-0.5.1.tar.gz) = 435dd07e1798f810280260d09d2ee85e870eb466411e49b859eb1bef6f336ade
+SIZE (fracplanet-0.5.1.tar.gz) = 111911
 SHA256 (fracplanet_icons.tar.gz) = 99eeb8ed62d45083138402c41b2af79a4b432bfcb8e63cbe83090bb2d235063b
 SIZE (fracplanet_icons.tar.gz) = 51712



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