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
|
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
|
|
|
|
|
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
USE_ZIP= yes
|
2013-09-07 23:48:14 +02:00
|
|
|
USES= iconv:build gmake
|
2013-08-28 07:55:17 +02:00
|
|
|
MAKE_ARGS= CC=${CC} CCC=${CXX}
|
2012-02-18 15:03:47 +01:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
EXAMPLESDIR= ${PREFIX}/libexec/openNURBS
|
|
|
|
|
|
|
|
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:
|
2012-04-02 18:47:38 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${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
|
2012-03-19 15:03:54 +01:00
|
|
|
@${MKDIR} ${PREFIX}/include/openNURBS/zlib
|
2012-03-22 18:36:16 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/openNURBS/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/zlib/*.h ${PREFIX}/include/openNURBS/zlib
|
2012-02-18 15:03:47 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|