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 2016 Alexander Pyhalov
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_NAME
= liblouis
19 COMPONENT_VERSION
= 2.1.1
21 COMPONENT_SUMMARY
= Support for contracted braille
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_NAME
)_2_1_1
23 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)_2_1_1.
tar.gz
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:1346de8a755781fb645c705b587f21f694cc7e8f9c4b7a01441d30c8e0be25a4
26 COMPONENT_ARCHIVE_URL
= \
27 https
://github.com
/liblouis
/liblouis
/archive
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_PROJECT_URL
= http
://liblouis.org
/
29 COMPONENT_CLASSIFICATION
= System
/Libraries
30 COMPONENT_FMRI
= library
/liblouis
31 COMPONENT_LICENSE
= LGPLv3
,GPLv3
32 COMPONENT_LICENSE_FILE
= liblouis.license
34 include $(WS_TOP
)/make-rules
/prep.mk
35 include $(WS_TOP
)/make-rules
/configure.mk
36 include $(WS_TOP
)/make-rules
/ips.mk
38 PATH
=/usr
/gnu
/bin
:/usr
/bin
40 COMPONENT_BUILD_ARGS
=
42 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && autoreconf
-f
-i
)
44 # Missing files in build dir for configure without this.
45 COMPONENT_PRE_CONFIGURE_ACTION
= ( cp
-a
$(SOURCE_DIR
)/* $(@D
))
47 CONFIGURE_SCRIPT
= $(@D
)/configure
49 CONFIGURE_OPTIONS
+= --disable-static
50 CONFIGURE_OPTIONS
+= --enable-ucs4
52 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
56 $(BUILD_DIR
)/.built_python_modules
: $(INSTALL_32
)
57 cd
$(BUILD_DIR_32
)/python
&& $(ENV
) LD_LIBRARY_PATH
=$(PROTO_DIR
)/usr
/lib
:/usr
/lib
:/lib
$(PYTHON
) setup.py build
60 $(BUILD_DIR
)/.installed_python_modules
: $(INSTALL_32
) $(BUILD_DIR
)/.built_python_modules
61 cd
$(BUILD_DIR_32
)/python
&& $(ENV
) LD_LIBRARY_PATH
=$(PROTO_DIR
)/usr
/lib
:/usr
/lib
:/lib
$(PYTHON
) setup.py
install --root
$(PROTO_DIR
) --install-lib
/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
64 build
: $(BUILD_32_and_64
)
66 install: $(INSTALL_32_and_64
) $(BUILD_DIR
)/.built_python_modules
$(BUILD_DIR
)/.installed_python_modules
68 test: $(TEST_32_and_64
)
70 REQUIRED_PACKAGES
+= runtime
/python-27
71 REQUIRED_PACKAGES
+= system
/library