1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

Unbreak on 4.x by using the port's included wide character functions.

PR:		ports/80230
Submitted by:	Jason Stone <jason-fbsd-ports-gale@shalott.net> (maintainer)
Approved by:	clement (mentor)
This commit is contained in:
Sam Lawrance 2005-04-23 08:39:14 +00:00
parent 97367028e6
commit f4eaefd0d1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133986
4 changed files with 32 additions and 4 deletions

View File

@ -34,14 +34,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500039
IGNORE= requires wchar functions for compilation
CFLAGS+= -DNEED_WCWIDTH
.endif
# cheesy hack - test-oop doesn't build, but we don't care.
pre-configure:
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
${WRKSRC}/liboop/Makefile.in
${ECHO} -n > ${WRKSRC}/libgale/wcwidth.c
post-install:
@${CAT} ${PKGMESSAGE}

View File

@ -0,0 +1,15 @@
--- libgale/wcwidth.c.orig Mon Dec 30 21:08:50 2002
+++ libgale/wcwidth.c Thu Apr 21 15:02:47 2005
@@ -6,6 +6,7 @@
* Markus Kuhn -- 2000-02-08 -- public domain
*/
+#ifdef NEED_WCWIDTH
#include "gale/compat.h"
/* These functions define the column width of an ISO 10646 character
@@ -126,3 +127,4 @@
return width;
}
+#endif

View File

@ -34,14 +34,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500039
IGNORE= requires wchar functions for compilation
CFLAGS+= -DNEED_WCWIDTH
.endif
# cheesy hack - test-oop doesn't build, but we don't care.
pre-configure:
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
${WRKSRC}/liboop/Makefile.in
${ECHO} -n > ${WRKSRC}/libgale/wcwidth.c
post-install:
@${CAT} ${PKGMESSAGE}

View File

@ -0,0 +1,15 @@
--- libgale/wcwidth.c.orig Mon Dec 30 21:08:50 2002
+++ libgale/wcwidth.c Thu Apr 21 15:02:47 2005
@@ -6,6 +6,7 @@
* Markus Kuhn -- 2000-02-08 -- public domain
*/
+#ifdef NEED_WCWIDTH
#include "gale/compat.h"
/* These functions define the column width of an ISO 10646 character
@@ -126,3 +127,4 @@
return width;
}
+#endif