ports/math/sc-im/files/patch-Makefile
2017-04-20 09:17:37 +00:00

35 lines
1.2 KiB
Text

--- Makefile.orig 2017-04-20 00:14:03 UTC
+++ Makefile
@@ -69,12 +69,10 @@ LDLIBS += -lxlsxwriter
endif
# NOTE: lua support
-ifneq ($(shell pkg-config --exists lua51 || echo 'no'),no)
-CFLAGS += -DXLUA $(shell pkg-config --cflags lua51)
-LDLIBS += $(shell pkg-config --libs lua51) -Wl,--export-dynamic
+ifneq ($(shell pkg-config --exists lua-5.1 || echo 'no'),no)
+CFLAGS += -DXLUA $(shell pkg-config --cflags lua-5.1)
+LDLIBS += $(shell pkg-config --libs lua-5.1) -Wl,--export-dynamic
endif
-# dynamic linking
-LDLIBS += -ldl
OBJS = $(patsubst %.c, %.o, $(wildcard *.c) $(wildcard utils/*.c)) gram.o
@@ -88,13 +86,13 @@ install :
install $(name) $(DESTDIR)$(prefix)/bin/$(name)
install -d $(DESTDIR)$(HELPDIR)
install doc $(DESTDIR)$(HELPDIR)/$(name)_help
- install -d $(DESTDIR)$(prefix)/share/man/man1
- install -m 644 sc-im.1 $(DESTDIR)$(prefix)/share/man/man1/$(name).1
+ install -d $(DESTDIR)$(MANDIR)
+ install -m 644 sc-im.1 $(DESTDIR)$(MANDIR)/$(name).1
uninstall :
-rm $(DESTDIR)$(prefix)/bin/$(name)
-rm $(DESTDIR)$(HELPDIR)/$(name)_help
- -rm $(DESTDIR)$(prefix)/share/man/man1/$(name).1
+ -rm $(DESTDIR)$(prefix)$(MANDIR)/$(name).1
$(name) : $(OBJS)
$(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)