freebsd-ports/games/lbreakout2/Makefile
Dmitry Marakasov f97f297ce7 games/lbreakouthd: add port: Breakout-style arcade game
- Also deprecate (without setting EXPIRATION_DATE, as the ports
  still build and work fine) games/lbreakout and games/lbreakout2 -
  the former has latest release in 2001 and is not even mentioned on
  the upstream website any more, and the latter explicitly mentions
  deprecation. LBreakoutHD is claimed to support all levelsets and
  themes for LBreakout2, being a drop-in replacement for it.
- While here, some cosmetic fixes to games/lbreakout and games/lbreakout2.

LBreakoutHD is a scaleable 16:9 remake of LBreakout2. You try to
clear levels full of different types of bricks and extras by using
your paddle to aim balls at the bricks.

All LBreakout2 themes and levelsets work. New themes can be of any
resolution.
2023-01-23 18:32:36 +03:00

59 lines
1.5 KiB
Makefile

PORTNAME= lbreakout2
PORTVERSION= 2.6.5
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/lgames/${PORTNAME}/${PORTVERSION:R}:1 \
LOCAL/rene/${PORTNAME}:2
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:1 \
${PORTNAME}.png:2
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Breakout-style arcade game
WWW= https://lgames.sourceforge.io/LBreakout2/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
DEPRECATED= Deprecated by upsteam, does not support large screen resolutions. Use games/lbreakouthd instead
LIB_DEPENDS= libpng.so:graphics/png
USES= gmake sdl
USE_SDL= mixer net sdl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-sdl-net \
--localstatedir=/var/games \
--with-docdir=${PREFIX}/share/doc
CPPFLAGS+= $$(libpng-config --I_opts)
LDFLAGS+= $$(libpng-config --L_opts)
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e \
'/if test/s|==|=|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/^icondir/s|icons|pixmaps| ; \
/^icon_DATA/s|48.gif|2.png| ; \
/Icon=/s|$$(datadir).*.gif|lbreakout2|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
'/LDADD =/s|$$| @INTLLIBS@| ; \
s|: install-data-local|:|' ${WRKSRC}/client/Makefile.in
@${REINPLACE_CMD} -e \
'/LDADD =/s|$$| @INTLLIBS@|' ${WRKSRC}/server/Makefile.in
pre-build:
${CP} ${DISTDIR}/${PORTNAME}.png ${WRKSRC}
post-install:
(cd ${WRKSRC}/client && ${INSTALL_DATA} empty.hscr \
${STAGEDIR}${DATADIR})
.include <bsd.port.mk>