blob: 221ce0299ceab1322c4c4a9ccaf8b7039f159f45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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= http://tuxaqfh.sourceforge.net/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= An OpenGL adventure game
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
USE_GL= glut
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -lusbhid ${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800000
BROKEN= does not compile: error: plib/js.h: No such file or directory
.endif
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>
|