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 |