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
9 PKG_HASH
:= 864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7
10 PKG_DESCR
:= utilities to create gpt partition tables
12 PKG_DEPENDS
:= libncurses libuuid
13 PKG_BUILDDEP
:= util-linux popt ncurses
14 HOST_BUILDDEP
:= util-linux-host popt-host
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
33 INSTALL_STYLE
:= manual
36 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
37 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
40 $(CP
) $(WRKBUILD
)/{g
,sg
,cg
}disk \
41 $(STAGING_HOST_DIR
)/usr
/bin
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