Bug 182883 - [maintainer update] graphics/opennurbs STAGEDIR support
Summary: [maintainer update] graphics/opennurbs STAGEDIR support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Danilo Egea Gondolfo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-10 22:20 UTC by Fernando Apesteguía
Modified: 2013-10-12 03:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.60 KB, patch)
2013-10-10 22:20 UTC, Fernando Apesteguía
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Apesteguía freebsd_committer freebsd_triage 2013-10-10 22:20:00 UTC
This patch makes graphics/opennurbs compile and package the software correctly with the new STAGEDIR feature.

Be aware that this patch also changes the position of the PORTREVISION variable.

So the PR: ports/182491: [maintainer update] 'unbreaking' port test in graphics/opennurbs

Is not necessary if this one is committed first.

This port needs to work in order to make others like cad/openvsp work properly.

Fix: Apply the attached patch.

Tested in redports.org

[1]https://redports.org/~fernape/20131009174000-25030-151134/opennurbs-20121024_1.log

[2] https://redports.org/~fernape/20131009174000-25030-151135/opennurbs-20121024_1.log

Patch attached with submission follows:
Comment 1 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-11 17:51:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->danilo

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-12 03:45:58 UTC
Author: danilo
Date: Sat Oct 12 02:45:50 2013
New Revision: 330112
URL: http://svnweb.freebsd.org/changeset/ports/330112

Log:
  - Add stage support
  
  PR:		ports/182883
  Submitted by:	Fernando <fernando.apesteguia@gmail.com> (maintainer)
  Approved by:	wg/culot (mentors, implicit)

Modified:
  head/graphics/opennurbs/Makefile

Modified: head/graphics/opennurbs/Makefile
==============================================================================
--- head/graphics/opennurbs/Makefile	Sat Oct 12 02:24:14 2013	(r330111)
+++ head/graphics/opennurbs/Makefile	Sat Oct 12 02:45:50 2013	(r330112)
@@ -3,11 +3,11 @@
 
 PORTNAME=	opennurbs
 PORTVERSION=	20121024
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://files.na.mcneel.com/opennurbs/5.0/2012-10-24/
 MASTER_SITE_SUBDIR=${PORTNAME}_${PORTVERSION}
 DISTNAME=	${PORTNAME}_${PORTVERSION}
-PORTREVISION=	1
 
 MAINTAINER=	fernando.apesteguia@gmail.com
 COMMENT=	Tools to accurately transfer 3-D geometry between applications
@@ -18,9 +18,8 @@ USES=		iconv:build gmake
 MAKE_ARGS=	CC=${CC} CCC=${CXX}
 
 MAKEFILE=	makefile
-EXAMPLESDIR=	${PREFIX}/libexec/openNURBS
+EXAMPLESDIR=	${STAGEDIR}${PREFIX}/libexec/openNURBS
 
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} != i386
@@ -32,13 +31,13 @@ pre-build:
 	@${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
 
 do-install:
-	@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${PREFIX}/lib
+	@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${STAGEDIR}${PREFIX}/lib
 	@${MKDIR} ${EXAMPLESDIR}
 .for i in brep read roundtrip userdata write
 	@${INSTALL_PROGRAM} ${WRKSRC}/example_${i}/example_${i} ${EXAMPLESDIR}
 .endfor
-	@${MKDIR} ${PREFIX}/include/openNURBS/zlib
-	@${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/openNURBS/
-	@${INSTALL_DATA} ${WRKSRC}/zlib/*.h ${PREFIX}/include/openNURBS/zlib
+	@${MKDIR} ${STAGEDIR}${PREFIX}/include/openNURBS/zlib
+	@${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/openNURBS/
+	@${INSTALL_DATA} ${WRKSRC}/zlib/*.h ${STAGEDIR}${PREFIX}/include/openNURBS/zlib
 
 .include <bsd.port.post.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Danilo Egea Gondolfo freebsd_committer freebsd_triage 2013-10-12 03:45:59 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!