Andreas Wacknitz
2024-03-29 970adddbfc48d143ebaae950543ddbfcb6eb25c5
commit | author | age
f49eaf 1 #
AP 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.
5 #
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.
9 #
10
11 #
bd9ef4 12 # Copyright (c) 2017 Alexander Pyhalov
203fc5 13 # Copyright (c) 2019 Tim Mooney
f49eaf 14 #
AP 15
b6b968 16 USE_DEFAULT_TEST_TRANSFORMS= yes
f49eaf 17 include ../../../make-rules/shared-macros.mk
AP 18
19 COMPONENT_NAME=        gimp
f0201d 20 COMPONENT_VERSION=    2.10.36
d0079a 21 COMPONENT_REVISION=    3
86c29a 22 COMPONENT_SUMMARY=    Gimp - The Free & Open Source Image Editor
b3d774 23 COMPONENT_PROJECT_URL=    https://www.gimp.org/
f49eaf 24 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AP 25 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.bz2
f0201d 26 COMPONENT_ARCHIVE_HASH= sha256:3d3bc3c69a4bdb3aea9ba2d5385ed98ea03953f3857aafd1d6976011ed7cdbb2
ce99a8 27 COMPONENT_ARCHIVE_URL=    https://download.gimp.org/pub/gimp/v2.10/$(COMPONENT_ARCHIVE)
b3d774 28 COMPONENT_FMRI=        image/editor/gimp
AW 29 COMPONENT_CLASSIFICATION=    Applications/Graphics and Imaging
bd9ef4 30 COMPONENT_LICENSE=    GPLv3
AP 31 COMPONENT_LICENSE_FILE=    COPYING
f49eaf 32
ce99a8 33 include $(WS_MAKE_RULES)/common.mk
14af2f 34
b3d774 35 PATH= $(PATH.gnu)
AW 36
37 # Gimp depends on Python 2.7 still:
38 PYTHON_VERSION= 2.7
39 PYTHON=/usr/bin/$(MACH64)/python2.7
f49eaf 40
ce99a8 41 CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/$(MACH64)/glib-2.0/include
fb3823 42 CFLAGS += -I/usr/include/libmng
f49eaf 43
AP 44 COMPONENT_PREP_ACTION =    ( cd $(@D)  && \
a3b847 45                 PATH="$(PATH)" libtoolize --force &&\
f49eaf 46                 intltoolize --force --copy --automake &&\
AP 47                 aclocal -I. &&\
48                 automake -a -c -f &&\
49                 autoconf)
50
d08e9e 51 CONFIGURE_OPTIONS += --datarootdir=$(USRSHAREDIR)
AW 52 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
53 CONFIGURE_OPTIONS += --enable-mp
54 CONFIGURE_OPTIONS += --enable-default-binary
55 CONFIGURE_OPTIONS += --enable-mmx=no
56 CONFIGURE_OPTIONS += --with-lcms=2
14af2f 57
AP 58 CONFIGURE_ENV+= PYTHON=$(PYTHON)
f49eaf 59
15a429 60 COMPONENT_POST_CONFIGURE_ACTION = \
AW 61         ( cd $(@D) && \
62           $(GSED) -e 's@^ECHO=.*@ECHO="echo"@g' libtool > print.patch && \
63           $(MV) print.patch libtool && \
64           $(CHMOD) 755 libtool && \
65           $(RM) print.patch )
cf44ec 66
ce99a8 67 # Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
AP 68 COMPONENT_POST_INSTALL_ACTION = \
69         /usr/bin/find $(PROTO_DIR) -name *.py \
70                 -exec $(GSED) -i -e '1s|env python.*|$(MACH64)/python$(PYTHON_VERSION)|' "{}" \; ;
f49eaf 71
c7592f 72 # Tests need a display and some fail.
15a429 73
203fc5 74 # Build dependencies
c7592f 75 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
203fc5 76
fb3823 77 # Auto-generated dependencies
b3d774 78 PYTHON_REQUIRED_PACKAGES += library/python/pygobject
AW 79 PYTHON_REQUIRED_PACKAGES += library/python/pygtk2
80 PYTHON_REQUIRED_PACKAGES += runtime/python
ce99a8 81 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
AP 82 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
c313e7 83 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
f49eaf 84 REQUIRED_PACKAGES += compress/bzip2
ce99a8 85 REQUIRED_PACKAGES += compress/xz
b3d774 86 REQUIRED_PACKAGES += image/graphviz
f49eaf 87 REQUIRED_PACKAGES += image/library/babl
AP 88 REQUIRED_PACKAGES += image/library/gegl
ce99a8 89 REQUIRED_PACKAGES += image/library/gexiv2
d0079a 90 REQUIRED_PACKAGES += image/library/libjpeg-turbo
fb3823 91 REQUIRED_PACKAGES += image/library/libpng16
f49eaf 92 REQUIRED_PACKAGES += image/library/librsvg
AP 93 REQUIRED_PACKAGES += image/library/libtiff
ce99a8 94 REQUIRED_PACKAGES += image/library/openjpeg
f49eaf 95 REQUIRED_PACKAGES += library/aalib
ce99a8 96 REQUIRED_PACKAGES += library/c++/harfbuzz
f49eaf 97 REQUIRED_PACKAGES += library/desktop/cairo
AP 98 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
99 REQUIRED_PACKAGES += library/desktop/gtk2
ce99a8 100 REQUIRED_PACKAGES += library/desktop/json-glib
f49eaf 101 REQUIRED_PACKAGES += library/desktop/pango
AP 102 REQUIRED_PACKAGES += library/glib2
fb3823 103 REQUIRED_PACKAGES += library/graphics/libmng
f49eaf 104 REQUIRED_PACKAGES += library/lcms2
ce99a8 105 REQUIRED_PACKAGES += library/libmypaint
f49eaf 106 REQUIRED_PACKAGES += library/libpoppler
ce99a8 107 REQUIRED_PACKAGES += library/libwebp
b3d774 108 REQUIRED_PACKAGES += library/mypaint-brushes
ce99a8 109 REQUIRED_PACKAGES += library/openexr
f49eaf 110 REQUIRED_PACKAGES += library/zlib
AP 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