Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 17:40:57 GMT
From:      Fernando <fernando.apesteguia@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164376: New port: graphics/opennurbs allows to transfer 3D geometry between applications.
Message-ID:  <201201221740.q0MHev4S014935@red.freebsd.org>
Resent-Message-ID: <201201221750.q0MHo7ps090532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164376
>Category:       ports
>Synopsis:       New port: graphics/opennurbs allows to transfer 3D geometry between applications.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 22 17:50:07 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Fernando
>Release:        8.1-RELEASE-p2
>Organization:
>Environment:
FreeBSD beastie 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Fri Mar 18 19:17:53 CET 2011     root@beastie:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This patch adds graphics/opennurbs.

>From the project's web page:

The openNURBS Initiative provides CAD, CAM, CAE, and computer graphics software developers the tools to accurately transfer 3-D geometry between applications.
>How-To-Repeat:

>Fix:
Apply the attached patch.

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	opennurbs
#	opennurbs/Makefile
#	opennurbs/distinfo
#	opennurbs/pkg-descr
#	opennurbs/files
#	opennurbs/files/patch-makefile
#	opennurbs/files/patch-opennurbs-system.h
#	opennurbs/files/patch-opennurbs-array-defs.h
#	opennurbs/pkg-plist
#
echo c - opennurbs
mkdir -p opennurbs > /dev/null 2>&1
echo x - opennurbs/Makefile
sed 's/^X//' >opennurbs/Makefile << 'c807c8847dd6ecf066f1b1a98cca62e4'
X# New ports collection makefile for:	opennurbs
X# Date created:                		Aug 17 2011
X# Whom:                        		Fernando Apesteguia <fernando.apesteguia@gmail.com>
X#
X# $FreeBSD$
X
XPORTNAME=		opennurbs
XPORTVERSION=		20111122
XCATEGORIES=		graphics
XMASTER_SITES=		http://files.na.mcneel.com/opennurbs/5.0/2011-11-22/
XMASTER_SITE_SUBDIR=	${PORTNAME}_${PORTVERSION}
XDISTNAME=		${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=		fernando.apesteguia@gmail.com
XCOMMENT=		Tools to accurately transfer 3-D geometry between applications
X
XBUILD_DEPENDS=		${LOCALBASE}/include/GL/gl.h:${PORTSDIR}/graphics/libGL
XBUILD_DEPENDS+=		${LOCALBASE}/include/GL/glu.h:${PORTSDIR}/graphics/libGLU
X
XPATCH_DEPENDS=		${LOCALBASE}/bin/iconv:${PORTSDIR}/converters/iconv
X
XWRKSRC=			${WRKDIR}/${DISTNAME}
X
XUSE_DOS2UNIX=		yes
XUSE_GMAKE=		yes
XUSE_ZIP=		yes
X
Xdo-configure:
X
Xpost-extract:
X	iconv -c -f utf-8 -t ascii ${WRKSRC}/opennurbs_version.h > ${WRKSRC}/opennurbs_version.h.tmp || ${TRUE}
X	@${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
X
Xpost-patch:
X	@${MV} ${WRKSRC}/makefile ${WRKSRC}/Makefile
X
Xdo-install:
X	@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${PREFIX}/lib
X	@${MKDIR} ${PREFIX}/share/examples/openNURBS
X	@${MV} ${WRKSRC}/example_brep/example_brep  ${PREFIX}/share/examples/openNURBS/example_brep
X	@${MV} ${WRKSRC}/example_dump/example_dump  ${PREFIX}/share/examples/openNURBS/example_dump
X	@${MV} ${WRKSRC}/example_read/example_read  ${PREFIX}/share/examples/openNURBS/example_read
X	@${MV} ${WRKSRC}/example_roundtrip/example_roundtrip  ${PREFIX}/share/examples/openNURBS/example_roundtrip
X	@${MV} ${WRKSRC}/example_userdata/example_userdata  ${PREFIX}/share/examples/openNURBS/example_userdata
X	@${MV} ${WRKSRC}/example_write/example_write  ${PREFIX}/share/examples/openNURBS/example_write
X
X.include <bsd.port.mk>
c807c8847dd6ecf066f1b1a98cca62e4
echo x - opennurbs/distinfo
sed 's/^X//' >opennurbs/distinfo << '82bbb3221628d76dc9b233612e0a0ea0'
XSHA256 (opennurbs_20111122.zip) = 510f2a035c27b461d96aaef3fb51c25a49abcc0815af64d8250b668c27210bc5
XSIZE (opennurbs_20111122.zip) = 1766806
82bbb3221628d76dc9b233612e0a0ea0
echo x - opennurbs/pkg-descr
sed 's/^X//' >opennurbs/pkg-descr << '919d4b8a8febbf9168d19c74948e2e7a'
XThe openNURBS Initiative provides CAD, CAM, CAE, and computer graphics software
Xdevelopers the tools to accurately transfer 3-D geometry between applications.
X
XopenNURBS is an open source toolkit for reading and writing models in the 3DM
Xformat
X
XWWW: http://www.openNURBS.org
919d4b8a8febbf9168d19c74948e2e7a
echo c - opennurbs/files
mkdir -p opennurbs/files > /dev/null 2>&1
echo x - opennurbs/files/patch-makefile
sed 's/^X//' >opennurbs/files/patch-makefile << 'd1674a27d04ef32c23c2c94213c26961'
X--- makefile.orig	2012-01-20 20:19:57.000000000 +0100
X+++ makefile	2012-01-20 20:19:57.000000000 +0100
X@@ -446,7 +446,6 @@
X       example_write/example_write.o \
X       example_dump/example_dump.o \
X       example_brep/example_brep.o \
X-      example_fileit/example_fileit.o \
X       example_userdata/example_ud.o \
X       example_userdata/example_userdata.o \
X       example_roundtrip/example_roundtrip.o
X@@ -455,7 +454,6 @@
X       example_write/example_write \
X       example_dump/example_dump \
X       example_brep/example_brep \
X-      example_fileit/example_fileit \
X       example_roundtrip/example_roundtrip \
X       example_userdata/example_userdata
X 
X@@ -491,8 +489,6 @@
X example_brep/example_brep : example_brep/example_brep.o $(OPENNURBS_LIB_FILE)
X 	$(LINK) $(LINKFLAGS) example_brep/example_brep.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
X 
X-example_fileit/example_fileit : example_fileit/example_fileit.o $(OPENNURBS_LIB_FILE)
X-	$(LINK) $(LINKFLAGS) example_fileit/example_fileit.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
X 
X example_dump/example_dump : example_dump/example_dump.o
X 	$(LINK) $(LINKFLAGS) example_dump/example_dump.o -L. -l$(OPENNURBS_LIB_NAME) -lm -o $@
d1674a27d04ef32c23c2c94213c26961
echo x - opennurbs/files/patch-opennurbs-system.h
sed 's/^X//' >opennurbs/files/patch-opennurbs-system.h << '88d5d2252d2641173b3238a5f641bdc3'
X--- opennurbs_system.h.orig	2012-01-20 20:28:51.000000000 +0100
X+++ opennurbs_system.h	2012-01-20 20:28:32.000000000 +0100
X@@ -217,7 +217,6 @@
X #if defined(ON_COMPILER_XCODE)
X #include <malloc/malloc.h>
X #else
X-#include <malloc.h>
X #endif
X #include <string.h>
X #include <math.h>
X@@ -299,7 +298,6 @@
X /* 16-bit wide character ("UNICODE") */
X 
X #if !defined(_WCHAR_T)
X-typedef unsigned short wchar_t;
X #endif
X 
X #define _WCHAR_T_DEFINED
88d5d2252d2641173b3238a5f641bdc3
echo x - opennurbs/files/patch-opennurbs-array-defs.h
sed 's/^X//' >opennurbs/files/patch-opennurbs-array-defs.h << 'fbebadde713605bb5a7740abfd96cef9'
X--- opennurbs_array_defs.h.orig	2012-01-20 20:18:46.000000000 +0100
X+++ opennurbs_array_defs.h	2012-01-20 20:18:20.000000000 +0100
X@@ -1459,7 +1459,7 @@
X #else
X   // for lamer 64 bit compilers
X   return found ? ((int)((((ON__UINT64)found) - ((ON__UINT64)m_a))/sizeof(T))) : -1;
X-#endif#endif
X+#endif
X }
X 
X template <class T>
X@@ -1476,7 +1476,7 @@
X #else
X   // for lamer 64 bit compilers
X   return found ? ((int)((((ON__UINT64)found) - ((ON__UINT64)m_a))/sizeof(T))) : -1;
X-#endif#endif
X+#endif
X }
X 
X template <class T>
fbebadde713605bb5a7740abfd96cef9
echo x - opennurbs/pkg-plist
sed 's/^X//' >opennurbs/pkg-plist << '790a70276905f06e216db3618dfeaecf'
Xlib/libopenNURBS.a
Xshare/examples/openNURBS/example_brep
Xshare/examples/openNURBS/example_dump
Xshare/examples/openNURBS/example_read
Xshare/examples/openNURBS/example_roundtrip
Xshare/examples/openNURBS/example_userdata
Xshare/examples/openNURBS/example_write
X@dirrm share/examples/openNURBS
790a70276905f06e216db3618dfeaecf
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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