4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
28 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_VERSION
= 0.9.0
32 COMPONENT_SUMMARY
= Dynamic Lua binding to GObject libraries using GObject-Introspection
33 COMPONENT_PROJECT_URL
= https
://github.com
/pavouk
/lgi
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
36 COMPONENT_ARCHIVE_HASH
= \
37 sha256
:87c7870f8a1c60b48c4d5587b7fab46863e1cb9e76a68520f47e9ef2764cfe24
38 COMPONENT_ARCHIVE_URL
= https
://github.com
/pavouk
/lgi
/archive
/$(COMPONENT_VERSION
).
tar.gz
39 COMPONENT_FMRI
= library
/lua
/lgi-52
40 COMPONENT_CLASSIFICATION
= Development
/Other Languages
41 COMPONENT_LICENSE
= MIT
42 COMPONENT_LICENSE_FILE
= LICENSE
44 TEST_TARGET
= $(NO_TESTS
)
45 include $(WS_MAKE_RULES
)/common.mk
47 PATH
.32=/usr
/gnu
/bin
:/usr
/bin
48 PATH
.64=/usr
/gnu
/bin
/$(MACH64
):/usr
/bin
/$(MACH64
):/usr
/gnu
/bin
:/usr
/bin
52 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
53 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
54 COMPONENT_BUILD_ENV
+= LDFLAGS
="$(LDFLAGS)"
55 COMPONENT_BUILD_ENV
+= PATH
=$(PATH.
$(BITS
))
57 COMPONENT_INSTALL_ARGS
+= LUA_VERSION
=5.2 PREFIX
=$(USRDIR
)
58 COMPONENT_INSTALL_ARGS
.64 += LUA_LIBDIR
=$(USRDIR
)/lib
/lua
/5.2/64
60 # Manually added build dependencies
61 REQUIRED_PACKAGES
+= runtime
/lua
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES
+= library
/desktop
/gobject
/gobject-introspection
65 REQUIRED_PACKAGES
+= library
/glib2
66 REQUIRED_PACKAGES
+= library
/libffi
67 REQUIRED_PACKAGES
+= system
/library