1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/git/trunk/Makefile

Revision 18006, 9.7 KB (checked in by bdwalton, 12 days ago)

git/trunk: drop some merged patches

Line 
1NAME = git
2VERSION = 1.7.10.2
3#PATCHLEVEL = rc4
4DISTNAME = $(NAME)-$(VERSION)
5CATEGORIES = devel
6GARTYPE = v2
7
8VENDOR_URL = http://git-scm.org/
9
10NO_SVN_TESTS=YesPlease
11GIT_TEST_OPTS=-i -v -d
12EXTRA_TEST_EXPORTS = NO_SVN_TESTS GIT_TEST_OPTS
13
14# disable tests until next version bump (at the top so it stands out)
15# 1.7.2.1 and 1.7.3 have a failure on current9s when fr.UFT-8 is
16# detected as the first available utf8 locale.  the failure is
17# harmless though.
18# TEST_SCRIPTS =
19TEST_TARGET = test
20
21PACKAGES  = CSWgit CSWgitk CSWgit-gui CSWgit-svn CSWgit-cvs
22PACKAGES += CSWgit-emacs CSWgit-doc CSWgit-completion CSWgit-dev
23
24OBSOLETED_BY_CSWgit-gui = CSWgitgui
25CATALOGNAME_CSWgitgui = git_gui_stub
26OBSOLETED_BY_CSWgit-svn = CSWgitsvn
27CATALOGNAME_CSWgitsvn = git_svn_stub
28OBSOLETED_BY_CSWgit-emacs = CSWgitemacs
29CATALOGNAME_CSWgitemacs = git_emacs_stub
30OBSOLETED_BY_CSWgit-doc = CSWgitdoc
31CATALOGNAME_CSWgitdoc = git_doc_stub
32OBSOLETED_BY_CSWgit-completion = CSWgitcompletion
33CATALOGNAME_CSWgitcompletion = git_completion_stub
34OBSOLETED_BY_CSWgit-dev = CSWgitdevel
35CATALOGNAME_CSWgitdevel = git_devel_stub
36OBSOLETED_BY_CSWgit-cvs = CSWgitcvs
37CATALOGNAME_CSWgitcvs = git_cvs_stub
38
39CATALOGNAME_CSWgit = git
40CATALOGNAME_CSWgit-cvs = git_cvs
41CATALOGNAME_CSWgit-svn = git_svn
42CATALOGNAME_CSWgit-emacs = git_emacs
43CATALOGNAME_CSWgit-gui = git_gui
44CATALOGNAME_CSWgit-doc = git_doc
45CATALOGNAME_CSWgitk = gitk
46CATALOGNAME_CSWgit-completion = git_completion
47CATALOGNAME_CSWgit-dev = git_dev
48
49ARCHALL_CSWgit-svn = 1
50ARCHALL_CSWgit-cvs = 1
51ARCHALL_CSWgitk = 1
52ARCHALL_CSWgit-gui = 1
53ARCHALL_CSWgit-emacs = 1
54ARCHALL_CSWgit-doc = 1
55ARCHALL_CSWgit-completion = 1
56
57BUILD_DEP_PKGS = CSWasciidoc CSWossldevel CSWxmlto CSWbash CSWlibcurl-dev
58BUILD_DEP_PKGS += CSWgsed CSWgnulinks CSWperl CSWtk CSWexpat
59BUILD_DEP_PKGS += CSWzlib CSWpmerror CSWpmsvn CSWcvs CSWemacs
60BUILD_DEP_PKGS += CSWpython
61
62RUNTIME_DEP_PKGS_CSWgit = CSWlibz1 CSWperl CSWrsync CSWlibcurl4
63RUNTIME_DEP_PKGS_CSWgit += CSWosshclient CSWlibiconv2 CSWlibexpat1
64RUNTIME_DEP_PKGS_CSWgit += CSWbash CSWpmerror CSWpmtermreadkey
65RUNTIME_DEP_PKGS_CSWgit += CSWpmnetsmtpssl CSWless
66RUNTIME_DEP_PKGS_CSWgit += CSWlibintl8
67RUNTIME_DEP_PKGS_CSWgit += CSWlibssl0-9-8
68
69RUNTIME_DEP_PKGS_CSWgitk = CSWgit CSWtk
70
71RUNTIME_DEP_PKGS_CSWgit-gui = CSWgit CSWtk
72
73RUNTIME_DEP_PKGS_CSWgit-svn = CSWgit CSWpmsvn
74
75RUNTIME_DEP_PKGS_CSWgit-cvs = CSWgit CSWcvs CSWcvsps
76
77RUNTIME_DEP_PKGS_CSWgit-emacs = CSWgit CSWemacscommon
78
79RUNTIME_DEP_PKGS_CSWgit-doc = CSWgit
80
81RUNTIME_DEP_PKGS_CSWgit-dev = CSWgit
82
83# We include bash here even though git itself depends on it because in theory
84# git could use any other POSIX compliant shell and drop the dependency...
85RUNTIME_DEP_PKGS_CSWgit-completion = CSWgit CSWbash CSWbashcmplt
86
87LICENSE = COPYING
88
89DESCRIPTION = Fast Version Control System
90define BLURB
91  Git is a popular version control system designed to handle
92  very large projects with speed and efficiency; it is used
93  mainly for various open source projects, most notably the Linux kernel.
94endef
95
96SPKG_DESC_CSWgit = Fast Version Control System
97SPKG_DESC_CSWgitk = Git revision tree visualiser
98SPKG_DESC_CSWgit-gui = Git GUI tool
99SPKG_DESC_CSWgit-svn = Git tools for working with Subversion repositories
100SPKG_DESC_CSWgit-cvs = Git tools for working with CVS repositories
101SPKG_DESC_CSWgit-doc = Documentation for Git
102SPKG_DESC_CSWgit-emacs = Git VCS support for Emacs
103SPKG_DESC_CSWgit-completion = Bash completion support for Git
104SPKG_DESC_CSWgit-dev = Headers and static libraries for Git
105
106MASTER_SITES = http://git-core.googlecode.com/files/
107DISTFILES += $(DISTNAME).tar.gz
108DISTFILES += CSWgit.postinstall
109
110PATCHFILES += 0001-Update-path-in-documentation-to-be-CSW-proper.patch
111PATCHFILES += 0002-Alter-the-value-of-_PATH_DEFPATH-when-paths.h-not-pr.patch
112PATCHFILES += 0003-Use-bash-and-set-PATH-in-contributed-hook-file.patch
113PATCHFILES += 0004-Add-OpenCSW-apache2-path-to-instaweb-search-path.patch
114# this patch is required on current9s (not necessarily all sparc boxes) due
115# to the selection of available utf8 locales.
116PATCHFILES_isa-sparcv8 += 0005-Force-en_US.UTF-8-for-a-git-svn-test.patch
117PATCHFILES += 0006-Patch-out-a-few-usr-share-references.patch
118PATCHFILES += 0007-on-solaris-we-need-to-use-lintl-to-allow-the-new-i18.patch
119PATCHFILES += 0009-Makefile-Set-EXTRA_CPPFLAGS-during-the-compilation-o.patch
120
121fdirs = $(bindir_install) $(mandir) $(libexecdir_install)
122define _git_files
123$(foreach d,$(fdirs),$(d)/.*$(1).*) $(sharedstatedir)/$(1).*
124endef
125
126PKGFILES_CSWgit-svn = $(call _git_files,git-svn)
127PKGFILES_CSWgit-gui = $(call _git_files,git-gui) $(call _git_files,git-citool)
128PKGFILES_CSWgitk = $(call _git_files,gitk)
129PKGFILES_CSWgit-cvs = $(foreach d,$(fdirs),$(d)/.*cvs.*)
130PKGFILES_CSWgit-emacs = .*emacs.*
131PKGFILES_CSWgit-doc = $(docdir)/git-doc.*
132PKGFILES_CSWgit-completion = .*/bash_completion.d/.*
133PKGFILES_CSWgit-dev = $(includedir)/.* $(libdir)/.*
134
135# We define upstream file regex so we can be notifed of new upstream
136# software release
137UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.bz2
138
139sysconfdir = /etc/opt/csw
140localstatedir = /var/opt/csw
141#set bashconfdir to sysconfdir when bash changes
142bashconfdir = /opt/csw/etc/
143
144CONFIGURE_ARGS = $(DIRPATHS) --with-shell=$(bindir)/bash
145CONFIGURE_ARGS += --with-perl=$(bindir)/perl
146CONFIGURE_ARGS += --with-tcltk=$(bindir)/wish
147CONFIGURE_ARGS += --with-zlib=$(prefix)
148CONFIGURE_ARGS += --with-iconv=$(prefix)
149CONFIGURE_ARGS += --with-openssl=$(prefix)
150CONFIGURE_ARGS += --with-expat=$(prefix)
151CONFIGURE_ARGS += --enable-pthreads="-D_REENTRANT -lpthread"
152CONFIGURE_ARGS += --with-gitconfig=$(sysconfdir)/gitconfig
153CONFIGURE_ARGS += --with-pager=/opt/csw/bin/less
154CONFIGURE_ARGS += --without-python
155
156BUILD_ARGS = MSGFMT=gmsgfmt SHELL_PATH=/opt/csw/bin/bash \
157                ASCIIDOC_NO_ROFF=YesPlease \
158                all
159
160INSTALL_ARGS =  INSTALLDIRS=vendor \
161                install-man install-html
162
163# We want static libs installed for our devel package
164MERGE_EXCLUDE_STATICLIBS =
165
166ETCSERVICES = /opt/csw/etc/pkg/CSWgit/services
167
168CHECKPKG_OVERRIDES_CSWgit-completion += surplus-dependency|CSWbash
169CHECKPKG_OVERRIDES_CSWgit-completion += surplus-dependency|CSWbashcmplt
170CHECKPKG_OVERRIDES_CSWgit-completion += surplus-dependency|CSWgit
171CHECKPKG_OVERRIDES_CSWgit-doc += surplus-dependency|CSWgit
172CHECKPKG_OVERRIDES_CSWgit-doc += file-with-bad-content
173CHECKPKG_OVERRIDES_CSWgit-dev += discouraged-path-in-pkgmap|/opt/csw/lib/git/libgit.a
174CHECKPKG_OVERRIDES_CSWgit-dev += discouraged-path-in-pkgmap|/opt/csw/lib/git/libxdiff.a
175CHECKPKG_OVERRIDES_CSWgit-dev += surplus-dependency|CSWgit
176CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWpmerror
177CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWbash
178CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWosshclient
179CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWrsync
180CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWless
181CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWpmnetsmtpssl
182CHECKPKG_OVERRIDES_CSWgit += surplus-dependency|CSWpmtermreadkey
183CHECKPKG_OVERRIDES_CSWgit += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/git-config.1
184CHECKPKG_OVERRIDES_CSWgit += file-with-bad-content|/usr/share|root/opt/csw/libexec/git-core/git-send-email
185CHECKPKG_OVERRIDES_CSWgit += file-with-bad-content|/usr/share|root/opt/csw/share/gitweb/gitweb.cgi
186CHECKPKG_OVERRIDES_CSWgit += file-with-bad-content|/usr/local|root/opt/csw/libexec/git-core/git-instaweb
187CHECKPKG_OVERRIDES_CSWgit-gui += surplus-dependency|CSWtk
188CHECKPKG_OVERRIDES_CSWgit-gui += surplus-dependency|CSWgit
189CHECKPKG_OVERRIDES_CSWgit-emacs += surplus-dependency|CSWgit
190CHECKPKG_OVERRIDES_CSWgit-cvs += surplus-dependency|CSWcvsps
191CHECKPKG_OVERRIDES_CSWgit-cvs += surplus-dependency|CSWgit
192CHECKPKG_OVERRIDES_CSWgit-cvs += surplus-dependency|CSWcvs
193CHECKPKG_OVERRIDES_CSWgitk += surplus-dependency|CSWtk
194CHECKPKG_OVERRIDES_CSWgitk += surplus-dependency|CSWgit
195CHECKPKG_OVERRIDES_CSWgit-svn += surplus-dependency|CSWgit
196CHECKPKG_OVERRIDES_CSWgit-svn += surplus-dependency|CSWpmsvn
197
198include gar/category.mk
199
200# for tail -n and to override things like, etc with the gnu counterparts
201# gnu must come first so xpg4/sed isn't found first.
202PATH := /opt/csw/gnu:/usr/xpg4/bin:$(PATH)
203
204post-configure-modulated:
205        @echo "Forcing GIT_TEST_CMP tool"
206        @( cd $(WORKSRC); echo 'GIT_TEST_CMP=gdiff' > config.mak )
207        @$(MAKECOOKIE)
208
209# force the elisp extension to be built too.
210post-build-modulated:
211        @echo Builing Emacs Git extension
212        @( cd $(WORKSRC); $(MAKE) -C contrib/emacs )
213
214post-install-modulated: GD=$(DESTDIR)/$(datadir)/doc/$(NAME)
215post-install-modulated: CONTHOOKS=$(GD)/contrib/hooks
216post-install-modulated: BD=$(DESTDIR)/$(bashconfdir)/bash_completion.d
217post-install-modulated: ID=$(DESTDIR)/$(includedir)/git
218post-install-modulated: LD=$(DESTDIR)/$(libdir_install)/git
219post-install-modulated:
220        @echo Installing /etc/services definitions file
221        @( ginstall -m 0755 -d $(DESTDIR)/opt/csw/etc/pkg/CSWgit/; \
222           echo "git 9418/tcp" >> $(DESTDIR)/$(ETCSERVICES); \
223           echo "git 9418/udp" >> $(DESTDIR)/$(ETCSERVICES); )
224        @echo Cleaning up perl stuff
225        @rm -rf $(DESTDIR)/$(libdir)/perl5/site_perl/5*
226        @rm -rf $(DESTDIR)/$(perllib)/
227        @chmod 644 $(DESTDIR)/$(datadir)/perl/csw/*pm
228        @echo Installing Emacs Git extension
229        @( cd $(WORKSRC); $(MAKE) -C contrib/emacs install \
230                emacsdir=$(DESTDIR)/$(datadir)/emacs/site-lisp )
231        @echo Installing devel files
232        @( cd $(WORKSRC); \
233                ginstall -c -m 0755 -d $(ID) $(LD); \
234                for f in `find . -name "*.h"`; do \
235                        dn=`dirname $$f`; \
236                        ginstall -c -m 0755 -d $(ID)/$$dn; \
237                        ginstall -c -m 0644 $$f $(ID)/$$dn; \
238                done; \
239                ginstall -c -m 0444 libgit.a $(LD)/; \
240                ginstall -c -m 0444 ./xdiff/lib.a $(LD)/libxdiff.a )
241        @echo Installing Bash Completion files
242        @( cd $(WORKSRC); \
243                ginstall -c -m 0755 -d $(BD); \
244                cp contrib/completion/* \
245                        $(BD)/ )
246        @( cd $(WORKSRC)/contrib/hooks; \
247                perl -pi -e 's!/usr/share/doc/git-core!/opt/csw/share/doc/git!' post-receive-email; \
248                ginstall -c -d -m 0755 $(CONTHOOKS); \
249                ginstall -c -m 0644 post-receive-email $(CONTHOOKS) )
250        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.