blob: 60afa0358126b156aa5d67d68aa073d2e082206e (
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
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: vterrain-sdk virtual terrain development and modeling libraries
# Date created: 27 Apr 2001
# Whom: Randall Hopper
#
# $FreeBSD$
#
PORTNAME= vterrain-sdk
PORTVERSION= 010829
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_LOCAL} \
ftp://ftp.vterrain.org/pub/vterrain/dist/
MASTER_SITE_SUBDIR= rhh
DISTNAME= TerrainSDK-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Virtual Terrain Project Software Development Kit
BUILD_DEPENDS= ${X11BASE}/lib/libosg.so:${PORTSDIR}/graphics/osg
RUN_DEPENDS= ${X11BASE}/lib/libosg.so:${PORTSDIR}/graphics/osg
LIB_DEPENDS= netcdf.1:${PORTSDIR}/math/netcdf \
png.5:${PORTSDIR}/graphics/png
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" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
#PREFIX seems broken - Uses /usr/local even if USE_X_PREFIX set
PREFIX= ${X11BASE}
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>
|