summaryrefslogtreecommitdiff
path: root/package/libgd/Makefile
blob: 608c7ed8aaddd2cf7256b648bd40be51e227d046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		libgd
PKG_VERSION:=		2.1.0
PKG_RELEASE:=		1
PKG_MD5SUM:=		03588159bf4faab9079849c8d709acc6
PKG_DESCR:=		A library for the dynamic creation of images
PKG_SECTION:=		libs
PKG_DEPENDS:=		libjpeg-turbo libpng
PKG_BUILDDEP:=		libpng libjpeg-turbo
PKG_URL:=		http://www.libgd.org/
PKG_SITES:=		https://bitbucket.org/libgd/gd-libgd/downloads/
PKG_LIBNAME:=		libgd
PKG_OPTS:=		dev

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.xz

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBGD,libgd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))

CONFIGURE_ARGS+=	--without-x \
			--without-freetype \
			--with-jpeg=${STAGING_TARGET_DIR}/usr \
			--with-png=${STAGING_TARGET_DIR}/usr \
			--without-xpm

libgd-install:
	${INSTALL_DIR} ${IDIR_LIBGD}/usr/lib
	${CP} ${WRKINST}/usr/lib/libgd.so* ${IDIR_LIBGD}/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk