Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2018 18:28:17 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474753 - in head/graphics/flam3: . files
Message-ID:  <201807161828.w6GISHhT056130@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Mon Jul 16 18:28:17 2018
New Revision: 474753
URL: https://svnweb.freebsd.org/changeset/ports/474753

Log:
  graphics/flam3: Update 2.7.18 -> 3.1.1-5
  
  Port changes:
  * Use DISTVERSION
  * Change to github
  * Update COMMENT
  * Add LICENSE/LICENSE_FILE
  * Change to shared library
  * Add the ad-hoc implemantation for sincos linuxism
  
  PR:		229193
  Approved by:	maintainer's timeout (john.c.prather@gmail.com; 25 days)

Added:
  head/graphics/flam3/files/sincos.c   (contents, props changed)
Deleted:
  head/graphics/flam3/files/patch-png.c
Modified:
  head/graphics/flam3/Makefile
  head/graphics/flam3/distinfo
  head/graphics/flam3/pkg-plist

Modified: head/graphics/flam3/Makefile
==============================================================================
--- head/graphics/flam3/Makefile	Mon Jul 16 18:11:44 2018	(r474752)
+++ head/graphics/flam3/Makefile	Mon Jul 16 18:28:17 2018	(r474753)
@@ -2,22 +2,34 @@
 # $FreeBSD$
 
 PORTNAME=	flam3
-PORTVERSION=	2.7.18
-PORTREVISION=	5
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.1.1-5
+DISTVERSIONSUFFIX=	-g7fb50c8
 CATEGORIES=	graphics
-MASTER_SITES=	http://flam3.com/ \
-		http://interwebfun.org/distfiles/
 
 MAINTAINER=	john.c.prather@gmail.com
-COMMENT=	Flame Renderer
+COMMENT=	Algorithmically generated fractal flames images and animations
 
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 LIB_DEPENDS=	libpng.so:graphics/png \
 		libxml2.so:textproc/libxml2
 
+USES=		gmake jpeg libtool localbase pathfix
+USE_GITHUB=	yes
+GH_ACCOUNT=	scottdraves
 GNU_CONFIGURE=	yes
-USES=		gmake jpeg libtool pathfix pkgconfig
+CONFIGURE_ARGS=	--enable-shared --disable-static
+INSTALL_TARGET=	install-strip
+USE_LDCONFIG=	yes
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib
+post-patch:
+	@${REINPLACE_CMD} -e 's|^libflam3_la_SOURCES = .*|& sincos.c| ; s| isaac.lo$$|& sincos.lo|' \
+		${WRKSRC}/Makefile.in # sincos is missing on some systems: bug#218300
+	@${REINPLACE_CMD} -e 's| -g -O3||' ${WRKSRC}/Makefile.in # https://github.com/scottdraves/flam3/issues/25
+
+pre-build:
+	@${CP} ${FILESDIR}/sincos.c ${WRKSRC}
 
 .include <bsd.port.mk>

Modified: head/graphics/flam3/distinfo
==============================================================================
--- head/graphics/flam3/distinfo	Mon Jul 16 18:11:44 2018	(r474752)
+++ head/graphics/flam3/distinfo	Mon Jul 16 18:28:17 2018	(r474753)
@@ -1,2 +1,3 @@
-SHA256 (flam3-2.7.18.tar.gz) = f3f8155d8a0ea11a23412566e18b2751da84f9ae24bd0f37a5f6484b10ad817e
-SIZE (flam3-2.7.18.tar.gz) = 1093666
+TIMESTAMP = 1531765360
+SHA256 (scottdraves-flam3-v3.1.1-5-g7fb50c8_GH0.tar.gz) = d44bbf76e36857067d63832f4a15982cb54533a91ee189971705a1791f0a59d0
+SIZE (scottdraves-flam3-v3.1.1-5-g7fb50c8_GH0.tar.gz) = 1245265

Added: head/graphics/flam3/files/sincos.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/flam3/files/sincos.c	Mon Jul 16 18:28:17 2018	(r474753)
@@ -0,0 +1,6 @@
+#include <math.h>
+
+void sincos(double x, double *s, double *c) {
+  *s = sin(x);
+  *c = cos(x);
+}

Modified: head/graphics/flam3/pkg-plist
==============================================================================
--- head/graphics/flam3/pkg-plist	Mon Jul 16 18:11:44 2018	(r474752)
+++ head/graphics/flam3/pkg-plist	Mon Jul 16 18:28:17 2018	(r474753)
@@ -5,7 +5,10 @@ bin/flam3-convert
 include/flam3.h
 include/isaac.h
 include/isaacs.h
-lib/libflam3.a
+include/rect.c
+lib/libflam3.so
+lib/libflam3.so.0
+lib/libflam3.so.0.0.0
 libdata/pkgconfig/flam3.pc
 share/flam3/flam3-palettes.xml
 man/man1/flam3-animate.1.gz



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