openbsd-ports/games/zangband/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

2010-11-16 06:23:25 -05:00
# $OpenBSD: Makefile,v 1.19 2010/11/16 11:23:29 espie Exp $
COMMENT= Zangband (Zelazny Angband) with color, X11 support
VERSION= 2.6.2
DISTNAME= zangband-${VERSION}
2010-11-16 06:23:25 -05:00
REVISION = 3
CATEGORIES= games
2006-07-11 07:30:06 -04:00
MASTER_SITES= ftp://ftp.sunet.se/pub/games/Angband/Variant/ZAngband/ \
ftp://ftp.planetmirror.com/pub/angband/Variant/ZAngband/ \
ftp://clockwork.dementia.org/angband/Variant/ZAngband/
PERMIT_PACKAGE_CDROM= not-for-profit redistribution only
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= not-for-profit redistribution only
PERMIT_DISTFILES_FTP= Yes
2004-11-28 17:41:14 -05:00
WANTLIB= c ncurses
HOMEPAGE= http://www.zangband.org/
USE_GMAKE= Yes
MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}"
2005-01-11 02:16:01 -05:00
AUTOCONF_VERSION= 2.54
2005-11-03 17:32:40 -05:00
AUTOMAKE_VERSION= 1.4
2005-01-11 02:16:01 -05:00
CONFIGURE_STYLE= autoconf automake
CONFIGURE_ENV= TRUEPREFIX="${TRUEPREFIX}"
WRKDIST= ${WRKDIR}/zangband
FLAVORS= no_x11
FLAVOR?=
.if !${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --with-x
WANTLIB+= ICE SM X11 Xaw Xmu Xt pthread-stubs xcb
.else
CONFIGURE_ARGS+= --without-x
.endif
2005-11-03 17:32:40 -05:00
post-patch:
@cd ${WRKSRC}; AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal
pre-configure:
2005-11-03 17:32:40 -05:00
@cd ${WRKSRC}; AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
automake --foreign --add-missing --copy
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 \) \
-exec rm "{}" \;
${INSTALL} -s -o ${BINOWN} -g games -m 2555 ${WRKSRC}/src/zangband \
${PREFIX}/bin
.include <bsd.port.mk>