summaryrefslogtreecommitdiff
path: root/package/zip/Makefile
blob: 7e1e84455ab04e6f2118cccdde9e023bf885adea (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
42
43
44
45
46
47
# 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:=		zip
PKG_VERSION:=		3.0
PKG_RELEASE:=		1
PKG_HASH:=		f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
PKG_DESCR:=		zip compression utility
PKG_SECTION:=		app/archive
PKG_URL:=		http://www.info-zip.org/Zip.html
PKG_SITES:=		ftp://ftp.info-zip.org/pub/infozip/src/

WRKDIST=		$(WRKDIR)/$(PKG_NAME)30
DISTFILES:=		$(PKG_NAME)30.tgz

include ${ADK_TOPDIR}/mk/host.mk
include ${ADK_TOPDIR}/mk/package.mk

$(eval $(call HOST_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,ZIP,zip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

HOST_STYLE:=		manual
CONFIG_STYLE:=		manual
INSTALL_STYLE:=		manual

TARGET_CPPFLAGS+=	-DNO_BZIP2_SUPPORT
XAKE_FLAGS+=		GCC_HONOUR_COPTS=s
CONFIGURE_PROG:=	unix/configure
MAKE_FILE:=		unix/Makefile
ALL_TARGET:=		generic_gcc

host-build:
	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
		${HOST_MAKE_FLAGS} ${ALL_TARGET})

zip-hostinstall:
	$(CP) $(WRKBUILD)/zip \
		$(STAGING_HOST_DIR)/usr/bin

zip-install:
	${INSTALL_DIR} ${IDIR_ZIP}/usr/bin
	${INSTALL_BIN} ${WRKBUILD}/zip ${IDIR_ZIP}/usr/bin

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