1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/games/etracer/Makefile
Koop Mast 5aa7246575 Switch from libglut to freeglut and retire libglut. Libglut hasn't been
developed in years and has been dropped from the MESA 8.0 distribution.
Freeglut is a rewrite of glut and is actively developed and is used by
many linux distributions instead of libglut.

Bump all ports that directly depend on libglut because of the shlib version
change.

There are some extra items in this patch.

*) Because freeglut doesn't have the same dependancies as libglut, some ports
	need extra dependencies added to USE_XORG to make them build.
*) Mark graphics/f90gl broken, f90gl depends on a header that is only shipped
	with libglut.
*) Remove option for libglut/freeglut selection in games/cake, only freeglut
	remains now.
*) While here fix a png related build issue games/vegastrike.

Thanks to miwi for running the exp-run.

Approved by:	portmgr (miwi)

Collaboration with:	zeising@
Obtained from:	xorg-dev staging area.
2012-08-04 22:52:02 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: extreme tux racer
# Date created: 22 February 2008
# Whom: Peter Dunning
#
# $FreeBSD$
#
PORTNAME= etracer
PORTVERSION= 0.4
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/extremetuxracer/extreme-tuxracer/${PORTVERSION}
DISTNAME= extremetuxracer-${PORTVERSION}
MAINTAINER= peter_dunning@dsl.pipex.com
COMMENT= The latest and greatest fork of the classic Tux Racer
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
freetype.9:${PORTSDIR}/print/freetype2
USE_SDL= mixer sdl
USE_XORG= x11 xi xext xmu xt
USE_GL= gl glu glut
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_TCL= 84+
.include <bsd.port.pre.mk>
CONFIGURE_ARGS= --with-tcl="${TCL_LIBDIR}" \
--with-tcl-inc="${TCL_INCLUDEDIR}" \
--with-gl-libs="${LOCALBASE}/lib" \
--with-gl-inc="${LOCALBASE}/include"
post-patch:
${REINPLACE_CMD} -e 's|libpng12|libpng15|g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|int_p_NULL|NULL|g' \
-e 's|png_infopp_NULL|NULL|g' \
${WRKSRC}/src/ppgltk/images/png_reader.cpp
.include <bsd.port.post.mk>