aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/osg-devel/Makefile
blob: 6786ac5852283769b7d4b34d3b2e5214cbe77cab (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
52
53
54
# 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.44
CATEGORIES= graphics
MASTER_SITES=   http://www.openscenegraph.org/download/snapshots/

MAINTAINER= aa8vb@nc.rr.com

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        ungif.5:${PORTSDIR}/graphics/libungif \
        tiff.4:${PORTSDIR}/graphics/tiff \
        freetype.9:${PORTSDIR}/print/freetype2

USE_X_PREFIX=   yes
USE_MESA=   yes
INSTALLS_SHLIB= yes
USE_GMAKE=  yes
MAKE_ENV=   OSGHOME=${WRKSRC}
ALL_TARGET= freebsd

pre-patch:
    @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
        ${WRKSRC}/src/osgPlugins/flt/Input.cpp \
        ${WRKSRC}/src/osgPlugins/flt/Record.cpp \
        ${WRKSRC}/src/osgPlugins/obj/glm.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/osgconv ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/sgv ${PREFIX}/bin
    ${FIND} ${WRKSRC}/include -name '*.orig' --delete
    ${CP} -r ${WRKSRC}/include/ ${PREFIX}/include/
    ${INSTALL_DATA} ${WRKSRC}/lib/libosg.so ${PREFIX}/lib/libosg.so.1
    ${INSTALL_DATA} ${WRKSRC}/lib/libosgDB.so ${PREFIX}/lib/libosgDB.so.1
    ${INSTALL_DATA} ${WRKSRC}/lib/libosgGLUT.so ${PREFIX}/lib/libosgGLUT.so.1
    ${INSTALL_DATA} ${WRKSRC}/lib/libosgText.so ${PREFIX}/lib/libosgText.so.1
    ${INSTALL_DATA} ${WRKSRC}/lib/libosgUtil.so ${PREFIX}/lib/libosgUtil.so.1
    ${LN} -sf ${PREFIX}/lib/libosg.so.1 ${PREFIX}/lib/libosg.so
    ${LN} -sf ${PREFIX}/lib/libosgDB.so.1 ${PREFIX}/lib/libosgDB.so
    ${LN} -sf ${PREFIX}/lib/libosgGLUT.so.1 ${PREFIX}/lib/libosgGLUT.so
    ${LN} -sf ${PREFIX}/lib/libosgText.so.1 ${PREFIX}/lib/libosgText.so
    ${LN} -sf ${PREFIX}/lib/libosgUtil.so.1 ${PREFIX}/lib/libosgUtil.so
    @${MKDIR} ${PREFIX}/lib/osgPlugins
    ${CP} -p ${WRKSRC}/lib/osgPlugins/* ${PREFIX}/lib/osgPlugins
    @${MKDIR} ${DOCSDIR}
    ${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}

.include <bsd.port.mk>