Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2014 13:07:42 +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: r343230 - in head/graphics/truevision: . files
Message-ID:  <201402071307.s17D7gt7020471@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: miwi
Date: Fri Feb  7 13:07:41 2014
New Revision: 343230
URL: http://svnweb.freebsd.org/changeset/ports/343230
QAT: https://qat.redports.org/buildarchive/r343230/

Log:
  - Fix build with clang
  - Support desktop-files-utils USES macro
  - Support shared-mime-info USES macro
  - Stage support
  
  PR:		185938
  Submitted by:	Ports Fury

Added:
  head/graphics/truevision/files/patch-include__objparam.h   (contents, props changed)
Modified:
  head/graphics/truevision/Makefile
  head/graphics/truevision/pkg-plist

Modified: head/graphics/truevision/Makefile
==============================================================================
--- head/graphics/truevision/Makefile	Fri Feb  7 13:06:39 2014	(r343229)
+++ head/graphics/truevision/Makefile	Fri Feb  7 13:07:41 2014	(r343230)
@@ -3,33 +3,33 @@
 
 PORTNAME=	truevision
 PORTVERSION=	0.5.5.2
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	graphics
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20sources/0.5.5
 DISTNAME=	${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	The GNOME 3D modeler
+COMMENT=	GNOME 3D modeler
 
-LIB_DEPENDS=	gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
+LICENSE=	GPLv2 # (or later)
+
+LIB_DEPENDS=	libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
 
 USE_BZIP2=	yes
-USES=        pathfix gettext gmake pkgconfig
+USES=		desktop-file-utils gettext gmake pathfix pkgconfig \
+		shared-mime-info
 USE_GNOME=	gnomeprefix intlhack libgnomeui
 USE_GL=		gl
 USE_PYTHON=	yes
 GNU_CONFIGURE=	yes
 
-MAN1=		truevision.1
-
-CPPFLAGS+=	-I${LOCALBASE}/include \
-		`pkg-config --cflags gtkglext-1.0`
-LDFLAGS+=	-L${LOCALBASE}/lib \
-		`pkg-config --libs gtkglext-1.0`
+CPPFLAGS+=	$$(pkg-config --cflags gtkglext-1.0) \
+		-I${LOCALBASE}/include
+LDFLAGS+=	$$(pkg-config --libs gtkglext-1.0) \
+		-L${LOCALBASE}/lib
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|CXXFLAGS=""||g ; \
 		 s|-I/usr/include/gtkglext-1.0/||g ; \
@@ -45,6 +45,7 @@ post-patch:
 		 s|-L/usr/local/lib||g ; \
 		 s|-L/usr/X11R6/lib||g ; \
 		 s|-O2||g ; \
-		 s|^truevisiondoc|#truevisiondoc|g'
+		 s|^truevisiondoc|#truevisiondoc|g ; \
+		 /update-mime-database/s|^|#|'
 
 .include <bsd.port.mk>

Added: head/graphics/truevision/files/patch-include__objparam.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/truevision/files/patch-include__objparam.h	Fri Feb  7 13:07:41 2014	(r343230)
@@ -0,0 +1,11 @@
+--- include/objparam.h.orig
++++ include/objparam.h
+@@ -465,7 +465,7 @@
+ 			TvWidget_entry( name, sname, tooltip, appref, val) {}
+ 		ObjParam_entry( ObjParam_entry & ref ) : ObjParam( ref ), TvWidget_entry( ref ) {}
+ 		void get_widget( GtkWidget *box, bool tt );
+-		void get_widget( GtkWidget *row, bool tt, int row );
++		void get_widget( GtkWidget *tab, bool tt, int row );
+ 		void flush();
+ 		void swap_data( ObjParam *param );
+ };

Modified: head/graphics/truevision/pkg-plist
==============================================================================
--- head/graphics/truevision/pkg-plist	Fri Feb  7 13:06:39 2014	(r343229)
+++ head/graphics/truevision/pkg-plist	Fri Feb  7 13:07:41 2014	(r343230)
@@ -1,5 +1,6 @@
 bin/truevision
 lib/libftgltv.a
+man/man1/truevision.1.gz
 share/applications/truevision.desktop
 share/application-registry/truevision.applications
 share/gnome/help/truevision/C/athmospherics.xml
@@ -51,6 +52,10 @@ share/gnome/help/truevision/C/interface_
 share/gnome/help/truevision/C/legal.xml
 share/gnome/help/truevision/C/truevision.xml
 share/gnome/help/truevision/C/welcome.xml
+share/locale/de/LC_MESSAGES/truevision.mo
+share/locale/fr/LC_MESSAGES/truevision.mo
+share/locale/ru/LC_MESSAGES/truevision.mo
+share/mime/packages/truevision.xml
 share/mime-info/truevision.keys
 share/mime-info/truevision.mime
 share/pixmaps/truevision/create_icon.png
@@ -102,6 +107,7 @@ share/pixmaps/truevision/view_rollup.png
 share/pixmaps/truevision/warning.xpm
 share/truevision/materials/Effects/Fire1.tvm
 share/truevision/materials/Effects/water.tvm
+@exec mkdir -p %D/%%DATADIR%%/materials/Glass
 share/truevision/materials/Metals/Brass/Brass1A.tvm
 share/truevision/materials/Metals/Brass/Brass1B.tvm
 share/truevision/materials/Metals/Brass/Brass1C.tvm
@@ -120,10 +126,6 @@ share/truevision/materials/Woods/Soft_Pi
 share/truevision/python/plug-ins/about_python.py
 share/truevision/python/plug-ins/starfield.py
 share/truevision/python/tv_classes.py
-share/locale/de/LC_MESSAGES/truevision.mo
-share/locale/fr/LC_MESSAGES/truevision.mo
-share/locale/ru/LC_MESSAGES/truevision.mo
-share/mime/packages/truevision.xml
 @dirrm share/truevision/python/plug-ins
 @dirrm share/truevision/python
 @dirrm share/truevision/materials/Woods
@@ -141,5 +143,3 @@ share/mime/packages/truevision.xml
 @dirrm share/gnome/help/truevision/C/figures
 @dirrm share/gnome/help/truevision/C
 @dirrm share/gnome/help/truevision
-@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
-@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime



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