diff options
-rw-r--r-- | lang/kawa/Makefile | 4 | ||||
-rw-r--r-- | lang/kawa/files/patch-bin_kawapath.c | 15 |
2 files changed, 15 insertions, 4 deletions
diff --git a/lang/kawa/Makefile b/lang/kawa/Makefile index 31bb33db2351..c25846be8d43 100644 --- a/lang/kawa/Makefile +++ b/lang/kawa/Makefile @@ -27,10 +27,6 @@ INFO= kawa kawa-tour .include <bsd.port.pre.mk> -.if ${OSVERSION} < 500000 -IGNORE= does not compile on FreeBSD 4.x -.endif - pre-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} \ -e 's|sed |gsed |g;' \ diff --git a/lang/kawa/files/patch-bin_kawapath.c b/lang/kawa/files/patch-bin_kawapath.c new file mode 100644 index 000000000000..506240a8b06b --- /dev/null +++ b/lang/kawa/files/patch-bin_kawapath.c @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- bin/kawapath.c.orig ++++ bin/kawapath.c +@@ -15,8 +15,8 @@ + const char *path = getenv("KAWALIB"); + if (path == NULL) + { +- path = kawalib; + const char *rp = progname == NULL ? NULL : strrchr(progname, '/'); ++ path = kawalib; + if (rp != NULL) + { + /* If kawa is executed "in place" as $builddir/bin/kawa |