ports/devel/cscout/files/patch-src_Makefile
Rene Ladan 1da7ff85c5 devel/cscout: unexpire and update to 3.01
- Leave out the DOCS option for now because the required conversion
  of XML to HTML has not been figured out yet.
- No more dependency on compat6x
- Fetch sources from GitHub
- update license to GPLv3

PR:		242402
Submitted by:	Joachim Werner
Approved by:	maintainer (dds@)
MFH:		2020Q2
2020-05-24 15:21:57 +00:00

27 lines
930 B
Text

--- src/Makefile.orig 2019-11-04 16:42:35 UTC
+++ src/Makefile
@@ -207,12 +207,13 @@ mkerr:
# This ensures that the version.cpp is regenerated iff its SHA doesn't
# match the current one.
-ifneq ($(shell sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp), $(shell git log -n 1 --format='%H' || sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp))
+# Without git available, we will just generate a semi-static version.cpp
+#ifneq ($(shell sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp), $(shell git log -n 1 --format='%H' || sed -n '/Version::revision/s/.* = "\(.*\)";/\1/p' version.cpp))
version.cpp:
sh make-version.sh >$@
-.PHONY: version.cpp
-endif
+#.PHONY: version.cpp
+#endif
test:
@@ -264,6 +265,7 @@ obfuscation:
)
install: build/cscout
+ install -d "${INSTALL_PREFIX}/bin"
install -Ds $< "$(INSTALL_PREFIX)/bin/cscout"
./dest-install.sh "$(INSTALL_PREFIX)"