openbsd-ports/games/slash-em/Makefile

73 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.12 2005/09/11 12:26:02 espie Exp $
2001-07-04 07:14:53 -04:00
COMMENT= "dungeon explorin', hackin', game. Hard"
DISTNAME= se007e7f1
2001-07-04 07:14:53 -04:00
CATEGORIES= games
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
2004-11-28 17:41:14 -05:00
WANTLIB= c termlib
2001-07-04 07:14:53 -04:00
PKGNAME=slash-em-3.4.3.7e7f1
V= 3.4.3.7e7f1
WRKDIST=${WRKDIR}/slashem-0.0.7E7F1
2001-07-04 07:14:53 -04:00
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
GAMEDIR=lib/slashemdir-$V
2004-08-10 06:04:57 -04:00
NHDIR= ${PREFIX}/${GAMEDIR}
2001-07-04 07:14:53 -04:00
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
SUBST_VARS=GAMEDIR V
2001-07-04 07:14:53 -04:00
# qt flavor is apparently not working yet
FLAVORS=no_x11 #qt
FLAVOR?=
# ... but let fragments work
PKG_ARGS+=-Dqt=0
2001-07-04 07:14:53 -04:00
.if ${FLAVOR:L} == "no_x11"
NETHACKCONFIG=${FILESDIR}/simple-config
.elif ${FLAVOR:L} == "qt"
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
2004-11-28 17:41:14 -05:00
WANTLIB+= X11 Xaw Xext Xmu Xpm Xt
2001-07-04 07:14:53 -04:00
.endif
RUN_DEPENDS=:hackdata-*:games/hackdata
2001-07-04 07:14:53 -04:00
2002-10-26 16:44:38 -04:00
NO_REGRESS= Yes
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} ${PREFIX}/bin/slashem ${PREFIX}/bin/slashem-$V
${INSTALL_PROGRAM} ${WRKBUILD}/util/strecover ${PREFIX}/bin/strecover-$V
${INSTALL_MAN} ${WRKSRC}/doc/slashem.6 ${PREFIX}/man/man6/slashem-$V.6
${INSTALL_MAN} ${WRKSRC}/doc/strecover.6 ${PREFIX}/man/man6/strecover-$V.6
2001-07-04 07:14:53 -04:00
.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-$V
2001-07-04 07:14:53 -04:00
.endif
.include <bsd.port.mk>