summaryrefslogtreecommitdiff
path: root/package/atftp/Makefile
blob: b8892ef8c4b6b18d509fa0e3937ea355be4c75c0 (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
38
39
40
41
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		atftp
PKG_VERSION:=		0.7.1
PKG_RELEASE:=		1
PKG_HASH:=		ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d
PKG_DESCR:=		tftp client
PKG_SECTION:=		net/misc
PKG_DEPENDS:=		libreadline libncurses
PKG_BUILDDEP:=		readline ncurses
PKG_URL:=		http://sourceforge.net/projects/atftp/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=atftp/}

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

PKG_LIBC_DEPENDS:=	uclibc uclibc-ng glibc

PKG_SUBPKGS:=		ATFTP ATFTPD
PKGSD_ATFTPD:=		tftp server
PKGSS_ATFTPD:=		libreadline libncurses

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,ATFTP,atftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ATFTPD,atftpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ATFTPD},${PKG_SECTION}))

CONFIGURE_ARGS+=	--disable-libpcre
MAKE_FLAGS+=		CFLAGS="${TARGET_CFLAGS} -Wall -D_REENTRANT -fno-inline"

atftp-install:
	$(INSTALL_DIR) $(IDIR_ATFTP)/usr/bin
	$(INSTALL_BIN) $(WRKBUILD)/atftp $(IDIR_ATFTP)/usr/bin

atftpd-install:
	$(INSTALL_DIR) $(IDIR_ATFTPD)/usr/sbin
	$(INSTALL_BIN) $(WRKBUILD)/atftpd $(IDIR_ATFTPD)/usr/sbin

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