aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/osgearth/Makefile
blob: 1619cb25be7b84affc99fd88968bc007cc927499 (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
# Created by: lbartoletti <coder@tuxfamily.org>
# $FreeBSD$

PORTNAME=   osgearth
PORTVERSION=    2.8
DISTVERSIONPREFIX=  ${PORTNAME}-
CATEGORIES= graphics geography

MAINTAINER= lbartoletti@tuxfamily.org
COMMENT=    C++ terrain rendering toolkit for OpenSceneGraph

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS=  minizip:archivers/minizip
LIB_DEPENDS=    libosg.so:graphics/osg \
        libgdal.so:graphics/gdal \
        libcurl.so:ftp/curl

USES=       cmake pkgconfig sqlite

USE_GITHUB= yes
GH_ACCOUNT= gwaldron

USE_LDCONFIG=   yes
USE_GL+=    gl glu
PLIST_SUB=  OSGVERSION=3.4.0

CMAKE_ARGS+=    -DCMAKE_INCLUDE_PATH:PATH=${LOCALBASE}/include \
        -DMINIZIP_INCLUDE_DIR=${LOCALBASE}/include/minizip \
        -DCMAKE_LIBRARY_PATH:PATH=${LOCALBASE}/lib \
        -DLIB_POSTFIX:STRING="" \
        -DOSGEARTH_USE_QT:BOOL=FALSE

.include <bsd.port.mk>