freebsd-ports/games/lmarbles/Makefile
Dmitry Marakasov 47d1179777 - Clarify LICENSE
- Add LICENSE_FILE
- Move highscore to /var/games, use @sample
- Fix installation from non-root
- Simplify docs installation
2015-01-25 02:02:53 +00:00

46 lines
1.2 KiB
Makefile

# Created by: verm@drunkmonk.net
# $FreeBSD$
PORTNAME= lmarbles
PORTVERSION= 1.0.8
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SF/lgames/${PORTNAME} \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons${EXTRACT_SUFX}:icons
MAINTAINER= ports@FreeBSD.org
COMMENT= Atomix-like game of moving marbles in puzzles
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_SDL= sdl mixer
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var/games/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|; \
s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-m 666||; \
s|lmarbles.prfs|lmarbles.prfs.sample|' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|icons/lmarbles48.gif|icons/lmarbles48.png|' \
${WRKSRC}/lmarbles.desktop.in
post-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog README README-SDL.txt" ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/src && ${COPYTREE_SHARE} "manual" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>