mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
63e9cfee63
PR: ports/170682 Submitted by: nemysis@gmx.ch
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>
|