svn commit: r378605 - head/graphics/opennurbs

Kurt Jaeger pi at FreeBSD.org
Sat Feb 7 17:09:46 UTC 2015


Author: pi
Date: Sat Feb  7 17:09:45 2015
New Revision: 378605
URL: https://svnweb.freebsd.org/changeset/ports/378605
QAT: https://qat.redports.org/buildarchive/r378605/

Log:
  graphics/opennurbs: use SRC_BASE and IGNORE if not available
  
  As suggested by jbeich.
  
  PR:		197394
  Submitted by:	Fernando Apesteguía <fernando.apesteguia at gmail.com> (maintainer)

Modified:
  head/graphics/opennurbs/Makefile

Modified: head/graphics/opennurbs/Makefile
==============================================================================
--- head/graphics/opennurbs/Makefile	Sat Feb  7 17:05:07 2015	(r378604)
+++ head/graphics/opennurbs/Makefile	Sat Feb  7 17:09:45 2015	(r378605)
@@ -23,6 +23,11 @@ MKFILE=		${EXAMPLESDIR}/bsd.openNURBS.mk
 
 .include <bsd.port.pre.mk>
 
+pre-fetch:
+.if !exists(${SRC_BASE})
+IGNORE=	needs SRC_BASE to compile. Install base system sources and try again
+.endif
+
 .if ${ARCH} != i386
 MAKE_ARGS+=	ON_GNU_OPTIMIZER_FLAGS="-g -fPIC"
 .endif
@@ -32,7 +37,7 @@ pre-build:
 		> ${WRKSRC}/opennurbs_version.h.tmp || ${TRUE}
 	${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
 	${MV} ${WRKSRC}/zlib ${WRKSRC}/zlib_
-	${CP} -R /usr/src/lib/libz ${WRKSRC}/zlib
+	${CP} -R ${SRC_BASE}/lib/libz ${WRKSRC}/zlib
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} \


More information about the svn-ports-head mailing list