summaryrefslogtreecommitdiff
path: root/package/gptfdisk/Makefile
blob: 37d1707610fbc2c85c5cf29ab3350f3c20a068ec (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
48
# 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:=		gptfdisk
PKG_VERSION:=		1.0.1
PKG_RELEASE:=		1
PKG_HASH:=		864c8aee2efdda50346804d7e6230407d5f42a8ae754df70404dd8b2fdfaeac7
PKG_DESCR:=		utilities to create gpt partition tables
PKG_SECTION:=		sys/fs
PKG_DEPENDS:=		libncurses libuuid
PKG_BUILDDEP:=		util-linux popt ncurses
HOST_BUILDDEP:=		util-linux-host popt-host
PKG_NEEDS:=		c++
PKG_URL:=		http://www.rodsbooks.com/gdisk/
PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=gptfdisk/}

DISTFILES:=		$(PKG_NAME)-$(PKG_VERSION).tar.gz

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,GPTFDISK,gptfdisk,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

ifneq ($(OS_FOR_BUILD),Darwin)
TARGET_LDFLAGS+=	-ltinfo
endif

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

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

gptfdisk-hostinstall:
	$(CP) $(WRKBUILD)/{g,sg,cg}disk \
		$(STAGING_HOST_DIR)/usr/bin

gptfdisk-install:
	$(INSTALL_DIR) $(IDIR_GPTFDISK)/usr/sbin
	$(INSTALL_BIN) $(WRKBUILD)/{g,sg,cg}disk $(IDIR_GPTFDISK)/usr/sbin

include $(ADK_TOPDIR)/mk/host-bottom.mk
include $(ADK_TOPDIR)/mk/pkg-bottom.mk