diff options
author | johans <johans@FreeBSD.org> | 2007-10-12 16:31:11 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2007-10-12 16:31:11 +0800 |
commit | 5fdcc69b6a73cc938b66a07a3abdadcec7239567 (patch) | |
tree | 92e63ff09a311897d1fe61a8125e3e3e529e5806 /devel | |
parent | 4b3f9feebb7b3ad511ad2e30ef3c425dd5f5af9f (diff) | |
download | freebsd-ports-gnome-5fdcc69b6a73cc938b66a07a3abdadcec7239567.tar.gz freebsd-ports-gnome-5fdcc69b6a73cc938b66a07a3abdadcec7239567.tar.zst freebsd-ports-gnome-5fdcc69b6a73cc938b66a07a3abdadcec7239567.zip |
- Fix build with gcc 4.2
- While we're here, replace manual ${LDCONFIG} command with ${USE_LDCONFIG}
Diffstat (limited to 'devel')
-rw-r--r-- | devel/entity/Makefile | 7 | ||||
-rw-r--r-- | devel/entity/files/patch-libentitynjs_iostream.c | 42 |
2 files changed, 43 insertions, 6 deletions
diff --git a/devel/entity/Makefile b/devel/entity/Makefile index 01611c4278ae..0b47efa5a068 100644 --- a/devel/entity/Makefile +++ b/devel/entity/Makefile @@ -24,18 +24,13 @@ CONFIGURE_ARGS+= --enable-tcl=no USE_AUTOTOOLS= libtool:15 USE_GMAKE= yes USE_GNOME= gtk12 -USE_LDCONFIG= yes +USE_LDCONFIG= ${PREFIX}/lib/entity/clib MAN1= entity.1 .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 700042 -BROKEN= Broken with gcc 4.2 -.endif - post-install: - ${LDCONFIG} -m ${PREFIX}/lib/entity/clib ${PREFIX}/lib ${MKDIR} ${PREFIX}/share/entity cd ${WRKSRC}/apps && ${PAX} -r -w `${LS} | \ ${GREP} -v Makefile` ${PREFIX}/share/entity diff --git a/devel/entity/files/patch-libentitynjs_iostream.c b/devel/entity/files/patch-libentitynjs_iostream.c new file mode 100644 index 000000000000..1f5c30f81d39 --- /dev/null +++ b/devel/entity/files/patch-libentitynjs_iostream.c @@ -0,0 +1,42 @@ +--- libentitynjs/iostream.c.orig 2007-10-12 10:20:45.000000000 +0200 ++++ libentitynjs/iostream.c 2007-10-12 10:17:41.000000000 +0200 +@@ -205,8 +205,9 @@ js_iostream_pipe (FILE *fp, int readp) + + + size_t +-js_iostream_read (JSIOStream *stream, void *ptr, size_t size) ++js_iostream_read (JSIOStream *stream, void *vptr, size_t size) + { ++ unsigned char *ptr = (unsigned char *)vptr; + size_t total = 0; + int got; + +@@ -233,7 +234,7 @@ js_iostream_read (JSIOStream *stream, vo + + stream->bufpos += got; + size -= got; +- (unsigned char *) ptr += got; ++ ptr += got; + total += got; + } + else +@@ -251,8 +252,9 @@ js_iostream_read (JSIOStream *stream, vo + + + size_t +-js_iostream_write (JSIOStream *stream, void *ptr, size_t size) ++js_iostream_write (JSIOStream *stream, void *vptr, size_t size) + { ++ unsigned char *ptr = (unsigned char *)vptr; + int space; + size_t total = 0; + +@@ -290,7 +292,7 @@ js_iostream_write (JSIOStream *stream, v + stream->data_in_buf += space; + total += space; + size -= space; +- (unsigned char *) ptr += space; ++ ptr += space; + + /* Now the buffer contains buffered write data. */ + stream->writep = 1; |