1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/defendguin/Makefile
Rusmir Dusko 05c02bb343 - Change master sites
- Change maintainer email to @FreeBSD.org
- Add DOCS Option
- Change desktop entry
- Support STAGEDIR

Approved by:	pawel / wg (mentors, implicit)
2013-12-06 23:31:35 +00:00

51 lines
1.4 KiB
Makefile

# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
# $FreeBSD$
PORTNAME= defendguin
PORTVERSION= 0.0.12
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/defendguin/src/ \
ftp://ftp.billsgames.com/unix/x/defendguin/src/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Your mission is to defend little penguinoids
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_SDL= mixer sdl
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Defendguin" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -DDATA_PREFIX=\"${DATADIR}/\" \
`${SDL_CONFIG} --cflags` defendguin.c -o defendguin \
`${SDL_CONFIG} --libs` -lSDL_mixer
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in images music sounds
@(cd ${WRKSRC}/../data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../docs/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>