2013-09-20 19:36:33 +02:00
|
|
|
# Created by: verm@drunkmonk.net
|
2002-08-04 09:26:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lbreakout2
|
2009-11-27 19:02:20 +01:00
|
|
|
PORTVERSION= 2.6
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 4
|
2002-08-04 09:26:00 +02:00
|
|
|
CATEGORIES= games
|
2009-11-27 19:02:20 +01:00
|
|
|
MASTER_SITES= SF/lgames/${PORTNAME}/${PORTVERSION}
|
2002-08-04 09:26:00 +02:00
|
|
|
|
2014-07-02 20:22:39 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= The polished successor to LBreakout
|
2002-08-04 09:26:00 +02:00
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
2002-08-04 09:26:00 +02:00
|
|
|
|
2005-01-16 11:15:56 +01:00
|
|
|
USE_SDL= mixer net sdl
|
2014-05-29 16:35:01 +02:00
|
|
|
USES= gmake
|
2002-08-04 09:26:00 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-01-16 11:15:56 +01:00
|
|
|
CONFIGURE_ARGS= --enable-sdl-net \
|
2005-11-05 18:41:07 +01:00
|
|
|
--localstatedir=/var/games \
|
|
|
|
--disable-nls
|
2005-01-16 11:15:56 +01:00
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng15
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2002-08-04 09:26:00 +02:00
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
2002-08-04 09:26:00 +02:00
|
|
|
post-patch:
|
2005-01-16 11:15:56 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|== "-D|= "-D|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|client docs|client|g' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|: install-data-local|:|g' ${WRKSRC}/client/Makefile.in
|
2002-08-04 09:26:00 +02:00
|
|
|
|
|
|
|
post-install:
|
2005-01-16 11:15:56 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/client/empty.hscr ${DATADIR}
|
2002-08-04 09:26:00 +02:00
|
|
|
@${CHOWN} root:games ${PREFIX}/bin/lbreakout2
|
|
|
|
@${CHMOD} g+s ${PREFIX}/bin/lbreakout2
|
2005-01-16 11:15:56 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
|
|
|
|
.endif
|
2002-08-04 09:26:00 +02:00
|
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" \
|
2009-11-27 19:02:20 +01:00
|
|
|
${SH} ${.CURDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
2002-08-04 09:26:00 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|