1999-08-01 04:17:36 +00:00
|
|
|
# New ports collection makefile for: gltron
|
|
|
|
# Date created: 24 July 1999
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1999-08-01 04:17:36 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 06:43:02 +00:00
|
|
|
PORTNAME= gltron
|
2003-12-15 18:12:40 +00:00
|
|
|
PORTVERSION= 0.70
|
2006-09-20 11:21:59 +00:00
|
|
|
PORTREVISION= 3
|
1999-08-01 04:17:36 +00:00
|
|
|
CATEGORIES= games
|
2003-12-15 18:12:40 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-04-27 18:56:10 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_SUFX= -source.tar.gz
|
1999-08-01 04:17:36 +00:00
|
|
|
|
2006-05-25 21:57:24 +00:00
|
|
|
MAINTAINER= lx@redundancy.redundancy.org
|
2003-02-20 17:32:26 +00:00
|
|
|
COMMENT= A 3D worm game for two players for X Window System
|
1999-08-01 04:17:36 +00:00
|
|
|
|
2004-03-08 01:01:31 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
2000-05-18 05:25:38 +00:00
|
|
|
|
1999-08-01 04:17:36 +00:00
|
|
|
USE_X_PREFIX= yes
|
2003-12-15 18:12:40 +00:00
|
|
|
USE_GL= yes
|
2004-03-08 01:01:31 +00:00
|
|
|
USE_SDL= sdl sound
|
2003-05-06 23:11:24 +00:00
|
|
|
USE_GMAKE= yes
|
2001-12-24 04:37:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 03:26:56 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-12-15 18:12:40 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --disable-warn
|
2003-05-06 23:11:24 +00:00
|
|
|
|
2001-12-24 04:37:06 +00:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
|
2003-05-06 23:11:24 +00:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
|
2001-12-24 04:37:06 +00:00
|
|
|
|
2003-12-15 18:12:40 +00:00
|
|
|
.if defined(WITH_SDL_NET)
|
2004-03-08 01:01:31 +00:00
|
|
|
USE_SDL+= net
|
2003-12-15 18:12:40 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-network
|
|
|
|
.endif
|
|
|
|
|
2001-12-24 04:37:06 +00:00
|
|
|
post-patch:
|
2003-12-15 18:12:40 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|CFLAGS="-D|CFLAGS="$$CFLAGS -D|g ; \
|
|
|
|
s|-O$$enable_optimize||g' ${WRKSRC}/configure
|
2003-05-06 23:11:24 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
2003-12-15 18:12:40 +00:00
|
|
|
's|^AM_CFLAGS|INCLUDES|g ; \
|
|
|
|
s|^AM_CXXFLAGS|INCLUDES|g ; \
|
|
|
|
s|-ansi -pedantic||g'
|
1999-08-01 04:17:36 +00:00
|
|
|
|
2003-05-06 23:11:24 +00:00
|
|
|
post-install:
|
1999-08-01 04:17:36 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-24 04:37:06 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2003-12-15 18:12:40 +00:00
|
|
|
.for file in ChangeLog README
|
2001-12-24 04:37:06 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
1999-08-25 07:04:00 +00:00
|
|
|
.endfor
|
1999-08-01 04:17:36 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|