Permalink
Browse files

. Make PORTNAME nethack32 rather than using nethack and relying on

  LATEST_LINK to provide differentiation.  This makes the package name
  unique.

Requested by:	bapt@
  • Loading branch information...
1 parent d22838d commit 93749c270002759fb1c95b4337a199085cc77fe3 glewis committed Nov 30, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 games/nethack32/Makefile
View
16 games/nethack32/Makefile
@@ -1,36 +1,36 @@
# Created by: asami
# $FreeBSD$
-PORTNAME= nethack
+PORTNAME= nethack32
PORTVERSION= 3.2.3
PORTREVISION= 6
CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/3.2.2
+MASTER_SITES= SF/${TRUEPORTNAME}/${TRUEPORTNAME}/3.2.2
DISTNAME= nethack-322
EXTRACT_SUFX= .tgz
-PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:C/%SUBDIR%/${PORTNAME}\/${PORTNAME}\/${PORTVERSION}/}
+PATCH_SITES= ${MASTER_SITE_SOURCEFORGE:C/%SUBDIR%/${TRUEPORTNAME}\/${TRUEPORTNAME}\/${PORTVERSION}/}
PATCHFILES= nh-3.2.2-3.2.3.diff
MAINTAINER= glewis@FreeBSD.org
COMMENT= A dungeon explorin', slashin', hackin' game
-WRKSRC= ${WRKDIR}/${PORTNAME}-3.2.2
-LATEST_LINK= nethack32
+WRKSRC= ${WRKDIR}/${TRUEPORTNAME}-3.2.2
USE_GMAKE= yes
USE_XORG= xaw xpm
PLIST_SUB= HACKNAME="${HACKNAME}" \
HACKEXT="${HACKEXT}"
MAKE_JOBS_UNSAFE= yes
+TRUEPORTNAME= nethack
MAN6= dgn_comp${HACKEXT}.6 dlb${HACKEXT}.6 lev_comp${HACKEXT}.6 \
${HACKNAME}.6 recover${HACKEXT}.6
HACKEXT?= 32
-HACKNAME?= ${PORTNAME}${HACKEXT}
+HACKNAME?= ${TRUEPORTNAME}${HACKEXT}
HACKDIR?= share/${HACKNAME}
-HACKLINK= nethack
+HACKLINK= ${TRUEPORTNAME}
DATADIR= ${PREFIX}/${HACKDIR}
DOCSDIR= ${PREFIX}/share/doc/${HACKNAME}
@@ -69,7 +69,7 @@ post-install:
@${LN} -s -f ${PREFIX}/bin/${HACKNAME} ${PREFIX}/bin/${HACKLINK}
.endif
@cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} manpages
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${DOCSDIR}
.endif

0 comments on commit 93749c2

Please sign in to comment.