mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
|
# 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>
|