2012-10-28 22:40:09 +01:00
|
|
|
# Created by: Fernando Apesteguia <fernando.apesteguia@gmail.com>
|
2012-02-18 15:03:47 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opennurbs
|
2012-11-06 23:07:17 +01:00
|
|
|
PORTVERSION= 20121024
|
2013-10-12 04:45:50 +02:00
|
|
|
PORTREVISION= 1
|
2012-02-18 15:03:47 +01:00
|
|
|
CATEGORIES= graphics
|
2012-11-06 23:07:17 +01:00
|
|
|
MASTER_SITES= http://files.na.mcneel.com/opennurbs/5.0/2012-10-24/
|
2012-02-18 15:03:47 +01:00
|
|
|
MASTER_SITE_SUBDIR=${PORTNAME}_${PORTVERSION}
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= fernando.apesteguia@gmail.com
|
|
|
|
COMMENT= Tools to accurately transfer 3-D geometry between applications
|
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= iconv:build dos2unix gmake zip
|
2014-05-20 21:32:39 +02:00
|
|
|
MAKE_ARGS= CC="${CC}" CCC="${CXX}"
|
2012-02-18 15:03:47 +01:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
2013-10-12 04:45:50 +02:00
|
|
|
EXAMPLESDIR= ${STAGEDIR}${PREFIX}/libexec/openNURBS
|
2012-02-18 15:03:47 +01:00
|
|
|
|
2013-09-11 15:14:22 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != i386
|
|
|
|
MAKE_ARGS+= ON_GNU_OPTIMIZER_FLAGS="-g -fPIC"
|
|
|
|
.endif
|
|
|
|
|
2012-02-18 15:03:47 +01:00
|
|
|
pre-build:
|
2013-09-07 23:48:14 +02:00
|
|
|
${ICONV_CMD} -c -f utf-8 -t ascii ${WRKSRC}/opennurbs_version.h > ${WRKSRC}/opennurbs_version.h.tmp || ${TRUE}
|
2012-02-18 15:03:47 +01:00
|
|
|
@${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
|
|
|
|
|
|
|
|
do-install:
|
2013-10-12 04:45:50 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${STAGEDIR}${PREFIX}/lib
|
2012-02-18 15:03:47 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2012-10-28 22:40:09 +01:00
|
|
|
.for i in brep read roundtrip userdata write
|
2012-02-18 15:03:47 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/example_${i}/example_${i} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
2013-10-12 04:45:50 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/openNURBS/zlib
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.h ${STAGEDIR}${PREFIX}/include/openNURBS/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/zlib/*.h ${STAGEDIR}${PREFIX}/include/openNURBS/zlib
|
2012-02-18 15:03:47 +01:00
|
|
|
|
2013-09-11 15:14:22 +02:00
|
|
|
.include <bsd.port.post.mk>
|