2013-06-18 13:46:51 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2009-01-19 19:42:25 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= kartofel
|
2009-02-09 03:38:13 +01:00
|
|
|
PORTVERSION= 1.2
|
2013-07-11 18:26:26 +02:00
|
|
|
PORTREVISION= 12
|
2009-01-19 19:42:25 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://kartofel.jfedor.org/downloads/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2009-01-19 19:42:25 +01:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Connect the dots in order without crossing over yourself
|
|
|
|
|
2013-09-29 23:46:22 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
2009-01-19 19:42:25 +01:00
|
|
|
|
2013-09-29 23:46:22 +02:00
|
|
|
USES= gmake
|
2009-01-19 19:42:25 +01:00
|
|
|
USE_SDL= sdl gfx mixer image ttf
|
|
|
|
|
|
|
|
ALL_TARGET= default
|
|
|
|
|
|
|
|
DATA_DIRS= sounds fonts music images levels
|
|
|
|
|
2013-06-18 13:46:51 +02:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
PORTDATA= *
|
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
DESKTOP_ENTRIES="Kartofel" \
|
|
|
|
"A game of skill and logic" \
|
|
|
|
"${DATADIR}/images/icon32x32.png" \
|
|
|
|
"kartofel" \
|
|
|
|
"Game;LogicGame;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
2009-01-19 19:42:25 +01:00
|
|
|
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:
|
2013-09-29 23:46:22 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/kartofel ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${STAGEDIR}${DATADIR}
|
2009-01-19 19:42:25 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|