FreeBSD Bugzilla – Attachment 44221 Details for
Bug 68522
WITH_MENUCOLORS update (link with gnuregex lib), and new WITH_MAIL tweak
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.03 KB, created by
Jeremy Chadwick
on 2004-06-30 17:50:21 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Jeremy Chadwick
Created:
2004-06-30 17:50:21 UTC
Size:
3.03 KB
patch
obsolete
>diff -ruN nethack34.orig/Makefile nethack34/Makefile >--- nethack34.orig/Makefile Wed Jun 30 08:03:09 2004 >+++ nethack34/Makefile Wed Jun 30 09:25:25 2004 >@@ -49,6 +49,7 @@ > PATCHFILES+= nh343-menucolor.diff > PATCH_SITES+= http://www.cs.joensuu.fi/~pkalli/code/ > PATCH_DIST_STRIP= -p1 >+MAKE_ENV+= LIBTTY="-lgnuregex" > .endif > .elif ${PKGNAMESUFFIX} == "-qt" > USE_QT_VER= 3 >@@ -59,6 +60,17 @@ > .endif > .endif > >+.include <bsd.port.pre.mk> >+ >+# FreeBSD 5.2.1-RELEASE (or, well, almost) and above use include/gnu/regex.h >+# while prior releases use include/gnuregex.h. This simply gets rid of the >+# repetitive warning during the build process on 5.x. >+.if ${OSVERSION} >= 502010 >+GNU_REGEX_H= <gnu/regex.h> >+.else >+GNU_REGEX_H= <gnuregex.h> >+.endif >+ > pre-everything:: > @if [ "${PKGBASE}" != "nethack" ]; then \ > ${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ; \ >@@ -73,13 +85,16 @@ > .for f in include/config.h sys/unix/Makefile.src sys/unix/Makefile.top > ${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g;s|%%HACKDIR%%|${PREFIX}/${HACKDIR}|g' ${WRKSRC}/${f} > .endfor >- ${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/src/sounds.c >+ ${REINPLACE_CMD} -e 's|<regex.h>|${GNU_REGEX_H}|g' ${WRKSRC}/src/sounds.c > ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/win/Qt/qt_win.cpp > .if defined(WITHOUT_SHELL) >- @${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h >+ ${REINPLACE_CMD} -e 's|#define SHELL|/* #define SHELL|' ${WRKSRC}/include/unixconf.h > .endif > .if defined(WITH_MENUCOLORS) >- ${REINPLACE_CMD} -e 's|<regex.h>|<gnuregex.h>|g' ${WRKSRC}/include/color.h >+ ${REINPLACE_CMD} -e 's|<regex.h>|${GNU_REGEX_H}|g' ${WRKSRC}/include/color.h >+.endif >+.if defined(WITH_MAIL) >+ ${REINPLACE_CMD} -e 's|/\* #define MAIL \*/|#define MAIL|' ${WRKSRC}/include/unixconf.h > .endif > > pre-configure: >@@ -92,4 +107,4 @@ > ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/${HACKDOCSDIR} > .endif > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >diff -ruN nethack34.orig/files/patch-ad nethack34/files/patch-ad >--- nethack34.orig/files/patch-ad Sun Sep 28 04:51:31 2003 >+++ nethack34/files/patch-ad Wed Jun 30 08:27:53 2004 >@@ -1,5 +1,6 @@ >---- sys/unix/Makefile.src.orig Sat Aug 30 09:08:04 2003 >-+++ sys/unix/Makefile.src Mon Sep 1 23:12:45 2003 >+diff -ruN sys.orig/unix/Makefile.src sys/unix/Makefile.src >+--- sys.orig/unix/Makefile.src Sun Dec 7 15:39:13 2003 >++++ sys/unix/Makefile.src Wed Jun 30 08:27:32 2004 > @@ -146,19 +146,29 @@ > # directories. The ones given below is the usual spot for linux systems. > # The paths are for glibconfig.h and gnomesupport.h respectively. >@@ -61,7 +62,12 @@ > > # on some systems the termcap library is in -ltermcap or -lcurses > # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead >-@@ -235,19 +264,19 @@ >+@@ -231,23 +260,23 @@ >+ # WINTTYLIB = -lcurses >+ # WINTTYLIB = -lcurses16 >+ # WINTTYLIB = -lncurses >+-WINTTYLIB = -ltermlib >++WINTTYLIB = -ltermlib ${LIBTTY} > # > # libraries for X11 > # If USE_XPM is defined in config.h, you will also need -lXpm here.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68522
: 44221