aboutsummaryrefslogtreecommitdiff
path: root/games/kartofel
diff options
context:
space:
mode:
Diffstat (limited to 'games/kartofel')
-rw-r--r--games/kartofel/Makefile13
-rw-r--r--games/kartofel/pkg-plist41
2 files changed, 7 insertions, 47 deletions
diff --git a/games/kartofel/Makefile b/games/kartofel/Makefile
index a821717911a9..afc872624c1b 100644
--- a/games/kartofel/Makefile
+++ b/games/kartofel/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kartofel
-# Date created: 19 Jan 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= kartofel
PORTVERSION= 1.2
@@ -15,7 +11,7 @@ MASTER_SITES= http://kartofel.jfedor.org/downloads/ \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Connect the dots in order without crossing over yourself
-LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl
+LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
USE_GMAKE= yes
USE_SDL= sdl gfx mixer image ttf
@@ -25,6 +21,9 @@ MAKE_JOBS_SAFE= yes
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" \
@@ -41,7 +40,9 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/kartofel ${PREFIX}/bin
+.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "${DATA_DIRS}" ${DATADIR}
+.endif
.include <bsd.port.mk>
diff --git a/games/kartofel/pkg-plist b/games/kartofel/pkg-plist
deleted file mode 100644
index c77068518bbe..000000000000
--- a/games/kartofel/pkg-plist
+++ /dev/null
@@ -1,41 +0,0 @@
-bin/kartofel
-%%DATADIR%%/fonts/Cyklop-Regular.ttf
-%%DATADIR%%/fonts/FreeSans.ttf
-%%DATADIR%%/images/Cliffs-1024x768.png
-%%DATADIR%%/images/icon256x256.png
-%%DATADIR%%/images/icon32x32.png
-%%DATADIR%%/levels/1.txt
-%%DATADIR%%/levels/10.txt
-%%DATADIR%%/levels/11.txt
-%%DATADIR%%/levels/12.txt
-%%DATADIR%%/levels/13.txt
-%%DATADIR%%/levels/14.txt
-%%DATADIR%%/levels/15.txt
-%%DATADIR%%/levels/16.txt
-%%DATADIR%%/levels/17.txt
-%%DATADIR%%/levels/18.txt
-%%DATADIR%%/levels/19.txt
-%%DATADIR%%/levels/2.txt
-%%DATADIR%%/levels/20.txt
-%%DATADIR%%/levels/21.txt
-%%DATADIR%%/levels/3.txt
-%%DATADIR%%/levels/4.txt
-%%DATADIR%%/levels/5.txt
-%%DATADIR%%/levels/6.txt
-%%DATADIR%%/levels/7.txt
-%%DATADIR%%/levels/8.txt
-%%DATADIR%%/levels/9.txt
-%%DATADIR%%/music/moonlight.ogg
-%%DATADIR%%/sounds/click01.wav
-%%DATADIR%%/sounds/click02.wav
-%%DATADIR%%/sounds/click03.wav
-%%DATADIR%%/sounds/sound_crash.wav
-%%DATADIR%%/sounds/sound_dot_lit.wav
-%%DATADIR%%/sounds/sound_level_success.wav
-%%DATADIR%%/sounds/sound_out_of_time.wav
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/music
-@dirrm %%DATADIR%%/levels
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%/fonts
-@dirrm %%DATADIR%%