View | Details | Raw Unified | Return to bug 205255 | Differences between
and this patch

Collapse All | Expand All

(-)games/nethack34/Makefile (-3 / +13 lines)
Lines 22-30 Link Here
22
MAKE_ENV=	GRAPHICS="${GRAPHICS}"
22
MAKE_ENV=	GRAPHICS="${GRAPHICS}"
23
PLIST_SUB=	HACKNAME="${HACKNAME}"
23
PLIST_SUB=	HACKNAME="${HACKNAME}"
24
24
25
# Configure these variables as you want them to be.
25
TRUEPORTNAME=	nethack
26
HACKNAME?=	nethack
26
27
HACKEXT?=	34
28
HACKNAME?=	${TRUEPORTNAME}${HACKEXT}
27
HACKDIR?=	share/${HACKNAME}
29
HACKDIR?=	share/${HACKNAME}
30
HACKLINK=	${TRUEPORTNAME}
28
31
29
DATADIR=	${PREFIX}/${HACKDIR}
32
DATADIR=	${PREFIX}/${HACKDIR}
30
DOCSDIR=	${PREFIX}/share/doc/${HACKNAME}
33
DOCSDIR=	${PREFIX}/share/doc/${HACKNAME}
Lines 83-93 Link Here
83
.include <bsd.port.options.mk>
86
.include <bsd.port.options.mk>
84
87
85
post-patch:
88
post-patch:
86
.for f in include/config.h sys/unix/Makefile.top
89
.for f in include/config.h sys/unix/Makefile.top sys/unix/Makefile.doc
87
	@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \
90
	@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \
88
		-e 's|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' \
91
		-e 's|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' \
92
		-e 's|%%HACKEXT%%|${HACKEXT}|g' \
89
		${WRKSRC}/${f}
93
		${WRKSRC}/${f}
90
.endfor
94
.endfor
95
.for f in dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
96
	@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \
97
		-e 's|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' \
98
		-e 's|%%HACKEXT%%|${HACKEXT}|g' \
99
		${WRKSRC}/doc/${f}
100
.endfor
91
	@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
101
	@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp
92
.if defined(WITHOUT_SHELL)
102
.if defined(WITHOUT_SHELL)
93
	@${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
103
	@${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h
(-)games/nethack34/files/patch-sys-unix-Makefile.top (-1 / +1 lines)
Lines 56-62 Link Here
56
-	cp src/$(GAME) $(GAMEDIR)
56
-	cp src/$(GAME) $(GAMEDIR)
57
-	cp util/recover $(GAMEDIR)
57
-	cp util/recover $(GAMEDIR)
58
-	-rm -f $(SHELLDIR)/$(GAME)
58
-	-rm -f $(SHELLDIR)/$(GAME)
59
+	cp src/$(GAME) ${DESTDIR}$(GAMEDIR)/$(GAME)
59
+	cp src/nethack ${DESTDIR}$(GAMEDIR)/$(GAME)
60
+	cp util/recover ${DESTDIR}$(GAMEDIR)
60
+	cp util/recover ${DESTDIR}$(GAMEDIR)
61
+	-rm -f ${DESTDIR}$(SHELLDIR)/$(GAME)
61
+	-rm -f ${DESTDIR}$(SHELLDIR)/$(GAME)
62
 	sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
62
 	sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \
(-)games/nethack34/pkg-plist (-1 / +1 lines)
Lines 151-157 Link Here
151
man/man6/dgn_comp.6.gz
151
man/man6/dgn_comp.6.gz
152
man/man6/dlb.6.gz
152
man/man6/dlb.6.gz
153
man/man6/lev_comp.6.gz
153
man/man6/lev_comp.6.gz
154
man/man6/%%HACKNAME%%.6.gz
154
man/man6/nethack.6.gz
155
man/man6/recover.6.gz
155
man/man6/recover.6.gz
156
%%PORTDOCS%%%%DOCSDIR%%/Guidebook.txt
156
%%PORTDOCS%%%%DOCSDIR%%/Guidebook.txt
157
@dir(games,games,0775) %%DATADIR%%/save
157
@dir(games,games,0775) %%DATADIR%%/save

Return to bug 205255