2013-03-08 09:27:31 +01:00
|
|
|
# Created by: verm@drunkmonk.net
|
2002-08-04 11:36:57 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2005-10-10 13:14:37 +02:00
|
|
|
PORTNAME= lmarbles
|
2009-11-12 11:52:21 +01:00
|
|
|
PORTVERSION= 1.0.8
|
2013-03-08 09:27:31 +01:00
|
|
|
PORTREVISION= 3
|
2002-08-04 11:36:57 +02:00
|
|
|
CATEGORIES= games
|
2013-03-08 09:27:31 +01:00
|
|
|
MASTER_SITES= SF/lgames/${PORTNAME} \
|
2013-12-27 23:16:47 +01:00
|
|
|
SF/nemysisfreebsdp/${CATEGORIES}/:icons
|
2013-03-08 09:27:31 +01:00
|
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}_icons${EXTRACT_SUFX}:icons
|
2002-08-04 11:36:57 +02:00
|
|
|
|
2013-12-18 11:20:48 +01:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2013-03-08 09:27:31 +01:00
|
|
|
COMMENT= Atomix-like game of moving marbles in puzzles
|
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2002-08-04 11:36:57 +02:00
|
|
|
|
2013-12-27 23:16:47 +01:00
|
|
|
USES= gmake
|
2005-10-06 00:58:29 +02:00
|
|
|
USE_SDL= sdl mixer
|
2002-08-04 11:36:57 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-03-08 09:27:31 +01:00
|
|
|
CONFIGURE_ARGS= --localstatedir=${ETCDIR}
|
2002-08-04 11:36:57 +02:00
|
|
|
|
2013-03-08 09:27:31 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
|
|
DOC_FILES1= AUTHORS ChangeLog README README-SDL.txt
|
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/src/manual
|
|
|
|
DOCSDIR2= ${DOCSDIR}/manual
|
|
|
|
DOC_FILES2= *.jpg *.html
|
|
|
|
|
2013-12-27 23:16:47 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-03-08 09:27:31 +01:00
|
|
|
|
2002-08-04 11:36:57 +02:00
|
|
|
post-patch:
|
2014-02-13 13:17:12 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|; \
|
2013-12-27 23:16:47 +01:00
|
|
|
s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
|
2009-11-12 11:52:21 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
2014-02-13 13:17:12 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-m 666||; \
|
|
|
|
s|lmarbles.prfs|lmarbles.prfs.sample|' \
|
2013-03-08 09:27:31 +01:00
|
|
|
${WRKSRC}/src/Makefile.in
|
2013-12-27 23:16:47 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|icons/lmarbles48.gif|icons/lmarbles48.png|' \
|
|
|
|
${WRKSRC}/lmarbles.desktop.in
|
2002-08-04 11:36:57 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-12-27 23:16:47 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png \
|
|
|
|
${STAGEDIR}${PREFIX}/share/pixmaps/
|
|
|
|
|
|
|
|
@${CHMOD} -R 464 ${STAGEDIR}${ETCDIR}/lmarbles.prfs.sample
|
|
|
|
@${CHOWN} root:games ${STAGEDIR}${ETCDIR}/lmarbles.prfs.sample
|
|
|
|
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
2002-08-04 11:36:57 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|