shared-macros.mk: simplify java settings
[oi-userland.git] / components / sysutils / gptfdisk / Makefile
blobf5aae0af99f34b5d91414051a461b1fb10457b1e
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015-2017 Aurelien Larcher
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= gptfdisk
19 COMPONENT_VERSION= 1.0.3
20 COMPONENT_REVISION= 1
21 COMPONENT_FMRI = system/storage/gptfdisk
22 COMPONENT_CLASSIFICATION = System/Administration and Configuration
23 COMPONENT_SUMMARY= GPT fdisk - Disk partitioning tool
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= \
27 sha256:89fd5aec35c409d610a36cb49c65b442058565ed84042f767bba614b8fc91b5c
28 COMPONENT_ARCHIVE_URL= \
29 http://sourceforge.net/projects/gptfdisk/files/gptfdisk/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
30 COMPONENT_PROJECT_URL = http://sourceforge.net/projects/gptfdisk/
31 COMPONENT_LICENSE_FILE = $(COMPONENT_NAME).license
32 COMPONENT_LICENSE = GPLv2
34 include $(WS_TOP)/make-rules/prep.mk
35 include $(WS_TOP)/make-rules/justmake.mk
36 include $(WS_TOP)/make-rules/ips.mk
38 PATH=/usr/gnu/bin:/usr/bin
40 COMPONENT_PRE_BUILD_ACTION= \
41 $(CP) $(COMPONENT_DIR)/files/Makefile.solaris $(BUILD_DIR_$(BITS))
43 COMPONENT_BUILD_ENV+= CC="$(CC)"
44 COMPONENT_BUILD_ENV+= CXX="$(CXX)"
45 COMPONENT_BUILD_ENV+= CFLAGS="$(CFLAGS)"
46 COMPONENT_BUILD_ENV+= CXXFLAGS="$(CXXFLAGS)"
47 COMPONENT_BUILD_ENV+= LDFLAGS="$(LDFLAGS)"
48 COMPONENT_BUILD_GMAKE_ARGS+= -f Makefile.solaris
50 GDISK_BINDIR.32 = $(USRBINDIR32)
51 GDISK_BINDIR.64 = $(USRBINDIR64)
52 COMPONENT_INSTALL_ARGS+= -f Makefile.solaris
53 COMPONENT_INSTALL_ARGS+= bindir=$(GDISK_BINDIR.$(BITS))
54 COMPONENT_INSTALL_ARGS+= mandir=$(USRSHAREMANDIR)/man8
55 COMPONENT_INSTALL_ARGS+= docdir=$(USRSHAREDOCDIR)/gdisk
57 build: $(BUILD_32_and_64)
59 install: $(INSTALL_32_and_64)
61 test: $(TEST_32_and_64)
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
65 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
66 REQUIRED_PACKAGES += SUNWcs
67 REQUIRED_PACKAGES += library/ncurses
68 REQUIRED_PACKAGES += library/popt
69 REQUIRED_PACKAGES += system/library
70 REQUIRED_PACKAGES += system/library/math