mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
44 lines
1.0 KiB
Makefile
44 lines
1.0 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= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/tuxaqfh/tuxaqfh/${PORTVERSION}-classic
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= An OpenGL adventure game
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
|
|
|
|
USE_GL= glut
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lusbhid ${PTHREAD_LIBS}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
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.post.mk>
|