makemaker-defaults.mk: fallback COMPONENT_PROJECT_URL to dist
[oi-userland.git] / components / image / gimp / Makefile
blob250be8d0ce0e474e42b6943b80d11256a2df884f
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2017 Alexander Pyhalov
13 # Copyright (c) 2019 Tim Mooney
16 USE_DEFAULT_TEST_TRANSFORMS= yes
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= gimp
20 COMPONENT_VERSION= 2.10.38
21 COMPONENT_REVISION= 1
22 COMPONENT_SUMMARY= Gimp - The Free & Open Source Image Editor
23 COMPONENT_PROJECT_URL= https://www.gimp.org/
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
26 COMPONENT_ARCHIVE_HASH= sha256:50a845eec11c8831fe8661707950f5b8446e35f30edfb9acf98f85c1133f856e
27 COMPONENT_ARCHIVE_URL= https://download.gimp.org/pub/gimp/v2.10/$(COMPONENT_ARCHIVE)
28 COMPONENT_FMRI= image/editor/gimp
29 COMPONENT_CLASSIFICATION= Applications/Graphics and Imaging
30 COMPONENT_LICENSE= GPLv3
31 COMPONENT_LICENSE_FILE= COPYING
33 include $(WS_MAKE_RULES)/common.mk
35 PATH= $(PATH.gnu)
37 # Gimp depends on Python 2.7 still:
38 PYTHON_VERSION= 2.7
39 PYTHON=/usr/bin/$(MACH64)/python2.7
41 CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/$(MACH64)/glib-2.0/include
42 CFLAGS += -I/usr/include/libmng
44 COMPONENT_PREP_ACTION= ( \
45 cd $(@D) && \
46 PATH="$(PATH)" libtoolize --force && \
47 intltoolize --force --copy --automake && \
48 aclocal -I. && \
49 automake -a -c -f && \
50 autoconf )
52 CONFIGURE_OPTIONS += --datarootdir=$(USRSHAREDIR)
53 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
54 CONFIGURE_OPTIONS += --enable-mp
55 CONFIGURE_OPTIONS += --enable-default-binary
56 CONFIGURE_OPTIONS += --enable-mmx=no
57 CONFIGURE_OPTIONS += --with-lcms=2
59 CONFIGURE_ENV += PYTHON=$(PYTHON)
61 COMPONENT_POST_CONFIGURE_ACTION= ( \
62 cd $(@D) && \
63 $(GSED) -e 's@^ECHO=.*@ECHO="echo"@g' libtool > print.patch && \
64 $(MV) print.patch libtool && \
65 $(CHMOD) 755 libtool && \
66 $(RM) print.patch )
68 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
69 COMPONENT_POST_INSTALL_ACTION= \
70 /usr/bin/find $(PROTO_DIR) -name *.py \
71 -exec $(GSED) -i -e '1s|env python.*|$(MACH64)/python$(PYTHON_VERSION)|' "{}" \; ;
73 # Tests need a display and some fail.
75 # Build dependencies
76 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
78 # Auto-generated dependencies
79 PYTHON_REQUIRED_PACKAGES += library/python/pygobject
80 PYTHON_REQUIRED_PACKAGES += library/python/pygtk2
81 PYTHON_REQUIRED_PACKAGES += runtime/python
82 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
83 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
84 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
85 REQUIRED_PACKAGES += compress/bzip2
86 REQUIRED_PACKAGES += compress/xz
87 REQUIRED_PACKAGES += image/graphviz
88 REQUIRED_PACKAGES += image/library/babl
89 REQUIRED_PACKAGES += image/library/gegl
90 REQUIRED_PACKAGES += image/library/gexiv2
91 REQUIRED_PACKAGES += image/library/libpng16
92 REQUIRED_PACKAGES += image/library/librsvg
93 REQUIRED_PACKAGES += image/library/libtiff
94 REQUIRED_PACKAGES += image/library/openjpeg
95 REQUIRED_PACKAGES += library/aalib
96 REQUIRED_PACKAGES += library/c++/harfbuzz
97 REQUIRED_PACKAGES += library/desktop/cairo
98 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
99 REQUIRED_PACKAGES += library/desktop/gtk2
100 REQUIRED_PACKAGES += library/desktop/json-glib
101 REQUIRED_PACKAGES += library/desktop/pango
102 REQUIRED_PACKAGES += library/glib2
103 REQUIRED_PACKAGES += library/graphics/libmng
104 REQUIRED_PACKAGES += library/lcms2
105 REQUIRED_PACKAGES += library/libmypaint
106 REQUIRED_PACKAGES += library/libpoppler
107 REQUIRED_PACKAGES += library/libwebp
108 REQUIRED_PACKAGES += library/mypaint-brushes
109 REQUIRED_PACKAGES += library/openexr
110 REQUIRED_PACKAGES += library/zlib
111 REQUIRED_PACKAGES += print/filter/ghostscript
112 REQUIRED_PACKAGES += system/library
113 REQUIRED_PACKAGES += system/library/fontconfig
114 REQUIRED_PACKAGES += system/library/freetype-2
115 REQUIRED_PACKAGES += system/library/math
116 REQUIRED_PACKAGES += x11/library/libx11
117 REQUIRED_PACKAGES += x11/library/libxcursor
118 REQUIRED_PACKAGES += x11/library/libxext
119 REQUIRED_PACKAGES += x11/library/libxfixes
120 REQUIRED_PACKAGES += x11/library/libxmu
121 REQUIRED_PACKAGES += x11/library/libxpm