openbsd-ports/games/zangband/Makefile
naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.29 2020/03/20 16:44:23 naddy Exp $
COMMENT= Zangband (Zelazny Angband) with color, X11 support
VERSION= 2.6.2
DISTNAME= zangband-${VERSION}
REVISION = 6
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=zangband/}
PERMIT_PACKAGE= Yes
WANTLIB= c curses
HOMEPAGE= http://www.zangband.org/
USE_GMAKE= Yes
MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
AUTOCONF_VERSION= 2.54
AUTOMAKE_VERSION= 1.4
AUTORECONF= autoreconf -i
CONFIGURE_STYLE= autoreconf
CONFIGURE_ENV= TRUEPREFIX="${TRUEPREFIX}"
WRKDIST= ${WRKDIR}/zangband
FLAVORS= no_x11
FLAVOR?=
.if !${FLAVOR:Mno_x11}
CONFIGURE_ARGS+= --with-x
WANTLIB+= ICE SM X11 Xaw Xmu Xt xcb
.else
CONFIGURE_ARGS+= --without-x
.endif
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/zangband
(cd ${WRKDIST}/lib && tar -cf - * ) | \
(cd ${PREFIX}/share/zangband && tar -xf - )
@chown -R ${SHAREOWN}:games ${PREFIX}/share/zangband
@find ${PREFIX} \( -name Makefile\* -o -name delete.me \) -delete
${INSTALL} -s -o ${BINOWN} -g games -m 2555 ${WRKSRC}/src/zangband \
${PREFIX}/bin
.include <bsd.port.mk>