# 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:=		wol
PKG_VERSION:=		0.7.1
PKG_RELEASE:=		1
PKG_MD5SUM:=		c2fa9d7e771134ac8c89d56b8197d4ca
PKG_DESCR:=		A Program to send magic Wake-on-LAN packets
PKG_SECTION:=		net
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=ahh/}

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,WOL,wol,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIGURE_ARGS+=	ac_cv_func_mmap_fixed_mapped=yes \
			jm_cv_func_working_malloc=yes \
			ac_cv_func_alloca_works=yes

wol-install:
	${INSTALL_DIR} ${IDIR_WOL}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/wol ${IDIR_WOL}/usr/bin/

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