2001-12-01 20:44:16 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2001/12/02 01:44:16 espie Exp $
|
2001-07-04 07:14:53 -04:00
|
|
|
|
|
|
|
COMMENT= "dungeon explorin', hackin', game. Hard"
|
2001-12-01 20:44:16 -05:00
|
|
|
DISTNAME= se006e4f6
|
2001-07-04 07:14:53 -04:00
|
|
|
CATEGORIES= games
|
2001-09-19 12:03:09 -04:00
|
|
|
NEED_VERSION= 1.458
|
2001-07-04 07:14:53 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://slashem.sourceforge.net
|
|
|
|
MASTER_SITES= http://avrc.city.ac.uk/nethack/slashem/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2001-12-01 20:44:16 -05:00
|
|
|
PKGNAME=slash-em-3.3.1.6e4f6
|
|
|
|
WRKDIST=${WRKDIR}/slashem-0.0.6E4F6
|
2001-07-04 07:14:53 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
|
|
|
|
|
|
|
NHDIR= ${PREFIX}/lib/slashemdir
|
|
|
|
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
|
|
|
|
|
|
|
# qt flavor is apparently not working yet
|
|
|
|
FLAVORS=no_x11 #qt
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
|
|
|
NETHACKCONFIG=${FILESDIR}/simple-config
|
|
|
|
.elif ${FLAVOR:L} == "qt"
|
|
|
|
SED_PLIST=|sed -e '/^!%%no_x11%%/d'
|
|
|
|
NETHACKCONFIG=${FILESDIR}/qt-config
|
|
|
|
PORTPATH=${LOCALBASE}/lib/qt2/bin:/usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin
|
|
|
|
LIB_DEPENDS=qt.2.::x11/qt2
|
|
|
|
.else
|
|
|
|
NETHACKCONFIG=${FILESDIR}/x-config
|
|
|
|
USE_X11= Yes
|
|
|
|
.endif
|
|
|
|
|
2001-09-19 12:03:09 -04:00
|
|
|
RUN_DEPENDS=:hackdata-*:games/hackdata
|
2001-07-04 07:14:53 -04:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh symlinks
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/util && ${MAKE_ENV} make recover
|
|
|
|
@cd ${WRKSRC}/util && ln -f recover strecover
|
|
|
|
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <recover.6 >strecover.6
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/util/strecover ${PREFIX}/bin
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} slashem.6 strecover.6 ${PREFIX}/man/man6
|
|
|
|
.if ${FLAVOR:L} == ""
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
|
|
|
|
@cd ${WRKSRC}/win/X11 && \
|
|
|
|
${INSTALL_DATA} SlashEM.ad ${PREFIX}/lib/X11/app-defaults/SlashEM
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|