2002-07-25 18:54:42 +02:00
|
|
|
# New ports collection makefile for: kobodeluxe
|
|
|
|
# Date created: 12 June 2002
|
|
|
|
# Whom: Amar Takhar <verm@drunkmonk.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kobodeluxe
|
2008-01-29 15:06:17 +01:00
|
|
|
PORTVERSION= 0.5.1
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 6
|
2002-07-25 18:54:42 +02:00
|
|
|
CATEGORIES= games
|
2006-12-21 21:41:33 +01:00
|
|
|
MASTER_SITES= http://olofson.net/kobodl/download/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2005-06-28 00:07:40 +02:00
|
|
|
DISTNAME= KoboDeluxe-${DISTVERSION}
|
2002-07-25 18:54:42 +02:00
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2005-06-28 00:07:40 +02:00
|
|
|
COMMENT= An SDL port of the scrolling game XKobo
|
2002-07-25 18:54:42 +02:00
|
|
|
|
2007-12-18 19:52:42 +01:00
|
|
|
USE_BZIP2= yes
|
2005-06-28 00:07:40 +02:00
|
|
|
USE_SDL= image sdl
|
2002-07-25 18:54:42 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-01-29 15:06:17 +01:00
|
|
|
CONFIGURE_ARGS= --sharedstatedir=${SCOREDIR} --enable-oss
|
2009-03-31 19:05:17 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2002-07-25 18:54:42 +02:00
|
|
|
|
2005-06-28 00:07:40 +02:00
|
|
|
MAN6= kobodl.6
|
|
|
|
|
|
|
|
SCOREDIR= /var/games/${PORTNAME}
|
|
|
|
PLIST_SUB= SCOREDIR="${SCOREDIR}"
|
|
|
|
|
2007-12-18 19:52:42 +01:00
|
|
|
DATADIR= ${PREFIX}/share/kobo-deluxe
|
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
DESKTOP_ENTRIES="Kobo Deluxe" \
|
|
|
|
"An SDL port of the scrolling game XKobo" \
|
|
|
|
"${DATADIR}/" \
|
|
|
|
"kobodeluxe" \
|
|
|
|
"Game;ArcadeGame;" \
|
|
|
|
false
|
|
|
|
|
|
|
|
OPTIONS= OPENGL "OpenGL rendering layer" on
|
2002-07-25 18:54:42 +02:00
|
|
|
|
2004-03-06 13:17:30 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-01-29 15:06:17 +01:00
|
|
|
.if !defined(WITHOUT_OPENGL)
|
2005-06-28 00:07:40 +02:00
|
|
|
USE_GL= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-opengl
|
2008-01-29 15:06:17 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-opengl
|
2005-06-28 00:07:40 +02:00
|
|
|
.endif
|
|
|
|
|
2009-09-11 23:57:40 +02:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${TAR} -xzf icons.tar.gz
|
|
|
|
|
2005-06-28 00:07:40 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(datadir)/games/kobo-deluxe|${DATADIR}|; \
|
|
|
|
s|$$(prefix)/games/kobo-deluxe/scores|${SCOREDIR}|; \
|
|
|
|
s|-lSDL$$||; s|SDL/SDL|SDL|' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|$$(datadir)/games/kobo-deluxe|${DATADIR}|' \
|
|
|
|
${WRKSRC}/data/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CHGRP} games ${PREFIX}/bin/kobodl
|
|
|
|
${CHMOD} g+s ${PREFIX}/bin/kobodl
|
|
|
|
${INSTALL} -d -o root -g games -m 775 ${SCOREDIR}
|
2009-09-11 23:57:40 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/Ubuntu/kobodeluxe.desktop \
|
|
|
|
${PREFIX}/share/applications/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/icons/Ubuntu/kobo-icon.xpm \
|
|
|
|
${PREFIX}/share/pixmaps/
|
2002-07-25 18:54:42 +02:00
|
|
|
|
2004-03-06 13:17:30 +01:00
|
|
|
.include <bsd.port.post.mk>
|