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.1
33 COMPONENT_SUMMARY
= Dynamic Lua binding to GObject libraries using GObject-Introspection
34 COMPONENT_PROJECT_URL
= https
://github.com
/pavouk
/lgi
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= sha256
:0c70fb2b1ca17d333b7e2c18d5fc943944b5872e063de60df3035ee20b6dafba
38 COMPONENT_ARCHIVE_URL
= https
://github.com
/pavouk
/lgi
/archive
/$(COMPONENT_VERSION
).
tar.gz
39 COMPONENT_FMRI
= library
/lua
/lgi-53
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 CFLAGS
+= -I
/usr
/include/lua5.3
53 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
54 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
55 COMPONENT_BUILD_ENV
+= LDFLAGS
="$(LDFLAGS)"
56 COMPONENT_BUILD_ENV
+= PATH
=$(PATH.
$(BITS
))
58 COMPONENT_INSTALL_ARGS
+= LUA_VERSION
=5.3 PREFIX
=$(USRDIR
)
59 COMPONENT_INSTALL_ARGS
.64 += LUA_LIBDIR
=$(USRDIR
)/lib
/lua
/5.3/64
61 # Manually added build dependencies
62 REQUIRED_PACKAGES
+= runtime
/lua-53
64 # Auto-generated dependencies
65 REQUIRED_PACKAGES
+= library
/desktop
/gobject
/gobject-introspection
66 REQUIRED_PACKAGES
+= library
/glib2
67 REQUIRED_PACKAGES
+= library
/libffi
68 REQUIRED_PACKAGES
+= system
/library