blob: 1b835a824be4d2d1ab2233fef32644b69325afda (
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
|
# New Ports collection makefile for puckman
# Date created: 2012-08-08
# Whom: nemysis@gmx.ch
#
# $FreeBSD$
#
PORTNAME= puckman
PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= https://github.com/downloads/patapizza/puckman/
MAINTAINER= nemysis@gmx.ch
COMMENT= An unofficial clone of the original Pac-Man game
LICENSE= GPLv3
FETCH_ARGS?= -Fpr
USE_GMAKE= yes
USE_SDL= sdl image gfx
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png
PORTDATA= *
PORTDOCS= README.md
.include <bsd.port.options.mk>
do-build:
cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \
-DDATA_PREFIX=\"${DATADIR}/\" \
-lm `${SDL_CONFIG} --cflags --libs` -lSDL -lSDL_image -lSDL_gfx -lm puckman.c
do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
# Data
${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} images ${DATADIR})
# Pixmaps
${INSTALL_DATA} ${WRKSRC}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${DOCSDIR}
.endif
.include <bsd.port.mk>
|