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

root/csw/mgar/pkg/libmhash/trunk/Makefile

Revision 19828, 1.6 KB (checked in by dmichelsen, 6 months ago)

libmhash/trunk: Split packages

Line 
1NAME = mhash
2VERSION = 0.9.9.9
3GARTYPE = v2
4
5DESCRIPTION = A uniform interface to a large number of hash algorithms
6define BLURB
7  Mhash is a free (under GNU Lesser GPL) library which provides a uniform
8  interface to a large number of hash algorithms. These algorithms can be
9  used to compute checksums, message digests, and other signatures.
10endef
11
12MASTER_SITES = $(SF_MIRRORS)
13DISTFILES  = $(NAME)-$(VERSION).tar.bz2
14
15UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.bz2
16
17VENDOR_URL = http://mhash.sourceforge.net/
18
19EXTRA_CPPFLAGS = -D__const=const
20
21BUILD64_LIBS_ONLY = 1
22NOISALIST = 1
23
24# sparcv9 compile fails with optimization beyond -xO1 at HAVAL256: FAIL: frag_test
25# Please see files/README for details.
26
27ifeq ($(ISA),sparcv9)
28OPT_FLAGS_SOS = -xO1
29endif
30
31CONFIGURE_ARGS = $(DIRPATHS)
32
33# Always run testsuite as the code is prone to optimization errors
34
35PACKAGES += CSWlibmhash2
36SPKG_DESC_CSWlibmhash2 = A uniform interface to a large number of hash algorithms, libmhash.so.2
37PKGFILES_CSWlibmhash2 += $(call pkgfiles_lib,libmhash.so.2)
38OBSOLETED_BY_CSWlibmhash2 += CSWlibmhash
39
40PACKAGES += CSWlibmhash-dev
41SPKG_DESC_CSWlibmhash-dev = Development files for libmash.so.2
42# PKGFILES is catchall
43RUNTIME_DEP_PKGS_CSWlibmhash-dev += CSWlibmhash2
44
45include gar/category.mk
46
47# Don't include the most common defines. In general it is a bad idea to include
48# the config file as it may collide with the config file from the main package
49# using libmhash.
50post-install-modulated:
51        perl -pi -e 's,^(#define (?:PACKAGE|PACKAGE_BUGREPORT|PACKAGE_NAME|PACKAGE_STRING|PACKAGE_TARNAME|PACKAGE_VERSION|VERSION) .*),/* \1 */,' \
52                $(DESTDIR)$(includedir)/mutils/mhash_config.h
53        @$(MAKECOOKIE)
54
Note: See TracBrowser for help on using the browser.