freebsd-ports/graphics/quat-gui/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

61 lines
1.7 KiB
Makefile

# New ports collection makefile for: quat-gui
# Date created: 2 May 2002
# Whom: David Yeske <dyeske@gmail.com>
#
# $FreeBSD$
#
PORTNAME= quat
PORTVERSION= 1.20
PORTREVISION= 11
CATEGORIES= graphics
MASTER_SITES= http://www.physcip.uni-stuttgart.de/phy11733/download/
PKGNAMESUFFIX= -gui
DISTNAME= quat-${PORTVERSION:S/.p/pre/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A Three-dimensional fractal creator (X11 GUI)
LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk
USE_XORG= xext
USE_GL= gl glut
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-lXext -lGL" FLUID="${LOCALBASE}/bin/fluid"
CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
.if defined(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math
.endif
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
post-patch:
@${REINPLACE_CMD} -E -e \
's|^...CFLAGS=|#CFLAGS=|; \
s|^...CXXFLAGS=|#CXXFLAGS=|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -E -e 's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
${WRKSRC}/gui/Makefile.in
@${REINPLACE_CMD} -e 's|#include <FL/fl_file_chooser.H>|#include <FL/Fl_File_Chooser.H>|' \
${WRKSRC}/gui/MainWindow.cxx
# disable data file installation since distfile does not do
# The Right Thing(TM)
@${REINPLACE_CMD} -E -e \
's|^(install-data-am:).*$$|\1|' \
${WRKSRC}/Makefile.in
.ifdef NOPORTDOCS
@${REINPLACE_CMD} '/install-data-am:/s/install-pkgdataDATA//' \
${WRKSRC}/doc/Makefile.in
.endif
post-configure:
@${REINPLACE_CMD} -E -e \
's|^(pkgdatadir).*$$|\1=${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}|' \
${WRKSRC}/doc/Makefile
.include <bsd.port.mk>