aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/osg-devel/Makefile
blob: 0aafc12f3be773cb0a9997a252b22f438db54b98 (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
# New ports collection makefile for:    Open Scene Graph
# Date created:             26 Apr 2001
# Whom:                 Randall Hopper <aa8vb@nc.rr.com>
#
# $FreeBSD$
#

PORTNAME=   osg
PORTVERSION=    0.8.38
CATEGORIES= graphics
MASTER_SITES=   http://www.openscenegraph.org/download/snapshots/
DISTNAME=   ${PORTNAME}_src-0.8-38

MAINTAINER= aa8vb@nc.rr.com

WRKSRC=     ${WRKDIR}/OpenSceneGraph-0.8

USE_X_PREFIX=   yes
USE_MESA=   yes
INSTALLS_SHLIB= yes
USE_GMAKE=  yes
MAKE_ENV=   CXX="${CXX}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}" \
        PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"

ALL_TARGET= freebsd

post-patch:
.for suf in defs rules
    @${LN} -sf ${WRKSRC}/Make/make${suf}.linux \
        ${WRKSRC}/Make/make${suf}.freebsd
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
    ${TAR} -C ${WRKSRC}/include -c -f - . | \
        ${TAR} -C ${PREFIX}/include --unlink -x -f -
.for lib in osg osgUtil osgGLUT
    ${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${lib}.so \
        ${PREFIX}/lib/lib${lib}.so.1
    ${LN} -sf lib${lib}.so.1 ${PREFIX}/lib/lib${lib}.so
.endfor
    ${MKDIR} ${PREFIX}/lib/osgPlugins
    ${INSTALL_PROGRAM} ${WRKSRC}/lib/osgPlugins/*.so \
        ${PREFIX}/lib/osgPlugins
    ${MKDIR} ${PREFIX}/share/doc/osg
    ${TAR} -C ${WRKSRC}/doc -c -f - . | \
        ${TAR} -C ${PREFIX}/share/doc/osg --unlink -x -f -

.include <bsd.port.mk>