1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/games/xracer/Makefile
Tim Bishop 75e390737c - Add MASTER_SITE_SUBDIR to make fetchable
PR:		93672
Submitted by:	Jason E. Hale <bsdkaffee@gmail.com> (maintainer)
2006-02-22 14:47:24 +00:00

56 lines
1.4 KiB
Makefile

# 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>