binutils: update to 2.43.1
[openadk.git] / package / gptfdisk / Makefile
blob37d1707610fbc2c85c5cf29ab3350f3c20a068ec
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= gptfdisk
7 PKG_VERSION:= 1.0.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= 864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7
10 PKG_DESCR:= utilities to create gpt partition tables
11 PKG_SECTION:= sys/fs
12 PKG_DEPENDS:= libncurses libuuid
13 PKG_BUILDDEP:= util-linux popt ncurses
14 HOST_BUILDDEP:= util-linux-host popt-host
15 PKG_NEEDS:= c++
16 PKG_URL:= http://www.rodsbooks.com/gdisk/
17 PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=gptfdisk/}
19 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
21 include $(ADK_TOPDIR)/mk/host.mk
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call HOST_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE)))
25 $(eval $(call PKG_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
27 ifneq ($(OS_FOR_BUILD),Darwin)
28 TARGET_LDFLAGS+= -ltinfo
29 endif
31 HOST_STYLE:= manual
32 CONFIG_STYLE:= manual
33 INSTALL_STYLE:= manual
35 host-build:
36 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
37 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
39 gptfdisk-hostinstall:
40 $(CP) $(WRKBUILD)/{g,sg,cg}disk \
41 $(STAGING_HOST_DIR)/usr/bin
43 gptfdisk-install:
44 $(INSTALL_DIR) $(IDIR_GPTFDISK)/usr/sbin
45 $(INSTALL_BIN) $(WRKBUILD)/{g,sg,cg}disk $(IDIR_GPTFDISK)/usr/sbin
47 include $(ADK_TOPDIR)/mk/host-bottom.mk
48 include $(ADK_TOPDIR)/mk/pkg-bottom.mk