| 1 | NAME = wmf |
|---|
| 2 | VERSION = 0.2.8.4 |
|---|
| 3 | CATEGORIES = lib |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Library and tools for manipulating Windows metafiles |
|---|
| 7 | define BLURB |
|---|
| 8 | libwmf is a library for reading vector images in Microsoft's native Windows |
|---|
| 9 | Metafile Format (WMF) and for either (a) displaying them in, e.g., an X |
|---|
| 10 | window; or (b) converting them to more standard/open file formats such as, |
|---|
| 11 | e.g., the W3C's XML-based Scaleable Vector Graphic (SVG) format. |
|---|
| 12 | endef |
|---|
| 13 | |
|---|
| 14 | SF_PROJ = wvware |
|---|
| 15 | MASTER_SITES = $(SF_MIRRORS) |
|---|
| 16 | DISTNAME = libwmf-$(VERSION) |
|---|
| 17 | DISTFILES = $(DISTNAME).tar.gz |
|---|
| 18 | |
|---|
| 19 | VENDOR_URL = http://wvware.sourceforge.net |
|---|
| 20 | |
|---|
| 21 | PACKAGES += CSWwmf |
|---|
| 22 | CATALOGNAME_CSWwmf = wmf |
|---|
| 23 | SPKG_DESC_CSWwmf += Library and tools for manipulating Windows metafiles |
|---|
| 24 | RUNTIME_DEP_PKGS_CSWwmf += CSWftype2 |
|---|
| 25 | RUNTIME_DEP_PKGS_CSWwmf += CSWjpeg |
|---|
| 26 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibpng12-0 |
|---|
| 27 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibz1 |
|---|
| 28 | RUNTIME_DEP_PKGS_CSWwmf += CSWwmffonts |
|---|
| 29 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibiconv2 |
|---|
| 30 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibxml2-2 |
|---|
| 31 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibwmf0-2-7 |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWwmf += CSWlibwmflite0-2-7 |
|---|
| 33 | CHECKPKG_OVERRIDES_CSWwmf += surplus-dependency|CSWwmffonts |
|---|
| 34 | |
|---|
| 35 | PACKAGES += CSWlibwmflite0-2-7 |
|---|
| 36 | CATALOGNAME_CSWlibwmflite0-2-7 = libwmflite0_2_7 |
|---|
| 37 | PKGFILES_CSWlibwmflite0-2-7 += $(call pkgfiles_lib,libwmflite-0.2.so.7) |
|---|
| 38 | SPKG_DESC_CSWlibwmflite0-2-7 += Library and tools for manipulating Windows metafiles - runtime package, libwmflite-0.2.so.7 |
|---|
| 39 | OBSOLETED_BY_CSWlibwmflite0-2-7 = CSWlibwmf |
|---|
| 40 | |
|---|
| 41 | PACKAGES += CSWlibwmf0-2-7 |
|---|
| 42 | CATALOGNAME_CSWlibwmf0-2-7 = libwmf0_2_7 |
|---|
| 43 | PKGFILES_CSWlibwmf0-2-7 += $(call pkgfiles_lib,libwmf-0.2.so.7) |
|---|
| 44 | SPKG_DESC_CSWlibwmf0-2-7 += Library and tools for manipulating Windows metafiles - runtime package, libwmf-0.2.so.7 |
|---|
| 45 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWjpeg |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWlibwmflite0-2-7 |
|---|
| 47 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWlibpng12-0 |
|---|
| 48 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWlibiconv2 |
|---|
| 49 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWlibz1 |
|---|
| 50 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWlibxml2-2 |
|---|
| 51 | RUNTIME_DEP_PKGS_CSWlibwmf0-2-7 += CSWftype2 |
|---|
| 52 | OBSOLETED_BY_CSWlibwmf0-2-7 = CSWlibwmf |
|---|
| 53 | |
|---|
| 54 | PACKAGES += CSWlibwmf-dev |
|---|
| 55 | CATALOGNAME_CSWlibwmf-dev = libwmf_dev |
|---|
| 56 | SPKG_DESC_CSWlibwmf-dev += Library and tools for manipulating Windows metafiles - developer package |
|---|
| 57 | PKGFILES_CSWlibwmf-dev += $(PKGFILES_DEVEL) |
|---|
| 58 | PKGFILES_CSWlibwmf-dev += $(sharedstatedir)/doc/.* |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWlibwmf-dev += CSWlibwmflite0-2-7 |
|---|
| 60 | RUNTIME_DEP_PKGS_CSWlibwmf-dev += CSWlibwmf0-2-7 |
|---|
| 61 | OBSOLETED_BY_CSWlibwmf-dev += CSWlibwmfdevel |
|---|
| 62 | CATALOGNAME_CSWlibwmfdevel = libwmf_devel_stub |
|---|
| 63 | OBSOLETED_BY_CSWlibwmf-dev += CSWlibwmfdoc |
|---|
| 64 | CATALOGNAME_CSWlibwmfdoc = libwmf_doc_stub |
|---|
| 65 | # These are docs only |
|---|
| 66 | CHECKPKG_OVERRIDES_CSWlibwmf-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/libwmf/tutapi.html |
|---|
| 67 | CHECKPKG_OVERRIDES_CSWlibwmf-dev += file-with-bad-content|/usr/local|root/opt/csw/share/doc/libwmf/gd.html |
|---|
| 68 | CHECKPKG_OVERRIDES_CSWlibwmf-dev += file-with-bad-content|/usr/share|root/opt/csw/share/doc/libwmf/tutapi.html |
|---|
| 69 | CHECKPKG_OVERRIDES_CSWlibwmf-dev += file-with-bad-content|/usr/share|root/opt/csw/share/doc/libwmf/index.html |
|---|
| 70 | |
|---|
| 71 | PACKAGES += CSWwmf-fonts |
|---|
| 72 | SPKG_DESC_CSWwmf-fonts += Windows metafile fonts |
|---|
| 73 | PKGFILES_CSWwmf-fonts = $(sharedstatedir)/libwmf/fonts/.* |
|---|
| 74 | ARCHALL_CSWwmf-fonts = 1 |
|---|
| 75 | OBSOLETED_BY_CSWwmf-fonts += CSWwmffonts |
|---|
| 76 | CATALOGNAME_CSWwmffonts = wmf_fonts_stub |
|---|
| 77 | |
|---|
| 78 | PACKAGES += CSWlibwmf-gtk |
|---|
| 79 | SPKG_DESC_CSWlibwmf-gtk += Library and tools for manipulating Windows metafiles - GTK loader |
|---|
| 80 | PKGFILES_CSWlibwmf-gtk = $(libdir).*/io-wmf.so |
|---|
| 81 | RUNTIME_DEP_PKGS_CSWlibwmf-gtk += CSWlibintl8 |
|---|
| 82 | RUNTIME_DEP_PKGS_CSWlibwmf-gtk += CSWglib2 |
|---|
| 83 | RUNTIME_DEP_PKGS_CSWlibwmf-gtk += CSWgtk2 |
|---|
| 84 | RUNTIME_DEP_PKGS_CSWlibwmf-gtk += CSWlibwmf0-2-7 |
|---|
| 85 | RUNTIME_DEP_PKGS_CSWlibwmf-gtk += CSWlibwmflite0-2-7 |
|---|
| 86 | BUILD_DEP_PKGS += CSWgtk2devel |
|---|
| 87 | OBSOLETED_BY_CSWlibwmf-gtk += CSWlibwmfgtk |
|---|
| 88 | CATALOGNAME_CSWlibwmfgtk = libwmf_gtk_stub |
|---|
| 89 | |
|---|
| 90 | # This *must* be the same as in the GD package |
|---|
| 91 | CSW_DEFAULT_FONTPATH = $(sharedstatedir)/fonts/truetype |
|---|
| 92 | |
|---|
| 93 | BUILD64_LIBS_ONLY = 1 |
|---|
| 94 | |
|---|
| 95 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 96 | CONFIGURE_ARGS += --with-x |
|---|
| 97 | #CONFIGURE_ARGS += --with-expat=$(prefix) |
|---|
| 98 | CONFIGURE_ARGS += --with-libxml2=$(prefix) |
|---|
| 99 | CONFIGURE_ARGS += --with-freetype=$(prefix) |
|---|
| 100 | CONFIGURE_ARGS += --with-zlib=$(prefix) |
|---|
| 101 | CONFIGURE_ARGS += --with-png=$(prefix) |
|---|
| 102 | CONFIGURE_ARGS += --with-jpeg=$(prefix) |
|---|
| 103 | CONFIGURE_ARGS += --with-sys-gd=$(prefix) |
|---|
| 104 | CONFIGURE_ARGS += --with-sysfontmap=$(datadir)/fonts/fontmap |
|---|
| 105 | #CONFIGURE_ARGS += --with-xtrafontmap= |
|---|
| 106 | CONFIGURE_ARGS += --with-gsfontmap=$(datadir)/ghostscript/Resource/Init/Fontmap.GS |
|---|
| 107 | CONFIGURE_ARGS += --with-gsfontdir=$(datadir)/ghostscript/fonts |
|---|
| 108 | |
|---|
| 109 | # These are just docs |
|---|
| 110 | CHECKPKG_OVERRIDES_CSWlibwmfdoc += file-with-bad-content |
|---|
| 111 | |
|---|
| 112 | include gar/category.mk |
|---|
| 113 | |
|---|
| 114 | # Make sure GDFONTPATH is set correctly |
|---|
| 115 | post-extract-modulated: |
|---|
| 116 | perl -pi -e 's,/usr/share/fonts/truetype,$(CSW_DEFAULT_FONTPATH),' \ |
|---|
| 117 | $(WORKSRC)/src/extra/gd/gd.h \ |
|---|
| 118 | $(WORKSRC)/src/extra/gd/gdft.c |
|---|
| 119 | @$(MAKECOOKIE) |
|---|
| 120 | |
|---|