# 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:=		gatling
PKG_VERSION:=		0.11
PKG_RELEASE:=		1
PKG_MD5SUM:=		a0fb49ccb6b910bdbd7e76a9960394e3
PKG_DESCR:=		small non-forking webserver
PKG_SECTION:=		www
PKG_BUILDDEP:=		libowfat libiconv-tiny
PKG_URL:=		http://www.fefe.de/gatling/
PKG_SITES:=		http://dl.fefe.de/

DISTFILES=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,GATLING,gatling,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual
INSTALL_STYLE:=		manual

MAKE_FILE:=		GNUmakefile
ALL_TARGET:=		gatling
TARGET_CPPFLAGS+=	-I${STAGING_TARGET_DIR}/usr/include/owfat
XAKE_FLAGS+=		CC='${TARGET_CC}' \
			CFLAGS='${TARGET_CPPFLAGS} ${TARGET_CFLAGS}' \
			ZLIB=0 DIET= prefix='${WRKINST}/usr'

do-install:
	${INSTALL_DIR} ${IDIR_GATLING}/usr/sbin
	${INSTALL_BIN} ${WRKBUILD}/gatling ${IDIR_GATLING}/usr/sbin/

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