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

root/csw/mgar/pkg/coreutils/trunk/Makefile

Revision 16916, 2.7 KB (checked in by dmichelsen, 4 months ago)

WHOLE TREE: Explicitly set GARTYPE to current default 'v2'

Line 
1NAME = coreutils
2VERSION = 8.15
3CATEGORIES = utils
4GARTYPE = v2
5
6# seq has issues related to the handling of long double's with -O2.
7# this issue manifested on sol8 and sol9 x86 only.  sparc was unaffected
8# and sol10 x86 was fine too.
9# OPT_FLAGS_GCC = -O1 -pipe
10
11# building with gcc gets us extra tools (eg: stdbuf)
12GARCOMPILER = GCC4
13
14SHELL = /opt/csw/bin/bash
15
16BUILD_DEP_PKGS =  CSWautomake CSWautoconf CSWbison CSWggettext-dev CSWgit
17BUILD_DEP_PKGS += CSWgperf CSWgzip CSWperl CSWrsync CSWgtar CSWbash
18
19RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibintl8
20RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibgcc-s1
21RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibiconv2
22RUNTIME_DEP_PKGS_CSWcoreutils += CSWlibgmp10
23
24INCOMPATIBLE_PKGS = CSWshutils CSWtextutils
25
26DESCRIPTION = GNU core utilities
27define BLURB
28The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system.
29
30Previously these utilities were offered as three individual sets of GNU utilities, Fileutils, Shellutils, and Textutils. Those three have been combined into a single set of utilities called Coreutils.
31endef
32
33MASTER_SITES = $(GNU_MIRROR)
34DISTFILES = $(NAME)-$(VERSION).tar.xz
35
36# We define upstream file regex so we can be notifed of new upstream
37# software release
38UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
39
40sysconfdir = /etc/opt/csw
41localstatedir = /var/opt/csw
42CONFIGURE_ARGS = $(DIRPATHS)
43CONFIGURE_ARGS += --program-prefix=g
44CONFIGURE_ARGS += --with-libintl-prefix=/opt/csw
45CONFIGURE_ARGS += --with-libiconv-prefix=/opt/csw
46# handle su manually to avoid needing fakeroot or some such.  this is now
47# explicitly required as we modify both --enable-*install-program  lists
48CONFIGURE_ARGS += --enable-no-install-program=chcon,su
49CONFIGURE_ARGS += --enable-install-program=hostname,arch
50
51# required for eaccess and not picked up automatically.
52EXTRA_LDFLAGS = -lgen
53
54PROTOTYPE_FILTER  = awk '$$$$3 == "/opt/csw/bin/gsu" { $$$$4 = "4555" }; { print }'
55
56# move the pegs forward
57ifneq ($(VERSION), 8.13)
58else
59TEST_SCRIPTS =
60endif
61
62include gar/category.mk
63
64PATH := ~/bin:/opt/csw/gnu:/opt/csw/bin:$(PATH)
65
66post-install-modulated:
67        @echo Cleaning up install directory...
68        rm -rf $(DESTDIR)/$(libdir)
69        @echo Manually install gsu \(so no root rights required\)
70        cp $(WORKSRC)/src/su $(DESTDIR)$(bindir)/gsu
71
72post-merge:
73        @(cd $(PKGROOT)$(prefix); \
74                mkdir gnu; cd gnu; \
75                for f in ../bin/g*; do \
76                        echo Linking $$f; \
77                        base=$$(basename $$f); \
78                        gln -s $$f ./$${base/g/}; \
79                done )
80        @(cd $(PKGROOT)$(datadir)/info; \
81                perl -pi -e 's#/usr/local/bin/printf#/opt/csw/bin/gprintf#g;' \
82                         -e 's#/usr/local/bin/listusers#/my/bin/showusers#;' \
83                        coreutils.info)
84        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.