| 1 | NAME = shared-mime-info |
|---|
| 2 | VERSION = 0.71 |
|---|
| 3 | CATEGORIES = lib |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Freedesktop.org common MIME database |
|---|
| 7 | define BLURB |
|---|
| 8 | The shared-mime-info package contains the core database of common types and |
|---|
| 9 | the *update-mime-database* command used to extend it. It requires glib2 to be |
|---|
| 10 | installed for building the update command. Additionally, it uses intltool for |
|---|
| 11 | translations, though this is only a dependency for the maintainers. This |
|---|
| 12 | database is translated at Transifex. |
|---|
| 13 | endef |
|---|
| 14 | |
|---|
| 15 | MASTER_SITES = http://freedesktop.org/~hadess/ |
|---|
| 16 | DISTFILES = $(NAME)-$(VERSION).tar.bz2 |
|---|
| 17 | |
|---|
| 18 | # This is for replacing /usr/local/share by /opt/csw/share in the |
|---|
| 19 | # default XDG_DATA_DIRS |
|---|
| 20 | PATCHFILES += 0001-Set-default-XDG_DATA_DIRS-to-opt-csw-share.patch |
|---|
| 21 | |
|---|
| 22 | # This is because CSWlibglib2-0-0 is only available on Solaris 10+ |
|---|
| 23 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 24 | |
|---|
| 25 | # We define upstream file regex so we can be notifed of new upstream software release |
|---|
| 26 | UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.bz2 |
|---|
| 27 | |
|---|
| 28 | BUILD_DEP_PKGS = CSWgnulinks |
|---|
| 29 | |
|---|
| 30 | PACKAGES = CSWsharedmimeinfo |
|---|
| 31 | CATALOGNAME = shared_mime_info |
|---|
| 32 | CHECKPKG_OVERRIDES = catalogname-does-not-match-pkgname|pkgname=CSWsharedmimeinfo|catalogname=shared_mime_info|expected-catalogname=sharedmimeinfo |
|---|
| 33 | |
|---|
| 34 | # /usr/local does no harm here |
|---|
| 35 | CHECKPKG_OVERRIDES += file-with-bad-content|/usr/local|root/opt/csw/share/mime/mime.cache |
|---|
| 36 | CHECKPKG_OVERRIDES += file-with-bad-content|/usr/local|root/opt/csw/share/mime/magic |
|---|
| 37 | CHECKPKG_OVERRIDES += file-with-bad-content|/usr/local|root/opt/csw/share/mime/packages/freedesktop.org.xml |
|---|
| 38 | # My patch does deliberately not remove /usr/share |
|---|
| 39 | CHECKPKG_OVERRIDES += file-with-bad-content|/usr/share|root/opt/csw/bin/update-mime-database |
|---|
| 40 | |
|---|
| 41 | SPKG_SOURCEURL = http://freedesktop.org/Software/shared-mime-info |
|---|
| 42 | |
|---|
| 43 | RUNTIME_DEP_PKGS += CSWlibglib2-0-0 CSWlibintl8 CSWlibxml2-2 |
|---|
| 44 | |
|---|
| 45 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 46 | |
|---|
| 47 | include gar/category.mk |
|---|
| 48 | |
|---|
| 49 | PATH := /opt/csw/gnu:$(PATH) |
|---|