openbsd-ports/games/scummvm/patches/patch-Makefile_common
2016-11-01 13:03:14 +00:00

27 lines
1.2 KiB
Plaintext

$OpenBSD: patch-Makefile_common,v 1.9 2016/11/01 13:03:14 jsg Exp $
--- Makefile.common.orig Tue Nov 1 20:19:09 2016
+++ Makefile.common Tue Nov 1 20:19:36 2016
@@ -171,22 +171,6 @@ AMIGA_DATE = $(shell gdate '+%d.%m.%Y')
base/version.o: CXXFLAGS:=$(CXXFLAGS) -DAMIGA_DATE=\"$(AMIGA_DATE)\"
endif
-######################################################################
-# Get git's working copy information
-######################################################################
-
-ifneq ($(shell cd $(srcdir); git rev-parse --verify HEAD 1>/dev/null 2>&1 || echo "error"),error)
-GITROOT := $(srcdir)
-ifeq ($(origin VER_REV), undefined)
-# Are there uncommitted changes? (describe --dirty is only available since 1.6.6)
-VER_DIRTY := $(shell cd $(srcdir); git update-index --refresh --unmerged 1>/dev/null 2>&1; git diff-index --quiet HEAD || echo "-dirty")
-# Get the working copy base revision
-VER_REV := $(shell cd $(srcdir); git describe --long --match desc/\* | cut -d '-' -f 2-)$(VER_DIRTY)
-endif
-else
-GITROOT := git://github.com/scummvm/scummvm.git
-endif
-
# Define the Subversion revision if available, either autodetected or
# specified by the user, but only for base/version.cpp.
ifneq ($(origin VER_REV), undefined)