freebsd-ports/graphics/bugle/Makefile

75 lines
1.9 KiB
Makefile
Raw Normal View History

2013-05-06 10:31:29 +02:00
# Created by: Erik Greenwald <erik@smluc.org>
# $FreeBSD$
PORTNAME= bugle
PORTVERSION= 0.0.20091026
2011-06-25 00:39:03 +02:00
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= erik@bz.bzflag.bz
COMMENT= A debugging library for OpenGL
2013-05-06 10:31:29 +02:00
OPTIONS_DEFINE= AVCODEC GUI THREADS
AVCODEC_DESC= LAVC codec support
GNU_CONFIGURE= yes
USE_GL= gl
USES= perl5
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libltdl
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/${PORTNAME}
CONFIGURE_ARGS=--enable-ltdl-install=no
CPPFLAGS+= -I${LOCALBASE}/include
Support LIBS like LDFLAGS. - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
2014-06-11 16:49:59 +02:00
LIBS+= -L${LOCALBASE}/lib
MAN1= gldb.1 gldb-gui.1
MAN3= bugle.3
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 \
bugle-stats_nv.7 bugle-stats_primitives.7 bugle-trace.7 \
bugle-unwindstack.7 bugle-wireframe.7
NO_STAGE= yes
2013-05-06 10:31:29 +02:00
.include <bsd.port.options.mk>
2013-05-06 10:31:29 +02:00
.if ${PORT_OPTIONS:MAVCODEC}
CONFIGURE_ARGS+=--with-lavc
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
.else
CONFIGURE_ARGS+=--without-lavc
.endif
2013-05-06 10:31:29 +02:00
.if ${PORT_OPTIONS:MGUI}
LIB_DEPENDS+= gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
CONFIGURE_ARGS+=--with-gtk --with-gtkglext
.else
CONFIGURE_ARGS+=--without-gtk --without-gtkglext
.endif
2013-05-06 10:31:29 +02:00
.if ${PORT_OPTIONS:MTHREADS}
CONFIGURE_ARGS+=--with-threads=pthreads
.else
CONFIGURE_ARGS+=--with-threads=single
.endif
.if ${ARCH} == "sparc64"
BROKEN= Fails to link
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' ${WRKSRC}/gengl/find_header.perl
post-install:
@${RM} -f ${PREFIX}/lib/libbugle.la ${PREFIX}/lib/libbugleutils.la \
${PREFIX}/lib/bugle/*.la \
${PREFIX}/lib/pkgconfig/bugle.pc
@-${RMDIR} ${PREFIX}/lib/pkgconfig
@${RM} -rf ${PREFIX}/share/doc/bugle
2013-05-06 10:31:29 +02:00
.include <bsd.port.mk>