Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
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
49
50
51
52
53
54
55
56
57
58
59
#
# 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