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
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 2022 Daniel Bell
16 BUILD_BITS
=64 # for binaries or 32_and_64 for libraries
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= netbeans
22 COMPONENT_VERSION
= 12.6
23 COMPONENT_SUMMARY
= Apache Netbeans IDE
24 COMPONENT_FMRI
= editor
/netbeans
25 COMPONENT_CLASSIFICATION
=System
/Text Tools
26 COMPONENT_DESCRIPTION
= Full-featured IDE for C
/C
++, Java
, PHP and more
27 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
)-source.zip
29 COMPONENT_ARCHIVE_URL
= https
://archive.apache.org
/dist/$(COMPONENT_NAME
)/$(COMPONENT_NAME
)/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_SIG_URL
= $(COMPONENT_ARCHIVE_URL
).asc
31 COMPONENT_LICENSE
= Apache-2.0
32 COMPONENT_PROJECT_URL
= https
://www.netbeans.org
/
34 UNPACK_ARGS
= --relocate-to
=$(COMPONENT_SRC
)
36 TEST_TARGET
=$(NO_TESTS
) # if no testsuite enabled
37 include $(WS_MAKE_RULES
)/common.mk
41 $(BUILD_DIR_64
)/.installed
: $(BUILD_DIR_64
)/.built
42 mkdir
-p
$(PROTO_DIR
)/usr
/netbeans
/;
43 [ -d
$(PROTO_DIR
)/usr
/netbeans
/$(COMPONENT_VERSION
) ] || cp
-R
$(BUILD_DIR_64
)/nbbuild
/netbeans
$(PROTO_DIR
)/usr
/netbeans
/$(COMPONENT_VERSION
);
44 for FILE in
$(PROTO_DIR
)/usr
/netbeans
/12.6/ide
/bin
/nativeexecution
/SunOS-x86_64
/{pty
,pty_open
,process_start
,killall
}; do \
45 /usr
/bin
/elfedit
-e
'dyn:delete RUNPATH' $$FILE; \
46 /usr
/bin
/elfedit
-e
'dyn:delete RPATH' $$FILE; \
48 mkdir
-p
$(PROTO_DIR
)/usr
/share
/applications
/;
49 cp
$(COMPONENT_DIR
)/files
/apache-netbeans.desktop
$(PROTO_DIR
)/usr
/share
/applications
/;
50 mkdir
-p
$(PROTO_DIR
)/usr
/share
/icons
/hicolor
/32x32
/apps
;
51 cp
$(COMPONENT_DIR
)/files
/apache-netbeans.png
$(PROTO_DIR
)/usr
/share
/icons
/hicolor
/32x32
/apps
/;
52 touch
$(BUILD_DIR_64
)/.installed
;
54 install: $(BUILD_DIR_64
)/.installed
58 REQUIRED_PACKAGES
+= developer
/build
/ant
59 REQUIRED_PACKAGES
+= developer
/java
/openjdk8