1999-02-04 01:40:48 +01:00
|
|
|
# New ports collection makefile for: mirrormagic
|
|
|
|
# Date created: 1 April 1998
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-02-04 01:40:48 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 14:28:40 +02:00
|
|
|
PORTNAME= mirrormagic
|
2006-01-25 18:07:30 +01:00
|
|
|
PORTVERSION= 2.0.2
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 9
|
2000-04-02 03:00:24 +02:00
|
|
|
CATEGORIES= games
|
2007-11-05 12:20:01 +01:00
|
|
|
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/mirrormagic/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
1999-02-04 01:40:48 +01:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2003-02-20 18:32:26 +01:00
|
|
|
COMMENT= An arcade style game with stereo sound for X Window System
|
1999-02-04 01:40:48 +01:00
|
|
|
|
2006-01-25 18:07:30 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ARGS= CC="${CC}" MAKE="${GMAKE}" OPTIONS="${CFLAGS}" \
|
|
|
|
RO_GAME_DIR="${DATADIR}" RW_GAME_DIR="${DATADIR}/scores" \
|
- 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
|
|
|
X11_PATH="${LOCALBASE}"
|
2007-11-05 12:20:01 +01:00
|
|
|
WANT_SDL= yes
|
|
|
|
|
|
|
|
OPTIONS= SDL "SDL support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
1999-02-04 01:40:48 +01:00
|
|
|
|
2008-03-17 17:39:14 +01:00
|
|
|
.if !defined(WITHOUT_SDL)
|
2006-01-25 18:07:30 +01:00
|
|
|
USE_SDL= image mixer sdl
|
|
|
|
ALL_TARGET= sdl
|
|
|
|
.else
|
2008-03-17 17:39:14 +01:00
|
|
|
USE_XORG= x11
|
2006-01-25 18:07:30 +01:00
|
|
|
ALL_TARGET= x11
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|$$(SDL_CONFIG)|g' \
|
|
|
|
${WRKSRC}/src/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \
|
|
|
|
${WRKSRC}/src/libgame/sound.h
|
|
|
|
@${REINPLACE_CMD} -e 's|machine/joystick.h|sys/joystick.h|' \
|
|
|
|
${WRKSRC}/src/tools.c
|
1999-02-04 01:40:48 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-01-25 18:07:30 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mirrormagic ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${TAR} -C ${WRKSRC} -cf - graphics levels music scores sounds | \
|
|
|
|
${TAR} -C ${DATADIR} -xf -
|
|
|
|
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
|
|
|
@${CHMOD} 777 ${DATADIR}/scores
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in CHANGES CREDITS README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
1999-02-04 01:40:48 +01:00
|
|
|
.endfor
|
2006-01-25 18:07:30 +01:00
|
|
|
.endif
|
1999-02-04 01:40:48 +01:00
|
|
|
|
2007-05-27 05:03:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|