blob: dda881304294f4c68e268be261c2849204e8dcfe (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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= 3
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/defendguin/src/ \
ftp://ftp.billsgames.com/unix/x/defendguin/src/ \
http://www.newbreedsoftware.com/images/prodicons/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.gif:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@gmx.ch
COMMENT= Your mission is to defend little penguinoids
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_SDL= mixer sdl
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.gif
PORTDATA= *
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
MAN6= ${PORTNAME}.6
.include <bsd.port.options.mk>
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -DDATA_PREFIX=\"${DATADIR}/\" \
`${SDL_CONFIG} --cflags` defendguin.c -o defendguin \
`${SDL_CONFIG} --libs` -lSDL_mixer
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/defendguin ${PREFIX}/bin
# Manuall
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6
# Data
@(cd ${WRKSRC}/../data && ${COPYTREE_SHARE} "images music sounds" ${DATADIR})
# Pixmaps
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.gif ${PREFIX}/share/pixmaps/
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/../docs/${f} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>
|