freebsd-ports/games/tux-aqfh/Makefile
Sergey Matveychuk b4d2ac42d7 - Update graphics/libglut to 6.4.1.
- Shared lib version and PORTREVISION bumb for all affected ports.

While I'm here:
- Remove USE_MESA knob where it was (35 ports).
  It marked as depricated for 2 years.

PR:		ports/90247
Submitted by:	Ermal Lu?i <eri--@albabsd.org>
2006-01-12 12:54:32 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: tux-aqfh
# Date created: 10 Jun 2001
# Whom: Alexander Langer <alex@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= tux_aqfh
PORTVERSION= 1.0.14
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://tuxaqfh.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= An OpenGL adventure game
BUILD_DEPENDS= ${X11BASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut
USE_X_PREFIX= yes
USE_GL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-plib=${X11BASE}
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib -lusbhid ${PTHREAD_LIBS}
post-patch:
@${REINPLACE_CMD} -e \
's|-lplibsl -lplibssg|-lplibsl -lplibjs -lplibssg|g ; \
s|-O6||g ; \
s|-lpthread||g ; \
s|datadir/games|datadir|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(prefix)/games|@bindir@|g ; \
s|$$(datadir)/games|$$(datadir)|g'
.include <bsd.port.mk>