blob: ac721f3b031c64a34e159986ee80f7b6f8db5be9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# New ports collection makefile for: defendguin
# Date created: 8 February 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= defendguin
PORTVERSION= 0.0.12
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ftp://ftp.billsgames.com/unix/x/defendguin/src/
MAINTAINER= glen.j.barber@gmail.com
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>
|