69b3e16c518301a847e21adb5fca90f94d13e4d6
[feed/packages.git] / multimedia / graphicsmagick / Makefile
1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=graphicsmagick
8 PKG_VERSION:=1.3.33
9 PKG_RELEASE:=1
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/GraphicsMagick-$(PKG_VERSION)
12 PKG_SOURCE:=GraphicsMagick-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/graphicsmagick
14 PKG_HASH:=d18aaca2d79a10270d49ad1aaa01dce24752f7548880138d59874a78ac62e11f
15
16 PKG_LICENSE:=MIT
17 PKG_LICENSE_FILES:=Copyright.txt
18 PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
19
20 PKG_BUILD_PARALLEL:=1
21 DISABLE_NLS:=
22 PKG_BUILD_DEPENDS:=zlib freetype libpng libjpeg tiff
23
24 include $(INCLUDE_DIR)/package.mk
25
26 PKG_INSTALL:=1
27
28 define Package/graphicsmagick/Default
29 SECTION:=multimedia
30 CATEGORY:=Multimedia
31 TITLE:=Graphics manipulation tools
32 URL:=https://www.graphicsmagick.org/
33 DEPENDS:=graphicsmagick
34 endef
35
36 define Package/graphicsmagick
37 $(call Package/graphicsmagick/Default)
38 DEPENDS:=+libltdl +libpthread +zlib +libfreetype +libpng +libjpeg +libtiff
39 endef
40
41 define Package/graphicsmagick/description
42 GraphicsMagick is a free and open-source software suite for displaying,
43 converting, and editing raster image and vector image files. It is a fork
44 of GraphicsMagick.
45 endef
46
47 CONFIGURE_ARGS += \
48 --enable-shared \
49 --disable-static \
50 --enable-dependency-tracking \
51 --with-modules \
52 --with-threads \
53 --without-magick-plus-plus \
54 --without-perl \
55 --without-bzlib \
56 --without-dps \
57 --without-fpx \
58 --without-jbig \
59 --without-webp \
60 --with-jpeg \
61 --without-jp2 \
62 --without-lcms2 \
63 --without-lzma \
64 --with-png \
65 --with-tiff \
66 --without-trio \
67 --with-ttf \
68 --without-umem \
69 --without-wmf \
70 --without-xml \
71 --with-zlib \
72 --without-zstd \
73 --without-x
74
75 TARGET_CFLAGS += -flto
76
77 define Build/InstallDev
78 $(INSTALL_DIR) $(1)/usr/include
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/include/* \
81 $(1)/usr/include/
82
83 $(INSTALL_DIR) $(1)/usr/lib
84 $(CP) \
85 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
86 $(1)/usr/lib/
87
88 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
89 $(INSTALL_DATA) \
90 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
91 $(1)/usr/lib/pkgconfig/
92 endef
93
94 GMlibdir:=usr/lib/GraphicsMagick-$(PKG_VERSION)
95 define Package/graphicsmagick/install
96 $(INSTALL_DIR) $(1)/usr/bin $(1)/$(GMlibdir)
97 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
98 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
99 $(CP) $(PKG_INSTALL_DIR)/$(GMlibdir)/* $(1)/$(GMlibdir)/
100 endef
101
102 $(eval $(call BuildPackage,graphicsmagick))
103