openbsd-ports/games/angband/Makefile

46 lines
1.2 KiB
Makefile
Raw Normal View History

2000-08-06 17:41:50 -04:00
# $OpenBSD: Makefile,v 1.3 2000/08/06 21:41:50 matt Exp $
# Original from: Ben Harrison, Robert Ruehlmann
2000-04-16 17:03:12 -04:00
2000-08-06 17:41:50 -04:00
DISTNAME= angband-291-src
PKGNAME= angband-2.9.1
2000-04-16 17:03:12 -04:00
CATEGORIES= games
2000-08-06 17:41:50 -04:00
HOMEPAGE= http://thangorodrim.angband.org/
2000-04-16 17:03:12 -04:00
MAINTAINER= ci2@gmx.net
2000-08-06 17:41:50 -04:00
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
2000-04-16 17:03:12 -04:00
MASTER_SITES= ftp://export.andrew.cmu.edu/angband/Source/ \
ftp://ftp.sunet.se/pub/games/Angband/Source/
2000-08-06 17:41:50 -04:00
EXTRACT_SUFX= .tgz
2000-04-16 17:03:12 -04:00
2000-08-06 17:41:50 -04:00
MAKE_FILE= Makefile.std
2000-04-18 20:17:18 -04:00
MAKE_FLAGS= CC='${CC}' CFLAGS='${CFLAGS}' LIBS="${LIBS}"
2000-08-06 17:41:50 -04:00
WRKDIST= ${WRKDIR}/angband-291
2000-04-16 17:03:12 -04:00
WRKSRC= ${WRKDIST}/src
2000-04-18 20:17:18 -04:00
FLAVORS=no_x11
FLAVOR?=
2000-08-06 17:41:50 -04:00
CFLAGS+= -Wall -DDEFAULT_PATH=\"${PREFIX}/share/angband/\" -DUSE_GCU
2000-04-18 20:17:18 -04:00
LIBS= -lcurses -ltermcap
.if !${FLAVOR:L:Mno_x11}
CFLAGS+= -DUSE_XAW -I$(X11BASE)/include
LIBS+= -L${X11BASE}/lib -lXaw -lXmu -lXt -lX11
.endif
2000-04-16 17:03:12 -04:00
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
cd ${PREFIX}/share/angband && chmod 0775 apex data save user
${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP} -o ${BINOWN} -g games -m 2555 ${WRKSRC}/angband ${PREFIX}/bin
.include <bsd.port.mk>