Lines 49-54
Link Here
|
49 |
PATCHFILES+= nh343-menucolor.diff |
49 |
PATCHFILES+= nh343-menucolor.diff |
50 |
PATCH_SITES+= http://www.cs.joensuu.fi/~pkalli/code/ |
50 |
PATCH_SITES+= http://www.cs.joensuu.fi/~pkalli/code/ |
51 |
PATCH_DIST_STRIP= -p1 |
51 |
PATCH_DIST_STRIP= -p1 |
|
|
52 |
MAKE_ENV+= LIBTTY="-lgnuregex" |
52 |
.endif |
53 |
.endif |
53 |
.elif ${PKGNAMESUFFIX} == "-qt" |
54 |
.elif ${PKGNAMESUFFIX} == "-qt" |
54 |
USE_QT_VER= 3 |
55 |
USE_QT_VER= 3 |
Lines 59-64
Link Here
|
59 |
.endif |
60 |
.endif |
60 |
.endif |
61 |
.endif |
61 |
|
62 |
|
|
|
63 |
.include <bsd.port.pre.mk> |
64 |
|
65 |
# FreeBSD 5.2.1-RELEASE (or, well, almost) and above use include/gnu/regex.h |
66 |
# while prior releases use include/gnuregex.h. This simply gets rid of the |
67 |
# repetitive warning during the build process on 5.x. |
68 |
.if ${OSVERSION} >= 502010 |
69 |
GNU_REGEX_H= <gnu/regex.h> |
70 |
.else |
71 |
GNU_REGEX_H= <gnuregex.h> |
72 |
.endif |
73 |
|
62 |
pre-everything:: |
74 |
pre-everything:: |
63 |
@if [ "${PKGBASE}" != "nethack" ]; then \ |
75 |
@if [ "${PKGBASE}" != "nethack" ]; then \ |
64 |
${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ |
76 |
${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ |
Lines 73-85
Link Here
|
73 |
.for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top |
85 |
.for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top |
74 |
${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f} |
86 |
${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f} |
75 |
.endfor |
87 |
.endfor |
76 |
${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/src/sounds.c |
88 |
${REINPLACE_CMD} -e 's|<regex.h>|${GNU_REGEX_H}|g' ${WRKSRC}/src/sounds.c |
77 |
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp |
89 |
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp |
78 |
.if defined(WITHOUT_SHELL) |
90 |
.if defined(WITHOUT_SHELL) |
79 |
@${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h |
91 |
${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h |
80 |
.endif |
92 |
.endif |
81 |
.if defined(WITH_MENUCOLORS) |
93 |
.if defined(WITH_MENUCOLORS) |
82 |
${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/include/color.h |
94 |
${REINPLACE_CMD} -e 's|<regex.h>|${GNU_REGEX_H}|g' ${WRKSRC}/include/color.h |
|
|
95 |
.endif |
96 |
.if defined(WITH_MAIL) |
97 |
${REINPLACE_CMD} -e 's|/\* #define MAIL \*/|#define MAIL|' ${WRKSRC}/include/unixconf.h |
83 |
.endif |
98 |
.endif |
84 |
|
99 |
|
85 |
pre-configure: |
100 |
pre-configure: |
Lines 92-95
Link Here
|
92 |
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR} |
107 |
${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR} |
93 |
.endif |
108 |
.endif |
94 |
|
109 |
|
95 |
.include <bsd.port.mk> |
110 |
.include <bsd.port.post.mk> |