openbsd-ports/games/falconseye/Makefile
espie 3a0cf8ed4d Update dependencies (kill first part when needed).
Update japanese/README... 2.4 is looong past.
2001-09-19 16:03:09 +00:00

56 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2001/09/19 16:03:10 espie Exp $
COMMENT= "NetHack derivative"
VERSION= 1.9.3
DISTNAME= nethack_source_331_jtp_${VERSION:S/.//g}
PKGNAME= falconseye-${VERSION}
CATEGORIES= games x11
NEED_VERSION= 1.458
EXTRACT_SUFX= .zip
HOMEPAGE= http://falconseye.sourceforge.net/
MAINTAINER= Marc Espie <espie@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= falconseye
LIB_DEPENDS= SDL.0.3:sdl-*-!no_x11:devel/sdl
RUN_DEPENDS= :hackdata-*:games/hackdata
RUN_DEPENDS+= :timidity-*:audio/timidity
FAKE_FLAGS= PREFIX="${PREFIX}" DESTDIR="${WRKINST}"
NHDIR= "${PREFIX}/lib/falconseyedir"
MAKE_ENV= NHDIR="${NHDIR}" NETHACKCONFIG="${NETHACKCONFIG}"
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"
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>