mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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:
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
|
@ -34,14 +34,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSVERSION} < 500039
|
.if ${OSVERSION} < 500039
|
||||||
IGNORE= requires wchar functions for compilation
|
CFLAGS+= -DNEED_WCWIDTH
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# cheesy hack - test-oop doesn't build, but we don't care.
|
# cheesy hack - test-oop doesn't build, but we don't care.
|
||||||
pre-configure:
|
pre-configure:
|
||||||
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
|
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
|
||||||
${WRKSRC}/liboop/Makefile.in
|
${WRKSRC}/liboop/Makefile.in
|
||||||
${ECHO} -n > ${WRKSRC}/libgale/wcwidth.c
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
15
net-im/gale/files/patch-libgale_wcwidth
Normal file
15
net-im/gale/files/patch-libgale_wcwidth
Normal 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
|
|
@ -34,14 +34,13 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSVERSION} < 500039
|
.if ${OSVERSION} < 500039
|
||||||
IGNORE= requires wchar functions for compilation
|
CFLAGS+= -DNEED_WCWIDTH
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# cheesy hack - test-oop doesn't build, but we don't care.
|
# cheesy hack - test-oop doesn't build, but we don't care.
|
||||||
pre-configure:
|
pre-configure:
|
||||||
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
|
${REINPLACE_CMD} -e 's/\(^noinst_PROGRAMS =.*\)test-oop/\1/' \
|
||||||
${WRKSRC}/liboop/Makefile.in
|
${WRKSRC}/liboop/Makefile.in
|
||||||
${ECHO} -n > ${WRKSRC}/libgale/wcwidth.c
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
15
net/gale/files/patch-libgale_wcwidth
Normal file
15
net/gale/files/patch-libgale_wcwidth
Normal 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
|
Loading…
Add table
Reference in a new issue