Remove dependencies on Java 7 from metapackages
[unleashed-userland.git] / components / libgnome-java / Makefile
blobbd856f7e21bacb4d77f5896fe2224df1a5902618
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 Alexander Pyhalov
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= libgnome-java
19 COMPONENT_VERSION= 2.12.7
20 COMPONENT_SUMMARY= Java to Gnome core bindings
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
23 COMPONENT_ARCHIVE_HASH= \
24 sha256:7a7dae17b682a92cd9a06c861d187d8d1e69029d1d871e0a9b91a40e8c39462d
25 COMPONENT_ARCHIVE_URL= \
26 http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/2.12/$(COMPONENT_ARCHIVE)
27 COMPONENT_PROJECT_URL = http://www.gnome.org
28 COMPONENT_FMRI= library/java/libgnome-java
29 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
30 COMPONENT_LICENSE = LGPLv2.1
31 COMPONENT_LICENSE_FILE = COPYING
33 include ../../make-rules/prep.mk
34 include ../../make-rules/configure.mk
35 include ../../make-rules/ips.mk
37 PATH=/usr/gnu/bin:/usr/bin
39 CPPFLAGS += -I$(JAVA_HOME)/include
40 CPPFLAGS += -I$(JAVA_HOME)/include/solaris
42 # Missing files in build dir without this.
43 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
45 CONFIGURE_OPTIONS += --sysconfdir=/etc
46 CONFIGURE_OPTIONS += --with-docbasedir=/usr/share/lib/java/javadoc/java-gnome
47 CONFIGURE_OPTIONS += --with-jardir=/usr/share/lib/java
48 CONFIGURE_OPTIONS += --with-srcjar
49 CONFIGURE_OPTIONS += --with-srcjardir=/usr/share/lib/java/src/java-gnome
50 CONFIGURE_OPTIONS += --without-gcj-compile
52 CONFIGURE_OPTIONS += JAVA_HOME=$(JAVA_HOME)
54 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
56 build: $(BUILD_32)
58 install: $(INSTALL_32)
60 test: $(NO_TESTS)