#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL"), version 1.0.
|
# You may only use this file in accordance with the terms of version
|
# 1.0 of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright 2022 Daniel Bell
|
#
|
|
BUILD_BITS=64 # for binaries or 32_and_64 for libraries
|
BITS=64
|
BUILD_STYLE=ant
|
include ../../../make-rules/shared-macros.mk
|
|
COMPONENT_NAME= netbeans
|
COMPONENT_VERSION= 12.6
|
COMPONENT_SUMMARY= Apache Netbeans IDE
|
COMPONENT_FMRI= editor/netbeans
|
COMPONENT_CLASSIFICATION=System/Text Tools
|
COMPONENT_DESCRIPTION= Full-featured IDE for C/C++, Java, PHP and more
|
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-source.zip
|
COMPONENT_ARCHIVE_URL= https://archive.apache.org/dist/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
|
COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
|
COMPONENT_LICENSE= Apache-2.0
|
COMPONENT_PROJECT_URL= https://www.netbeans.org/
|
|
UNPACK_ARGS= --relocate-to=$(COMPONENT_SRC)
|
|
TEST_TARGET=$(NO_TESTS) # if no testsuite enabled
|
include $(WS_MAKE_RULES)/common.mk
|
|
COMPONENT_BUILD_ARGS=
|
|
$(BUILD_DIR_64)/.installed: $(BUILD_DIR_64)/.built
|
mkdir -p $(PROTO_DIR)/usr/netbeans/;
|
[ -d $(PROTO_DIR)/usr/netbeans/$(COMPONENT_VERSION) ] || cp -R $(BUILD_DIR_64)/nbbuild/netbeans $(PROTO_DIR)/usr/netbeans/$(COMPONENT_VERSION);
|
for FILE in $(PROTO_DIR)/usr/netbeans/12.6/ide/bin/nativeexecution/SunOS-x86_64/{pty,pty_open,process_start,killall}; do \
|
/usr/bin/elfedit -e 'dyn:delete RUNPATH' $$FILE; \
|
/usr/bin/elfedit -e 'dyn:delete RPATH' $$FILE; \
|
done;
|
mkdir -p $(PROTO_DIR)/usr/share/applications/;
|
cp $(COMPONENT_DIR)/files/apache-netbeans.desktop $(PROTO_DIR)/usr/share/applications/;
|
mkdir -p $(PROTO_DIR)/usr/share/icons/hicolor/32x32/apps;
|
cp $(COMPONENT_DIR)/files/apache-netbeans.png $(PROTO_DIR)/usr/share/icons/hicolor/32x32/apps/;
|
touch $(BUILD_DIR_64)/.installed;
|
|
install: $(BUILD_DIR_64)/.installed
|
|
|
# Build dependencies
|
REQUIRED_PACKAGES+= developer/build/ant
|
REQUIRED_PACKAGES+= developer/java/openjdk8
|