2004-06-12 15:01:59 +02:00
|
|
|
# New ports collection makefile for: bugle
|
|
|
|
# Date created: Jun 8, 2004
|
|
|
|
# Whom: Erik Greenwald <erik@smluc.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bugle
|
2009-11-01 18:21:52 +01:00
|
|
|
PORTVERSION= 0.0.20091026
|
2011-06-25 00:39:03 +02:00
|
|
|
PORTREVISION= 2
|
2004-06-12 15:01:59 +02:00
|
|
|
CATEGORIES= graphics
|
2007-10-24 01:06:51 +02:00
|
|
|
MASTER_SITES= SF
|
2004-06-12 15:01:59 +02:00
|
|
|
|
2010-12-02 00:12:16 +01:00
|
|
|
MAINTAINER= erik@bz.bzflag.bz
|
2004-06-12 15:01:59 +02:00
|
|
|
COMMENT= A debugging library for OpenGL
|
|
|
|
|
2006-06-05 02:16:04 +02:00
|
|
|
OPTIONS= AVCODEC "With avcodec support (ffmpeg)" off
|
|
|
|
OPTIONS+= GUI "With GTK support (GtkGlExt)" off
|
|
|
|
OPTIONS+= THREADS "With threading support" off
|
2004-06-16 16:53:35 +02:00
|
|
|
|
2006-04-12 17:47:02 +02: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 19:56:05 +02:00
|
|
|
USE_GL= gl
|
2004-12-01 12:01:18 +01:00
|
|
|
USE_PERL5= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libltdl
|
2006-08-15 15:45:24 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}
|
2006-04-12 17:47:02 +02:00
|
|
|
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS=--enable-ltdl-install=no
|
2011-09-24 00:26:39 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \
|
- 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 19:56:05 +02:00
|
|
|
GL_LIBS="-L${LOCALBASE}/lib"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2006-04-12 17:47:02 +02:00
|
|
|
|
2009-11-22 18:14:57 +01:00
|
|
|
MAN1= gldb.1 gldb-gui.1
|
2006-06-05 02:16:04 +02:00
|
|
|
MAN3= bugle.3
|
2009-11-22 18:14:57 +01: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 12:57:15 +02:00
|
|
|
bugle-stats_nv.7 bugle-stats_primitives.7 bugle-trace.7 \
|
2006-11-01 09:37:08 +01:00
|
|
|
bugle-unwindstack.7 bugle-wireframe.7
|
2004-06-12 15:01:59 +02:00
|
|
|
|
2006-08-15 15:45:24 +02:00
|
|
|
OPTIONS= AVCODEC "Use lavc from multimedia/ffmpeg" off
|
|
|
|
OPTIONS+= GUI "Use gktglext" off
|
|
|
|
OPTIONS+= THREADS "Use pthreads" off
|
|
|
|
|
2004-11-10 00:08:01 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-06-05 02:16:04 +02: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 15:45:24 +02:00
|
|
|
LIB_DEPENDS+= gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
|
2006-06-05 02:16:04 +02: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 12:57:09 +01:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Fails to link
|
|
|
|
.endif
|
|
|
|
|
2006-12-03 07:37:40 +01:00
|
|
|
post-patch:
|
2009-11-01 18:21:52 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/gengl/find_header.perl
|
2006-12-03 07:37:40 +01:00
|
|
|
|
2009-11-22 18:14:57 +01:00
|
|
|
post-install:
|
2009-11-22 20:04:04 +01:00
|
|
|
@${RM} -f ${PREFIX}/lib/libbugle.la ${PREFIX}/lib/libbugleutils.la \
|
|
|
|
${PREFIX}/lib/bugle/*.la \
|
|
|
|
${PREFIX}/lib/pkgconfig/bugle.pc
|
2009-11-22 18:14:57 +01:00
|
|
|
@-${RMDIR} ${PREFIX}/lib/pkgconfig
|
|
|
|
@${RM} -rf ${PREFIX}/share/doc/bugle
|
|
|
|
|
2004-11-10 00:08:01 +01:00
|
|
|
.include <bsd.port.post.mk>
|