2012-04-28 16:55:30 +02:00
|
|
|
PORTNAME= sdl_lopan
|
|
|
|
PORTVERSION= 10
|
2014-12-08 17:48:38 +01:00
|
|
|
PORTREVISION= 5
|
2012-04-28 16:55:30 +02:00
|
|
|
CATEGORIES= games
|
2012-10-17 00:30:07 +02:00
|
|
|
MASTER_SITES= http://www.linuxmotors.com/sdllopan/downloads/ \
|
2013-12-25 09:20:15 +01:00
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
2012-10-17 00:30:07 +02:00
|
|
|
DISTFILES= sdllopan-${DISTVERSION}.tgz \
|
2013-12-25 09:20:15 +01:00
|
|
|
${PORTNAME}.png:icons
|
2012-10-17 00:30:07 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= sdllopan-${DISTVERSION}.tgz
|
2012-04-28 16:55:30 +02:00
|
|
|
|
2014-10-31 17:11:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Mahjong game remake
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= http://www.linuxmotors.com/sdllopan/
|
2012-04-28 16:55:30 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/sdllopan-${PORTVERSION}
|
|
|
|
|
2019-11-08 11:47:01 +01:00
|
|
|
USES= gmake sdl
|
2012-04-28 16:55:30 +02:00
|
|
|
USE_SDL= sdl image mixer
|
2014-10-04 16:01:00 +02:00
|
|
|
ALL_TARGET= # empty
|
2012-10-17 00:30:07 +02:00
|
|
|
|
2012-04-28 16:55:30 +02:00
|
|
|
PORTDOCS= Changelog README
|
2013-12-25 09:20:15 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-10-17 00:30:07 +02:00
|
|
|
|
2013-12-25 09:20:15 +01:00
|
|
|
DESKTOP_ENTRIES="SDL Lopan" "" "${PORTNAME}" \
|
|
|
|
"${PORTNAME}" "Game;BoardGame;" ""
|
2012-04-28 16:55:30 +02:00
|
|
|
|
2012-07-19 03:52:25 +02:00
|
|
|
post-patch:
|
2013-12-25 09:20:15 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|data/bg%d.pcx|${DATADIR}/data/bg%d.pcx| ; \
|
|
|
|
s|data/tiles%d.pcx|${DATADIR}/data/tiles%d.pcx| ; \
|
|
|
|
s|char temp\[64\];|char temp\[256\];|' \
|
2012-10-17 00:30:07 +02:00
|
|
|
${WRKSRC}/lopan.c
|
|
|
|
|
2012-04-28 16:55:30 +02:00
|
|
|
do-install:
|
2013-12-25 09:20:15 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lopan ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2012-04-28 16:55:30 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|