mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
672c044e2e
USE_SDL=yes -> USE_SDL=sdl (good examles everywhere) WANT_SDL/HAVE_SDL instead of exists(localbase/lib/lib...) See http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-sdl.html for more information on how to use USE_SDL, WANT_SDL and HAVE_SDL. PR: follow-ups of ports/55494, ports/61877 Submitted by: Edwin Groothuis <edwin@mavetju.org>
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: marbles
|
|
# Date created: 12 June 2002
|
|
# Whom: verm@drunkmonk.net
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= marbles
|
|
PORTVERSION= 1.0.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= lgames
|
|
|
|
MAINTAINER= verm@drunkmonk.net
|
|
COMMENT= A challenging puzzle game similar to Atomix
|
|
|
|
USE_SDL= sdl
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-profile-path=/var/games
|
|
USE_REINPLACE= yes
|
|
|
|
MAN6= marbles.6
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's/SDL\///' ${WRKSRC}/src/*.[ch]
|
|
@${REINPLACE_CMD} -e 's/^#include "sys\/timeb.h"//' \
|
|
${WRKSRC}/src/timer.c
|
|
@${REINPLACE_CMD} -e 's/games\/marbles/marbles/g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's/if .*marbles.prfs/if false/' \
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/src/empty.prfs ${DATADIR}
|
|
@${CHOWN} root:games ${PREFIX}/bin/marbles
|
|
@${CHMOD} g+s ${PREFIX}/bin/marbles
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" \
|
|
${SH} pkg-install ${PKGNAME} POST-INSTALL
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/src/manual/* ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|