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:
parent
97367028e6
commit
f4eaefd0d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133986
@ -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}
|
||||
|
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>
|
||||
|
||||
.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}
|
||||
|
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…
Reference in New Issue
Block a user