2012-10-26 16:03:38 +02:00
|
|
|
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
2005-10-04 13:07:34 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= annelid
|
|
|
|
PORTVERSION= 1
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 5
|
2005-10-04 13:07:34 +02:00
|
|
|
CATEGORIES= games
|
2012-10-26 16:03:38 +02:00
|
|
|
MASTER_SITES= http://www.garthgillespie.com/annelid/
|
2005-10-04 13:07:34 +02:00
|
|
|
DISTFILES= ${PORTNAME}-src${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-media${EXTRACT_SUFX}
|
|
|
|
|
2011-02-27 05:54:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-10-04 13:07:34 +02:00
|
|
|
COMMENT= Remake of the ubiquitous "Snake" and "Worm" games
|
|
|
|
|
|
|
|
RESTRICTED= No redistribution allowed
|
|
|
|
|
2013-10-29 21:24:04 +01:00
|
|
|
USES= gmake
|
2005-10-04 13:07:34 +02:00
|
|
|
USE_ZIP= yes
|
|
|
|
USE_SDL= sdl
|
- 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
|
|
|
USE_GL= gl
|
2005-10-04 13:07:34 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
|
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
|
2005-10-04 13:07:34 +02:00
|
|
|
|
|
|
|
SUB_FILES= ${PORTNAME}-sh
|
|
|
|
|
|
|
|
DATAFILES= annelid.dat apple.tga apple.wav backd.tga backn.tga font.dat \
|
|
|
|
font.tga front.tga grow.wav head.tga powerup.tga readme.txt \
|
|
|
|
score.wav segment.tga shrink.wav slow.wav speed.wav title.tga \
|
|
|
|
vortex.wav
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2005-10-04 13:07:34 +02:00
|
|
|
|
|
|
|
post-patch:
|
2006-04-24 23:01:09 +02:00
|
|
|
# Fix Makefile.
|
2005-10-04 13:07:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%CFLAGS%%|${CFLAGS}| ; \
|
- 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|%%LOCALBASE%%|${LOCALBASE}| ; \
|
2006-04-24 23:01:09 +02:00
|
|
|
s|sdl-config|${SDL_CONFIG}|' \
|
|
|
|
${WRKSRC}/${MAKEFILE}
|
2005-10-04 13:07:34 +02:00
|
|
|
|
2006-04-24 23:01:09 +02:00
|
|
|
# Fix SDL include statement.
|
2005-10-04 13:07:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|' \
|
2006-04-24 23:01:09 +02:00
|
|
|
${WRKSRC}/*.cpp ${WRKSRC}/*.h
|
2005-10-04 13:07:34 +02:00
|
|
|
|
2006-04-24 23:01:09 +02:00
|
|
|
# Enable/disable compilation optimizations.
|
2012-06-12 18:35:45 +02:00
|
|
|
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
|
2005-10-04 13:07:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
|
|
|
|
.endif
|
|
|
|
|
2006-04-24 23:01:09 +02:00
|
|
|
do-install:
|
2013-10-29 21:24:04 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
2006-04-24 23:01:09 +02:00
|
|
|
.for f in ${DATAFILES}
|
2013-10-29 21:24:04 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
|
2006-04-24 23:01:09 +02:00
|
|
|
.endfor
|
|
|
|
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.mk>
|