summaryrefslogtreecommitdiff
path: root/package/fping/Makefile
blob: ce14b95557027be465f8fb42c639727acc9346ba (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
36
37
# $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:=		fping
PKG_VERSION:=		2.4b2_to
PKG_RELEASE:=		1
PKG_MD5SUM:=		d5e8be59e307cef76bc479e1684df705
DISTFILES:=		${PKG_NAME}.tar.gz
MASTER_SITES:=		http://fping.sourceforge.net/download/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,FPING,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))

CONFIGURE_STYLE=	gnu

do-build:
	${MAKE} -j1 CC="${TARGET_CC}" CFLAGS="${TARGET_CFLAGS}" -C ${WRKBUILD} clean ${PKG_NAME}
	mv ${WRKBUILD}/${PKG_NAME} ${WRKBUILD}/${PKG_NAME}4
ifeq ($(ADK_IPV6),y)
	${MAKE} -j1 CC="${TARGET_CC}" CFLAGS="${TARGET_CFLAGS} -DIPV6=1" -C ${WRKBUILD} clean ${PKG_NAME}
	mv ${WRKBUILD}/${PKG_NAME} ${WRKBUILD}/${PKG_NAME}6

endif

do-install:
	${INSTALL_DIR} ${IDIR_FPING}/usr/bin
	${CP} ${WRKBUILD}/${PKG_NAME}4 ${IDIR_FPING}/usr/bin/${PKG_NAME}
ifeq ($(ADK_IPV6),y)
	${CP} ${WRKBUILD}/${PKG_NAME}6 ${IDIR_FPING}/usr/bin/
endif

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