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

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

Revision 20858, 10.0 KB (checked in by bdwalton, 5 weeks ago)

git/trunk: version bump

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