freebsd-ports/games/kobodeluxe/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

59 lines
1.5 KiB
Makefile

# Created by: Amar Takhar <verm@drunkmonk.net>
PORTNAME= kobodeluxe
PORTVERSION= 0.5.1
PORTREVISION= 14
CATEGORIES= games
MASTER_SITES= http://olofson.net/kobodl/download/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= KoboDeluxe-${DISTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= SDL port of the scrolling game XKobo
USES= sdl tar:bzip2
USE_SDL= image sdl
USE_CXXSTD= c++98
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sharedstatedir=${SCOREDIR} --enable-oss
SCOREDIR= /var/games/${PORTNAME}
SUB_FILES= pkg-deinstall pkg-install
SUB_LIST= SCOREDIR="${SCOREDIR}"
DATADIR= ${PREFIX}/share/kobo-deluxe
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS OPENGL
OPTIONS_DEFAULT=OPENGL
OPENGL_USES= gl
OPENGL_USE= GL=gl
OPENGL_CONFIGURE_ENABLE= opengl
post-extract:
@cd ${WRKSRC} && ${TAR} -xzf icons.tar.gz
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
@${REINPLACE_CMD} -e 's|pipe2|kobopipe2|g' ${WRKSRC}/enemies.h \
${WRKSRC}/enemy.cpp
post-install:
@${RM} -r ${STAGEDIR}/var
${INSTALL_DATA} ${WRKSRC}/icons/Ubuntu/kobodeluxe.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/icons/Ubuntu/kobo-icon.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>