mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Ri-li
|
|
PORTVERSION= 2.0.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}%20Linux_Unix/${PORTNAME}%20V${PORTVERSION}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Drive a toy wood train in many levels - snake-like arcade game
|
|
|
|
LICENSE= GPLv2 GPLv3
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
|
|
|
|
USES= gmake sdl tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
USE_SDL= sdl mixer
|
|
|
|
CPPFLAGS+= `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include
|
|
|
|
PLIST_FILES= bin/Ri_li
|
|
PORTDATA= *
|
|
|
|
DESKTOP_ENTRIES="Ri-li" \
|
|
"Drive a toy wood train in many levels - snake-like arcade game" \
|
|
"${DATADIR}/Ri-li-icon-48x48.png" \
|
|
"Ri_li" \
|
|
"Game;ArcadeGame;" \
|
|
false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lSDL |`${SDL_CONFIG} --libs`|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's| gentoo||' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e '/strcpy.*DefPath/ s|.*|strcpy(DefPath,"${DATADIR}/");|' ${WRKSRC}/src/main.cc
|
|
@${REINPLACE_CMD} -e '/include/ s|iostream.h|iostream|' ${WRKSRC}/src/*.cc
|
|
@${REINPLACE_CMD} -e 's|cerr|std::&|g; s|endl|std::&|g' ${WRKSRC}/src/*.cc
|
|
|
|
.include <bsd.port.mk>
|