1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/kartofel/Makefile
Dmitry Marakasov ca4220f188 - Support staging
- Use new LIB_DEPENDS syntax
- Convert USE_GMAKE to USES
2013-09-29 21:46:22 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= kartofel
PORTVERSION= 1.2
PORTREVISION= 12
CATEGORIES= games
MASTER_SITES= http://kartofel.jfedor.org/downloads/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Connect the dots in order without crossing over yourself
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
USES= gmake
USE_SDL= sdl gfx mixer image ttf
ALL_TARGET= default
DATA_DIRS= sounds fonts music images levels
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
DESKTOP_ENTRIES="Kartofel" \
"A game of skill and logic" \
"${DATADIR}/images/icon32x32.png" \
"kartofel" \
"Game;LogicGame;ArcadeGame;" \
false
post-patch:
@${REINPLACE_CMD} -e '/^CXXOPTIONS/ d; s|g++|${CXX} ${CXXFLAGS}|; \
s|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile
.for d in ${DATA_DIRS}
@${REINPLACE_CMD} -e 's|$d/|${DATADIR}/&|' ${WRKSRC}/config.h
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/kartofel ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>