2008-01-26 14:07:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2008/01/26 19:07:40 espie Exp $
|
2001-07-05 09:29:01 -04:00
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT= NetHack derivative
|
2001-07-05 09:29:01 -04:00
|
|
|
|
|
|
|
VERSION= 1.9.3
|
|
|
|
DISTNAME= nethack_source_331_jtp_${VERSION:S/.//g}
|
2008-01-26 14:07:40 -05:00
|
|
|
PKGNAME= falconseye-${VERSION}p2
|
2001-07-05 09:29:01 -04:00
|
|
|
CATEGORIES= games x11
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
|
|
|
HOMEPAGE= http://falconseye.sourceforge.net/
|
|
|
|
|
2001-07-09 12:50:53 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
2001-07-05 09:29:01 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= X11 Xext c curses m pthread usbhid
|
2001-07-05 09:29:01 -04:00
|
|
|
|
2002-05-13 14:50:36 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=falconseye/}
|
2001-07-05 09:29:01 -04:00
|
|
|
|
2001-12-28 17:11:58 -05:00
|
|
|
LIB_DEPENDS= SDL::devel/sdl
|
2001-09-19 12:03:09 -04:00
|
|
|
RUN_DEPENDS= :hackdata-*:games/hackdata
|
2001-07-05 09:29:01 -04:00
|
|
|
|
2008-01-04 12:48:33 -05:00
|
|
|
FAKE_FLAGS= PREFIX="${PREFIX}"
|
2001-07-05 09:29:01 -04:00
|
|
|
|
2004-08-10 06:04:57 -04:00
|
|
|
GAMEDIR= lib/falconseyedir
|
|
|
|
NHDIR= ${PREFIX}/${GAMEDIR}
|
2001-07-05 09:29:01 -04:00
|
|
|
MAKE_ENV= NHDIR="${NHDIR}" NETHACKCONFIG="${NETHACKCONFIG}"
|
2004-08-10 06:04:57 -04:00
|
|
|
SUBST_VARS= GAMEDIR
|
2001-07-05 09:29:01 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
|
|
|
|
NETHACKCONFIG= ${FILESDIR}/x-config
|
|
|
|
USE_X11= Yes
|
|
|
|
MAKE_ENV+= CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include -L${X11BASE}/lib -L${LOCALBASE}/lib"
|
|
|
|
|
2002-10-26 16:44:38 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2001-07-05 09:29:01 -04:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix && ${SH} setup.sh symlinks
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/util && ${MAKE_ENV} ${MAKE_PROGRAM} recover
|
|
|
|
@cd ${WRKSRC}/util && ln -f recover frecover
|
|
|
|
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <nethack.6 >falconseye.6
|
|
|
|
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <recover.6 >frecover.6
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/util/recover ${PREFIX}/bin/frecover
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} recover.6 ${PREFIX}/man/man6/frecover.6
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} nethack.6 ${PREFIX}/man/man6/falconseye.6
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|