aboutsummaryrefslogtreecommitdiffstats
path: root/games/nethack33-qt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/nethack33-qt/Makefile')
-rw-r--r--games/nethack33-qt/Makefile39
1 files changed, 3 insertions, 36 deletions
diff --git a/games/nethack33-qt/Makefile b/games/nethack33-qt/Makefile
index e1c1b27dee70..b760e8c22335 100644
--- a/games/nethack33-qt/Makefile
+++ b/games/nethack33-qt/Makefile
@@ -5,43 +5,10 @@
# $FreeBSD$
#
-PORTNAME= nethack
-PKGNAMESUFFIX= -qt
-PORTVERSION= 3.3.1
-CATEGORIES= games
-MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh${PORTVERSION:S/.//g}/src/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
-EXTRACT_SUFX= .tgz
+MASTERDIR= ${.CURDIR}/../nethack33
MAINTAINER= ports@FreeBSD.org
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_QT_VER= 2
-USE_GMAKE= yes
-MAKE_ENV= CXX="${CXX}" MOC="${MOC}" LIBQT="-l${QTNAME}" \
- QTCPPFLAGS="${QTCPPFLAGS}" QTCFGLIBS="${QTCFGLIBS}"
-MAN6= dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
+WITH_QT_GRAPHICS= yes
-pre-everything::
- @${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
- @${ECHO} "!! You cannot install nethack and nethack-qt in parallel !!"
- @${ECHO} "!! But nethack-qt might read your prior nethack scores !!"
- @${ECHO} "!! Don't forget to backup your nethack libdir if it's !!"
- @${ECHO} "!! important for you !!"
- @${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
-
-post-patch:
- @${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/include/config.h
-
-pre-configure:
- @cd ${WRKSRC}/sys/unix; ${SH} setup.sh
-
-post-install:
- @cd ${WRKSRC}/doc; ${CHMOD} 644 *.6
- @cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE} manpages
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${DOCSDIR}
-.endif
-
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"