Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/astro/astrometry/files/patch-util_Makefile
18160 views
--- util/Makefile.orig	2022-12-19 21:41:15 UTC
+++ util/Makefile
@@ -203,7 +203,9 @@ install: install-core
 install: install-core
 	$(MAKE) install-core
 	@echo "The following copy commands may fail; they are optional."
-	-$(MAKE) py && $(CP) _util$(PYTHON_SO_EXT) util.py '$(PY_INSTALL_DIR)'
+	-$(MAKE) py
+	-$(CP) util.py '$(PY_INSTALL_DIR)'
+	-$(BSD_INSTALL_LIB) _util$(PYTHON_SO_EXT) '$(PY_INSTALL_DIR)'
 	@echo ok
 
 .PHONY: install
@@ -214,7 +216,9 @@ pyinstall:
 		echo $(CP) $$x '$(PY_INSTALL_DIR)/'$$x; \
 		$(CP) $$x '$(PY_INSTALL_DIR)/'$$x; \
 	done
-	$(MAKE) py && $(CP) _util$(PYTHON_SO_EXT) util.py '$(PY_INSTALL_DIR)'
+	$(MAKE) py
+	$(CP) util.py '$(PY_INSTALL_DIR)'
+	$(BSD_INSTALL_LIB) _util$(PYTHON_SO_EXT) '$(PY_INSTALL_DIR)'
 
 .PHONY: pyinstall
 
@@ -238,8 +242,8 @@ install-core: $(PYTHON_EXECS) $(PROGS) $(MAIN_PROGS) $
 	done
 	@echo Installing executables into '$(BIN_INSTALL_DIR)'...
 	@for x in $(PROGS) $(MAIN_PROGS); do \
-		echo $(CP) $$x '$(BIN_INSTALL_DIR)/'$$x; \
-		$(CP) $$x '$(BIN_INSTALL_DIR)/'$$x; \
+		echo $(BSD_INSTALL_PROGRAM) $$x '$(BIN_INSTALL_DIR)/'$$x; \
+		$(BSD_INSTALL_PROGRAM) $$x '$(BIN_INSTALL_DIR)/'$$x; \
 	done
 	@echo Installing headers into '$(INCLUDE_INSTALL_DIR)'...
 	$(MKDIR) '$(INCLUDE_INSTALL_DIR)'