50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.20 2010/11/16 11:23:25 espie Exp $
|
|
# Original from: Robert Ruehlmann
|
|
|
|
COMMENT= rogue-like game with X11 support
|
|
COMMENT-no_x11= rogue-like game
|
|
|
|
DISTNAME= angband-3.0.6
|
|
REVISION = 1
|
|
CATEGORIES= games
|
|
|
|
HOMEPAGE= http://www.thangorodrim.net/angband.html
|
|
|
|
MAINTAINER= Niall O Higgins <niallo@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= unclear license
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= unclear license
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c ncurses
|
|
|
|
MASTER_SITES= ftp://ftp.thangorodrim.net/pub/angband/Source/ \
|
|
ftp://clockwork.dementia.org/angband/Source/ \
|
|
ftp://ftp.sunet.se/pub/games/Angband/Source/
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= --with-setgid=games
|
|
CONFIGURE_ENV= TRUEPREFIX="${TRUEPREFIX}"
|
|
|
|
FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
CONFIGURE_ARGS+= --without-x
|
|
.else
|
|
CONFIGURE_ARGS+= --with-x
|
|
WANTLIB+= ICE SM X11 Xaw Xext Xmu Xt pthread-stubs xcb
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/angband
|
|
(cd ${WRKDIST}/lib && tar -cf - * ) | \
|
|
(cd ${PREFIX}/share/angband && tar -xf - )
|
|
@chown -R ${SHAREOWN}:games ${PREFIX}/share/angband
|
|
@find ${PREFIX} \( -name Makefile\* -o -name delete.me \) \
|
|
-exec rm "{}" \;
|
|
${INSTALL} -s -o ${BINOWN} -g games -m 2555 ${WRKSRC}/src/angband \
|
|
${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|