On Wed, Dec 03, 2014 at 01:00:17AM +0100, Thomas Klausner wrote:
> I've tried building it; a preliminary package (for the git version) is
> in wip/scim-git.
> 
> However, it does not build for me, neither with yacc nor bison's yacc.
> 
> I usually see
> Makefile:187: recipe for target 'gram.c' failed
> or similar problems.

I've finished the package now. The Makefile rules are not working for
parallel make (e.g., make -j 8), so I've disabled that for the
package.

The Makefile was also missing DESTDIR support, patch attached.

Cheers,
 Thomas
$NetBSD$

Add DESTDIR support.

--- src/Makefile.orig   2014-12-03 06:57:16.000000000 +0000
+++ src/Makefile
@@ -168,10 +168,11 @@ OBJS := $(patsubst %.c, %.o, $(wildcard 
 all : $(name)
 
 install :
-       install scim $(prefix)/bin/scim
+       install -d $(DESTDIR)$(prefix)/bin
+       install scim $(DESTDIR)$(prefix)/bin/scim
 
 uninstall :
-       -rm $(prefix)/bin/scim
+       -rm $(DESTDIR)$(prefix)/bin/scim
 
 $(name) : $(OBJS)
        $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)

Reply via email to