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 2015 Alexander Pyhalov
16 include ..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= cairo-java
19 COMPONENT_VERSION
= 1.0.8
20 COMPONENT_SUMMARY
= Java to Cairo core bindings
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
23 COMPONENT_ARCHIVE_HASH
= \
24 sha256
:9f9d2e80b4ec14cac48fb9e259adacc171f9c9e8c9252197a14ba022453b242f
25 COMPONENT_ARCHIVE_URL
= \
26 http
://ftp.gnome.org
/pub
/GNOME
/sources
/$(COMPONENT_NAME
)/1.0/$(COMPONENT_ARCHIVE
)
27 COMPONENT_PROJECT_URL
= http
://www.gnome.org
28 COMPONENT_FMRI
= library
/java
/cairo-java
29 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
30 COMPONENT_LICENSE
= LGPLv2
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)"
58 install: $(INSTALL_32
)