2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Adam Kranzel (adam@alameda.edu)
|
2001-05-19 20:34:37 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slashem
|
2007-08-19 10:37:32 +02:00
|
|
|
PORTVERSION= 0.0.7E.7F.3
|
2001-05-19 20:34:37 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/0.0.7E7F3
|
2001-05-19 20:34:37 +02:00
|
|
|
PKGNAMESUFFIX= -tty
|
2014-05-05 11:45:36 +02:00
|
|
|
DISTNAME= se${PORTVERSION:S/.//g:tl}
|
2001-05-19 20:34:37 +02:00
|
|
|
|
2007-08-19 10:37:32 +02:00
|
|
|
MAINTAINER= glewis@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A dungeon explorin', slashin', hackin' game
|
2001-05-19 20:34:37 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-08-19 10:37:32 +02:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
SUB_FILES+= pkg-deinstall
|
|
|
|
MAN6= dgn_comp.6 dlb.6 lev_comp.6 recover.6 slashem.6
|
2009-11-22 20:49:43 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2001-05-19 20:34:37 +02:00
|
|
|
|
2001-10-02 14:03:05 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/([A-Z])./\1/g}
|
2007-08-25 20:09:49 +02:00
|
|
|
MAKE_ENV+= DATADIR="${DATADIR}"
|
2001-05-19 20:34:37 +02:00
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
2001-05-19 20:34:37 +02:00
|
|
|
post-patch:
|
2002-11-04 23:57:37 +01:00
|
|
|
${REINPLACE_CMD} -e \
|
2007-08-25 20:09:49 +02:00
|
|
|
"s@%%DATADIR%%@${DATADIR}@g" ${WRKSRC}/include/config.h
|
2001-05-19 20:34:37 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
|
2007-08-19 10:37:32 +02:00
|
|
|
@(cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} manpages)
|
2001-05-19 20:34:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-08-19 10:37:32 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/slamfaq.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/sample.slashemrc ${DOCSDIR}
|
2001-05-19 20:34:37 +02:00
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|