blob: c4bfb12dd7ec736039882384fe2fd8eac91dad26 (
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
45
46
47
48
49
50
51
52
53
54
55
|
# New ports collection makefile for: xracer
# Date created: Nov 6th 1999
# Whom: troll
#
# $FreeBSD$
#
PORTNAME= xracer
PORTVERSION= 0.94
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_FREEBSD_ORG}
MASTER_SITE_SUBDIR= distfiles
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-data${EXTRACT_SUFX}
MAINTAINER= bsdkaffee@gmail.com
COMMENT= Awesome WipeOut clone for OpenGL and X11!
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
glut.4:${PORTSDIR}/graphics/libglut
USE_GMAKE= yes
USE_AUTOTOOLS= automake:14 autoconf:213
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --disable-esd
PORTDOCS= AUTHORS README README.html
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if ${ARCH} != i386 && ${ARCH} != "amd64"
BROKEN= Does not build on ${ARCH}
.endif
post-extract:
@${TOUCH} ${WRKSRC}/stamp-h.in
@cd ${WRKSRC} && \
${REINPLACE_CMD} -e 's|machine/joystick.h|sys/joystick.h|g' \
configure.in src/joystick/freebsd.c
${CHMOD} -R a=r ${WRKDIR}/${PORTNAME}-data
${CHMOD} -R +X ${WRKDIR}/${PORTNAME}-data
post-install:
@${MKDIR} ${DATADIR}
@${TAR} -C ${WRKDIR}/xracer-data -cf - . | \
${TAR} -C ${DATADIR} --unlink -xf -
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|