blob: 7c0d4fe869c6ae79ed4c4c5c7f1790feaac070a7 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
|
# New ports collection makefile for: vterrain-sdk
# Date created: 27 Apr 2001
# Whom: Randall Hopper <aa8vb@nc.rr.com>
#
# $FreeBSD$
#
PORTNAME= vterrain-sdk
PORTVERSION= 010423
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.vterrain.org/pub/vterrain/dist/ \
http://www.boost.org/libs/dir_it/
DISTFILES= ${EXTRACT_ONLY} \
dir_it.zip
EXTRACT_ONLY= TerrainSDK-${PORTVERSION}.zip
MAINTAINER= aa8vb@nc.rr.com
LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf \
shp.1:${PORTSDIR}/devel/shapelib \
png.4:${PORTSDIR}/graphics/png \
osg.1:${PORTSDIR}/graphics/osg \
projection.1:${PORTSDIR}/misc/projectionlib
WRKSRC= ${WRKDIR}/TerrainSDK
USE_ZIP= yes
EXTRACT_BEFORE_ARGS+= -a
USE_X_PREFIX= yes
USE_MESA= yes
INSTALLS_SHLIB= yes
USE_GMAKE= yes
MAKE_ENV= CXX="${CXX}" \
COPT="${CXXFLAGS} -fpic -DPIC"
post-extract:
cd ${WRKSRC}/vtdata && \
unzip -aj ${DISTDIR}/dir_it.zip boost/directory.h src/directory.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vtdata/libvtdata.so ${PREFIX}/lib/libvtdata.so.1
${INSTALL_PROGRAM} ${WRKSRC}/vtlib/vtosg/libvtosg.so ${PREFIX}/lib/libvtosg.so.1
${LN} -sf libvtdata.so.1 ${PREFIX}/lib/libvtdata.so
${LN} -sf libvtosg.so.1 ${PREFIX}/lib/libvtosg.so
${MKDIR} ${PREFIX}/include/TerrainSDK
cd ${WRKSRC} && \
find . -name '*.h' -o -name '*.inl' \
| cpio -dumpv ${PREFIX}/include/TerrainSDK
find ${PREFIX}/include/TerrainSDK -type d | xargs ${CHMOD} 755
find ${PREFIX}/include/TerrainSDK -type f | xargs ${CHMOD} 644
.include <bsd.port.mk>
|