1 # This is free software, licensed under the GNU General Public License v2.
2 # See /LICENSE for more information.
5 include $(TOPDIR
)/rules.mk
7 PKG_NAME
:=graphicsmagick
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
17 PKG_LICENSE_FILES
:=Copyright.txt
18 PKG_MAINTAINER
:=Val Kulkov
<val.kulkov@gmail.com
>
22 PKG_BUILD_DEPENDS
:=zlib freetype libpng libjpeg tiff
24 include $(INCLUDE_DIR
)/package.mk
28 define Package
/graphicsmagick
/Default
31 TITLE
:=Graphics manipulation tools
32 URL
:=https
://www.graphicsmagick.org
/
33 DEPENDS
:=graphicsmagick
36 define Package
/graphicsmagick
37 $(call Package
/graphicsmagick
/Default
)
38 DEPENDS
:=+libltdl
+libpthread
+zlib
+libfreetype
+libpng
+libjpeg
+libtiff
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
50 --enable-dependency-tracking \
53 --without-magick-plus-plus \
75 TARGET_CFLAGS
+= -flto
77 define Build
/InstallDev
78 $(INSTALL_DIR
) $(1)/usr
/include
80 $(PKG_INSTALL_DIR
)/usr
/include/* \
83 $(INSTALL_DIR
) $(1)/usr
/lib
85 $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* \
88 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
90 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
91 $(1)/usr
/lib
/pkgconfig
/
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
)/
102 $(eval
$(call BuildPackage
,graphicsmagick
))