blob: 6268b65de4c81ac8d945cdbefff852c6516b5cc6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# New ports collection makefile for: opennurbs
# Date created: Aug 17 2011
# Whom: Fernando Apesteguia <fernando.apesteguia@gmail.com>
#
# $FreeBSD$
PORTNAME= opennurbs
PORTVERSION= 20111122
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://files.na.mcneel.com/opennurbs/5.0/2011-11-22/
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_GMAKE= yes
USE_ZIP= yes
USE_ICONV= build
MAKEFILE= makefile
EXAMPLESDIR= ${PREFIX}/libexec/openNURBS
pre-build:
iconv -c -f utf-8 -t ascii ${WRKSRC}/opennurbs_version.h > ${WRKSRC}/opennurbs_version.h.tmp || ${TRUE}
@${MV} ${WRKSRC}/opennurbs_version.h.tmp ${WRKSRC}/opennurbs_version.h
do-install:
@${INSTALL_DATA} ${WRKSRC}/libopenNURBS.a ${PREFIX}/lib
@${MKDIR} ${EXAMPLESDIR}
.for i in brep dump 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
.include <bsd.port.mk>
|