| 1 | NAME = mhash |
|---|
| 2 | VERSION = 0.9.9.9 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = A uniform interface to a large number of hash algorithms |
|---|
| 6 | define 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. |
|---|
| 10 | endef |
|---|
| 11 | |
|---|
| 12 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 13 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 14 | |
|---|
| 15 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.bz2 |
|---|
| 16 | |
|---|
| 17 | VENDOR_URL = http://mhash.sourceforge.net/ |
|---|
| 18 | |
|---|
| 19 | EXTRA_CPPFLAGS = -D__const=const |
|---|
| 20 | |
|---|
| 21 | BUILD64_LIBS_ONLY = 1 |
|---|
| 22 | NOISALIST = 1 |
|---|
| 23 | |
|---|
| 24 | # sparcv9 compile fails with optimization beyond -xO1 at HAVAL256: FAIL: frag_test |
|---|
| 25 | # Please see files/README for details. |
|---|
| 26 | |
|---|
| 27 | ifeq ($(ISA),sparcv9) |
|---|
| 28 | OPT_FLAGS_SOS = -xO1 |
|---|
| 29 | endif |
|---|
| 30 | |
|---|
| 31 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 32 | |
|---|
| 33 | # Always run testsuite as the code is prone to optimization errors |
|---|
| 34 | |
|---|
| 35 | PACKAGES += CSWlibmhash2 |
|---|
| 36 | SPKG_DESC_CSWlibmhash2 = A uniform interface to a large number of hash algorithms, libmhash.so.2 |
|---|
| 37 | PKGFILES_CSWlibmhash2 += $(call pkgfiles_lib,libmhash.so.2) |
|---|
| 38 | OBSOLETED_BY_CSWlibmhash2 += CSWlibmhash |
|---|
| 39 | |
|---|
| 40 | PACKAGES += CSWlibmhash-dev |
|---|
| 41 | SPKG_DESC_CSWlibmhash-dev = Development files for libmash.so.2 |
|---|
| 42 | # PKGFILES is catchall |
|---|
| 43 | RUNTIME_DEP_PKGS_CSWlibmhash-dev += CSWlibmhash2 |
|---|
| 44 | |
|---|
| 45 | include 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. |
|---|
| 50 | post-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 | |
|---|