2013-03-18 18:51:43 +01:00
|
|
|
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
2004-07-05 23:51:01 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bugsquish
|
|
|
|
PORTVERSION= 0.0.6
|
2014-01-15 11:24:58 +01:00
|
|
|
PORTREVISION= 11
|
2004-07-05 23:51:01 +02:00
|
|
|
CATEGORIES= games
|
2012-09-10 03:58:17 +02:00
|
|
|
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/bugsquish/src/ \
|
2014-01-15 11:24:58 +01:00
|
|
|
ftp://ftp.billsgames.com/unix/x/bugsquish/src/ \
|
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:music
|
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}_music${EXTRACT_SUFX}:music
|
2004-07-05 23:51:01 +02:00
|
|
|
|
2013-12-18 11:20:48 +01:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2012-09-10 03:58:17 +02:00
|
|
|
COMMENT= Action game not unlike light gun arcade games
|
2004-07-05 23:51:01 +02:00
|
|
|
|
2012-09-10 03:58:17 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-01-15 11:24:58 +01:00
|
|
|
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg
|
|
|
|
|
|
|
|
USES= gmake
|
2012-09-10 03:58:17 +02:00
|
|
|
USE_SDL= image mixer sdl
|
2004-07-05 23:51:01 +02:00
|
|
|
|
2012-09-10 03:58:17 +02:00
|
|
|
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
|
|
|
|
|
2014-01-15 11:24:58 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="Bug Squish" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
2013-03-18 18:51:43 +01:00
|
|
|
|
2014-01-15 11:24:58 +01:00
|
|
|
post-extract:
|
|
|
|
${TAR} xfjp ${_DISTDIR}/${PORTNAME}_music${EXTRACT_SUFX} -C \
|
|
|
|
${WRKSRC}/data/music/
|
|
|
|
@cd ${WRKSRC}/data/music ; ${RM} -f *.mod
|
|
|
|
@${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -fr
|
2013-03-18 18:51:43 +01:00
|
|
|
|
2012-09-10 03:58:17 +02:00
|
|
|
post-patch:
|
2014-01-15 11:24:58 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/bugsquish/|${DATADIR}/| ; \
|
|
|
|
s|CFLAGS=-Wall -O2|CFLAGS+=| ; \
|
|
|
|
s|SDL_CFLAGS :=|SDL_CFLAGS+=| ; \
|
|
|
|
s|SDL_LDFLAGS :=|SDL_LDFLAGS+=|' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's|corpses.mod|corpses.ogg| ; \
|
|
|
|
s|adventures.mod|adventures.ogg|' \
|
|
|
|
${WRKSRC}/bugsquish.c
|
2012-09-10 03:58:17 +02:00
|
|
|
|
2004-07-05 23:51:01 +02:00
|
|
|
do-install:
|
2014-01-15 11:24:58 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
2012-09-10 03:58:17 +02:00
|
|
|
|
|
|
|
. for d in embedded images music sounds
|
2014-01-15 11:24:58 +01:00
|
|
|
@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
2012-09-10 03:58:17 +02:00
|
|
|
. endfor
|
|
|
|
|
2014-01-15 11:24:58 +01:00
|
|
|
${LN} -sf ${PREFIX}/share/bugsquish/images/icon.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
2012-09-10 03:58:17 +02:00
|
|
|
|
2014-01-15 11:24:58 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2004-07-05 23:51:01 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|