openbsd-ports/devel/git/patches/patch-Makefile

95 lines
2.3 KiB
Plaintext
Raw Normal View History

2009-12-06 05:03:15 -05:00
--- Makefile.orig Sun Dec 6 04:51:25 2009
+++ Makefile Sun Dec 6 10:39:37 2009
2009-11-17 11:29:42 -05:00
@@ -218,7 +218,7 @@ uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo
# CFLAGS and LDFLAGS are for the users to override from the command line.
-CFLAGS = -g -O2 -Wall
+CFLAGS ?= -g -O2 -Wall
LDFLAGS =
ALL_CFLAGS = $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
2009-11-17 11:29:42 -05:00
@@ -236,22 +236,16 @@ STRIP ?= strip
# runtime figures out where they are based on the path to the executable.
# This can help installing the suite in a relocatable way.
-prefix = $(HOME)
+#prefix = $(HOME)
bindir_relative = bin
bindir = $(prefix)/$(bindir_relative)
-mandir = share/man
+mandir = man
infodir = share/info
-gitexecdir = libexec/git-core
+gitexecdir = libexec/git
sharedir = $(prefix)/share
template_dir = share/git-core/templates
htmldir = share/doc/git-doc
-ifeq ($(prefix),/usr)
-sysconfdir = /etc
-ETC_GITCONFIG = $(sysconfdir)/gitconfig
-else
-sysconfdir = $(prefix)/etc
-ETC_GITCONFIG = etc/gitconfig
-endif
+ETC_GITCONFIG = $(SYSCONFDIR)/gitconfig
lib = lib
# DESTDIR=
pathsep = :
2009-11-17 11:29:42 -05:00
@@ -276,16 +270,16 @@ GITWEB_SITE_FOOTER =
export prefix bindir sharedir sysconfdir
-CC = gcc
+CC ?= gcc
AR = ar
2007-12-17 15:00:05 -05:00
RM = rm -f
TAR = tar
2007-12-17 15:00:05 -05:00
FIND = find
INSTALL = install
RPMBUILD = rpmbuild
2007-12-17 15:00:05 -05:00
-TCL_PATH = tclsh
-TCLTK_PATH = wish
-PTHREAD_LIBS = -lpthread
2007-12-17 15:00:05 -05:00
+TCL_PATH ?= tclsh
+TCLTK_PATH ?= wish
+PTHREAD_LIBS = -pthread
export TCL_PATH TCLTK_PATH
2009-12-06 05:03:15 -05:00
@@ -806,13 +800,12 @@ ifeq ($(uname_S),FreeBSD)
endif
endif
ifeq ($(uname_S),OpenBSD)
- NO_STRCASESTR = YesPlease
NO_MEMMEM = YesPlease
2009-06-04 14:01:56 -04:00
USE_ST_TIMESPEC = YesPlease
NEEDS_LIBICONV = YesPlease
2007-04-28 05:18:51 -04:00
- BASIC_CFLAGS += -I/usr/local/include
- BASIC_LDFLAGS += -L/usr/local/lib
- THREADED_DELTA_SEARCH = YesPlease
2007-04-28 05:18:51 -04:00
+ BASIC_CFLAGS += -I${X11BASE}/include -I${LOCALBASE}/include
+ BASIC_LDFLAGS += -L${X11BASE}/lib -L${LOCALBASE}/lib
+ NO_PTHREADS = YesPlease
2007-04-28 05:18:51 -04:00
endif
ifeq ($(uname_S),NetBSD)
ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
2009-12-06 05:03:15 -05:00
@@ -1082,7 +1075,7 @@ ifndef NO_POSIX_ONLY_PROGRAMS
PROGRAMS += git-imap-send$X
endif
ifndef NO_OPENSSL
- OPENSSL_LIBSSL = -lssl
+ OPENSSL_LIBSSL = -lssl -lcrypto
ifdef OPENSSLDIR
BASIC_CFLAGS += -I$(OPENSSLDIR)/include
2007-12-17 15:00:05 -05:00
OPENSSL_LINK = -L$(OPENSSLDIR)/$(lib) $(CC_LD_DYNPATH)$(OPENSSLDIR)/$(lib)
2009-11-17 11:29:42 -05:00
@@ -1671,7 +1664,7 @@ all:: $(TEST_PROGRAMS)
export NO_SVN_TESTS
-test: all
+test:
$(MAKE) -C t/ all
test-ctype$X: ctype.o