2004-06-12 09:01:59 -04:00
|
|
|
# New ports collection makefile for: bugle
|
|
|
|
# Date created: Jun 8, 2004
|
|
|
|
# Whom: Erik Greenwald <erik@smluc.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bugle
|
2009-11-01 12:21:52 -05:00
|
|
|
PORTVERSION= 0.0.20091026
|
2004-06-12 09:01:59 -04:00
|
|
|
CATEGORIES= graphics
|
2007-10-23 19:06:51 -04:00
|
|
|
MASTER_SITES= SF
|
2004-06-12 09:01:59 -04:00
|
|
|
|
|
|
|
MAINTAINER= erik@smluc.org
|
|
|
|
COMMENT= A debugging library for OpenGL
|
|
|
|
|
2006-06-04 20:16:04 -04:00
|
|
|
OPTIONS= AVCODEC "With avcodec support (ffmpeg)" off
|
|
|
|
OPTIONS+= GUI "With GTK support (GtkGlExt)" off
|
|
|
|
OPTIONS+= THREADS "With threading support" off
|
2004-06-16 10:53:35 -04:00
|
|
|
|
2006-04-12 11:47:02 -04:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 13:56:05 -04:00
|
|
|
USE_GL= gl
|
2004-12-01 06:01:18 -05:00
|
|
|
USE_PERL5= yes
|
2009-08-02 15:36:34 -04:00
|
|
|
USE_AUTOTOOLS= libltdl:22
|
2006-08-15 09:45:24 -04:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}
|
2006-04-12 11:47:02 -04:00
|
|
|
|
2007-07-23 05:36:51 -04:00
|
|
|
CONFIGURE_ARGS=--enable-ltdl-install=no
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 13:56:05 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib" \
|
|
|
|
GL_LIBS="-L${LOCALBASE}/lib"
|
2006-04-12 11:47:02 -04:00
|
|
|
|
2009-11-22 12:14:57 -05:00
|
|
|
MAN1= gldb.1 gldb-gui.1
|
2006-06-04 20:16:04 -04:00
|
|
|
MAN3= bugle.3
|
2009-11-22 12:14:57 -05:00
|
|
|
MAN5= bugle-statistics.5
|
|
|
|
MAN7= bugle-camera.7 bugle-checks.7 bugle-eps.7 bugle-error.7 \
|
|
|
|
bugle-exe.7 bugle-extoverride.7 bugle-frontbuffer.7 bugle-log.7 \
|
|
|
|
bugle-logstats.7 bugle-screenshot.7 bugle-showerror.7 \
|
|
|
|
bugle-showextensions.7 bugle-showstats.7 bugle-stats_basic.7 \
|
|
|
|
bugle-stats_calls.7 bugle-stats_calltimes.7 bugle-stats_fragments.7 \
|
2007-06-06 06:57:15 -04:00
|
|
|
bugle-stats_nv.7 bugle-stats_primitives.7 bugle-trace.7 \
|
2006-11-01 03:37:08 -05:00
|
|
|
bugle-unwindstack.7 bugle-wireframe.7
|
2004-06-12 09:01:59 -04:00
|
|
|
|
2006-08-15 09:45:24 -04:00
|
|
|
OPTIONS= AVCODEC "Use lavc from multimedia/ffmpeg" off
|
|
|
|
OPTIONS+= GUI "Use gktglext" off
|
|
|
|
OPTIONS+= THREADS "Use pthreads" off
|
|
|
|
|
2004-11-09 18:08:01 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-04 20:16:04 -04:00
|
|
|
.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)
|
2006-08-15 09:45:24 -04:00
|
|
|
LIB_DEPENDS+= gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
|
2006-06-04 20:16:04 -04:00
|
|
|
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
|
|
|
|
|
2008-02-01 06:57:09 -05:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Fails to link
|
|
|
|
.endif
|
|
|
|
|
2006-12-03 01:37:40 -05:00
|
|
|
post-patch:
|
2009-11-01 12:21:52 -05:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/gengl/find_header.perl
|
2006-12-03 01:37:40 -05:00
|
|
|
|
2009-11-22 12:14:57 -05:00
|
|
|
post-install:
|
2009-11-22 14:04:04 -05:00
|
|
|
@${RM} -f ${PREFIX}/lib/libbugle.la ${PREFIX}/lib/libbugleutils.la \
|
|
|
|
${PREFIX}/lib/bugle/*.la \
|
|
|
|
${PREFIX}/lib/pkgconfig/bugle.pc
|
2009-11-22 12:14:57 -05:00
|
|
|
@-${RMDIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
@${RM} -rf ${PREFIX}/share/doc/bugle
|
|
|
|
|
2004-11-09 18:08:01 -05:00
|
|
|
.include <bsd.port.post.mk>
|