Files
ports/deskutils/menumaker/files/patch-Makefile.in
T
Jason Helfman 21ca0118d5 - Make menumaker configure script properly find python.
- Change configure to look for python3.5 and python3.6, as well as older
  versions.
- Add LDFLAGS to make it possible for the configure script to find python
  libraries.  Actually use python in Makefile.in.

Reviewed by/with: zeising@
2019-08-08 17:00:58 +00:00

18 lines
804 B
Makefile

--- Makefile.in.orig 2019-07-21 13:18:07 UTC
+++ Makefile.in
@@ -851,12 +851,13 @@ uninstall-am: uninstall-dist_binSCRIPTS \
install-exec-local :
+ -chmod u+w $(DESTDIR)/$(bindir)/mmaker
echo "#!/usr/bin/env $(PYTHON_BIN)" > $(DESTDIR)/$(bindir)/mmaker
echo "import sys; sys.path = ['$(pkgdatadir)'] + sys.path" >> $(DESTDIR)/$(bindir)/mmaker
echo "import MenuMaker.CLI" >> $(DESTDIR)/$(bindir)/mmaker
install-data-local :
- $(PYTHON) -c 'import compileall; compileall.compile_dir(dir="$(DESTDIR)/$(pkgdatadir)", ddir="$(pkgdatadir)")'
+ $(PYTHON_BIN) -c 'import compileall; compileall.compile_dir(dir="$(DESTDIR)/$(pkgdatadir)", ddir="$(pkgdatadir)")'
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.