summaryrefslogtreecommitdiff
path: root/package/libgd/Makefile
blob: adc3b780fde81c14a1d548ed5fcf6da268340b95 (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
# $Id$
#-
# 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:=		gd
PKG_VERSION:=		2.0.35
PKG_RELEASE:=		1
PKG_MD5SUM:=		982963448dc36f20cb79b6e9ba6fdede
MASTER_SITES:=		http://www.libgd.org/releases/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LIBGD,libgd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))

CONFIGURE_STYLE=	gnu
CONFIGURE_ENV+=		LIBPNG12_CONFIG="${STAGING_DIR}/usr/bin/libpng12-config"
CONFIGURE_ARGS+=	--without-x \
			--without-freetype \
			--with-jpeg=${STAGING_DIR}/usr \
			--with-png=${STAGING_DIR}/usr \
			--without-xpm 
BUILD_STYLE=		auto
INSTALL_STYLE=		auto

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

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