termux-packages/packages/gap/Makefile.patch
2021-12-04 14:36:36 +01:00

40 lines
1.7 KiB
Diff

--- ../Makefile.rules.orig 2019-09-22 20:57:37.181592898 +0200
+++ ./Makefile.rules 2019-09-22 21:00:21.344024139 +0200
@@ -470,22 +470,20 @@
LTINSTALL=$(LIBTOOL) --mode=install $(INSTALL)
install: install-libgap install-headers
- @echo "Error, 'make install' has not yet been implemented"
- exit 1
-# $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(bindir)
-# $(QUIET_INSTALL)$(INSTALL) gap $(DESTDIR)$(bindir)
-# $(QUIET_INSTALL)$(INSTALL) gac $(DESTDIR)$(bindir)
-#
-# install-headers:
-# $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(includedir)/gap
-# $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(includedir)/gap/hpc
-# $(QUIET_INSTALL)$(INSTALL) -m 0644 $(srcdir)/src/*.h $(DESTDIR)$(includedir)/gap
-# $(QUIET_INSTALL)$(INSTALL) -m 0644 $(srcdir)/src/hpc/*.h $(DESTDIR)$(includedir)/gap/hpc
-# # TODO: take care of config.h
-#
-# install-libgap: libgap.la
-# $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(libdir)
-# $(QUIET_INSTALL)$(LTINSTALL) libgap.la $(DESTDIR)$(libdir)
+ $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(bindir)
+ $(QUIET_INSTALL)$(INSTALL) gap $(DESTDIR)$(bindir)
+ $(QUIET_INSTALL)$(INSTALL) gac $(DESTDIR)$(bindir)
+
+install-headers:
+ $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(includedir)/gap
+ $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(includedir)/gap/hpc
+ $(QUIET_INSTALL)$(INSTALL) -m 0644 $(srcdir)/src/*.h $(DESTDIR)$(includedir)/gap
+ $(QUIET_INSTALL)$(INSTALL) -m 0644 $(srcdir)/src/hpc/*.h $(DESTDIR)$(includedir)/gap/hpc
+ # TODO: take care of config.h
+
+install-libgap: libgap.la
+ $(QUIET_INSTALL)$(INSTALL) -d -m 0755 $(DESTDIR)$(libdir)
+ $(QUIET_INSTALL)$(LTINSTALL) libgap.la $(DESTDIR)$(libdir)
.PHONY: install install-libgap