freebsd-ports/games/defendguin/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: defendguin
# Date created: 8 February 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= defendguin
PORTVERSION= 0.0.11
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://ftp.billsgames.com/unix/x/defendguin/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Another shoot-the-Bill game
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_SDL= mixer sdl
PLIST_FILES= bin/defendguin
MAN6= defendguin.6
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}/defendguin ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/defendguin.6 ${MAN6PREFIX}/man/man6
@${MKDIR} ${DATADIR}
${TAR} -C ${WRKSRC}/../data -cf - . | \
${TAR} -C ${DATADIR} --unlink -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
post-install:
@${FIND} ${DATADIR} ! -type d | ${SED} \
-e "s,${PREFIX}/,," >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | ${SED} \
-e "s,${PREFIX}/,@dirrm ," >> ${TMPPLIST}
.include <bsd.port.mk>