aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/bugle/Makefile
blob: 0fd0a7c3cac1c244dc8fe264a522a50288af2064 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# New ports collection makefile for:    bugle
# Date created:         Jun 8, 2004
# Whom:             Erik Greenwald <erik@smluc.org>
#
# $FreeBSD$
#

PORTNAME=   bugle
PORTVERSION=    0.0.20060827
CATEGORIES= graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= erik@smluc.org
COMMENT=    A debugging library for OpenGL

OPTIONS=    AVCODEC "With avcodec support (ffmpeg)" off
OPTIONS+=   GUI "With GTK support (GtkGlExt)" off
OPTIONS+=   THREADS "With threading support" off

GNU_CONFIGURE=  yes
USE_GCC=    3.4
USE_GL=     yes
USE_PERL5=  yes
USE_AUTOTOOLS=  libltdl:15
USE_LDCONFIG=   ${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}

CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=--enable-ltdl-install=no
CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
        LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"

MAN1=   gldb.1
MAN3=   bugle.3
MAN7=   bugle-camera.7 bugle-checks.7 bugle-eps.7 bugle-error.7 \
    bugle-frontbuffer.7 bugle-log.7 bugle-screenshot.7 \
    bugle-showerror.7 bugle-showextensions.7 bugle-showstats.7 \
    bugle-stats.7 bugle-trace.7 bugle-unwindstack.7 bugle-wireframe.7

OPTIONS=    AVCODEC "Use lavc from multimedia/ffmpeg"   off
OPTIONS+=   GUI "Use gktglext"              off
OPTIONS+=   THREADS "Use pthreads"              off

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
IGNORE=     requires perl 5.6.x or later to build. Install lang/perl5.8 then try again
.endif

.if defined(WITH_AVCODEC)
CONFIGURE_ARGS+=--with-lavc
LIB_DEPENDS+=   avcodec.1:${PORTSDIR}/multimedia/ffmpeg
.else
CONFIGURE_ARGS+=--without-lavc
.endif

.if defined(WITH_GUI)
LIB_DEPENDS+=   gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
CONFIGURE_ARGS+=--with-gtk --with-gtkglext
.else
CONFIGURE_ARGS+=--without-gtk --without-gtkglext
.endif

.if defined(WITH_THREADS)
CONFIGURE_ARGS+=--with-threads=pthreads
.else
CONFIGURE_ARGS+=--with-threads=single
.endif

.include <bsd.port.post.mk>