mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
58195ddf5a
- Bump PORTREVISION - Change master sites and icon - Remove dependency for graphics/netpbm - USES gmake instead of USE_GMAKE - Use pkg-plist instead of PLIST_FILES and PORTDATA - Add DOCS Option - Support STAGEDIR - Change Desktop entry file Approved by: pawel / wg (mentors, implicit)
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sdl_lopan
|
|
PORTVERSION= 10
|
|
PORTREVISION= 3
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.linuxmotors.com/sdllopan/downloads/ \
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
|
DISTFILES= sdllopan-${DISTVERSION}.tgz \
|
|
${PORTNAME}.png:icons
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
EXTRACT_ONLY= sdllopan-${DISTVERSION}.tgz
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= Mahjong game remake
|
|
|
|
LICENSE= GPLv2
|
|
|
|
WRKSRC= ${WRKDIR}/sdllopan-${PORTVERSION}
|
|
|
|
USES= gmake
|
|
USE_SDL= sdl image mixer
|
|
ALL_TARGET=
|
|
|
|
PORTDOCS= Changelog README
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DESKTOP_ENTRIES="SDL Lopan" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;BoardGame;" ""
|
|
|
|
post-patch:
|
|
@${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\];|' \
|
|
${WRKSRC}/lopan.c
|
|
|
|
do-install:
|
|
${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}
|
|
|
|
.include <bsd.port.mk>
|