2007-06-15 11:34:11 +02:00
|
|
|
# New ports collection makefile for: Shaaft
|
|
|
|
# Date created: 02 Jan 2004
|
|
|
|
# Whom: Kirill Ponomarew <krion@FreeBSD.org>
|
2004-01-02 22:33:26 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= shaaft
|
|
|
|
PORTVERSION= 0.5.0
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 11
|
2004-01-02 22:33:26 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/criticalmass/OldFiles
|
2004-01-02 22:33:26 +01:00
|
|
|
DISTNAME= Shaaft-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-05-17 20:39:48 +02:00
|
|
|
COMMENT= An OpenGL 3D falling block game similar to Blockout
|
|
|
|
|
|
|
|
CONFLICTS= criticalmass-*
|
2004-01-02 22:33:26 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-01-20 18:37:47 +01:00
|
|
|
USE_SDL= mixer image sdl
|
2004-05-17 20:39:48 +02:00
|
|
|
USE_GL= yes
|
2004-01-02 22:33:26 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-05-17 20:39:48 +02:00
|
|
|
CONFIGURE_ARGS= --disable-optimize
|
2007-06-15 11:34:11 +02:00
|
|
|
DATADIR= ${PREFIX}/share/Shaaft
|
|
|
|
|
|
|
|
PLIST_FILES= bin/Packer bin/shaaft %%DATADIR%%/resource.dat
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2004-01-02 22:33:26 +01:00
|
|
|
|
|
|
|
MAN6= ${PORTNAME}.6
|
|
|
|
|
2005-03-26 23:15:23 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "sparc64"
|
2007-06-15 11:34:11 +02:00
|
|
|
BROKEN= Does not compile on sparc64
|
2005-03-26 23:15:23 +01:00
|
|
|
.endif
|
|
|
|
|
2004-05-17 20:39:48 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
|
2007-06-15 11:34:11 +02:00
|
|
|
s|^CXXFLAGS|#CXXFLAGS|g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s|/usr/X11R6|${LOCALBASE}|g ; \
|
2007-06-15 11:34:11 +02:00
|
|
|
s|-lSDL | |g ; \
|
|
|
|
s|-lpng12|-lpng|g' ${WRKSRC}/configure
|
2004-05-17 20:39:48 +02:00
|
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|SDL/SDL|SDL|g'
|
2007-06-15 11:34:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|== 3|>= 3|' ${WRKSRC}/utils/hashMap.hpp
|
2004-05-17 20:39:48 +02:00
|
|
|
|
2005-03-26 23:15:23 +01:00
|
|
|
.include <bsd.port.post.mk>
|