mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
50 lines
1.0 KiB
Makefile
50 lines
1.0 KiB
Makefile
# Created by: 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
|
|
|
|
NO_STAGE= yes
|
|
.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>
|