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 phorcys@126.com. All rights reserved.
16 USE_DEFAULT_TEST_TRANSFORMS
= yes
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libplist
20 COMPONENT_VERSION
= 2.6.0
21 COMPONENT_SUMMARY
= A library to handle Apple Property List format in binary or XML
22 COMPONENT_PROJECT_URL
= https
://github.com
/libimobiledevice
/libplist
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
25 COMPONENT_ARCHIVE_HASH
= sha256
:2c8aa303dac2d73fcf28ba90122e68480ca8cf7b00c5d44926ea4c1e8cf94368
26 COMPONENT_ARCHIVE_URL
= https
://cgit.libimobiledevice.org
/libplist.git
/snapshot
/$(COMPONENT_ARCHIVE
)
27 COMPONENT_FMRI
= library
/libplist
28 COMPONENT_CLASSIFICATION
= System
/Libraries
29 COMPONENT_LICENSE
= GPLv2
,LGPLv2.1
31 include $(WS_MAKE_RULES
)/common.mk
35 # Without .tarball-version the build fails because of undefined PKG_VERSION.
36 COMPONENT_PREP_ACTION
= ( cd
$(@D
) && echo
-n
"$(COMPONENT_VERSION)" > .tarball-version
&& NOCONFIGURE
=true PATH
="$(PATH.gnu)" sh autogen.sh
)
38 # We use python vendor-packages instead of site-packages
39 COMPONENT_POST_INSTALL_ACTION
+= \
40 cd
$(PROTOUSRLIBDIR
)/python
$(PYTHON_VERSION
) ; \
41 $(RM
) -r vendor-packages
; \
42 $(MV
) site-packages vendor-packages
;
44 CONFIGURE_ENV
+= PYTHON_SITE_PKG
=/usr
/lib
/python
$(PYTHON_VERSION
)/vendor-packages
46 CONFIGURE_OPTIONS
+= --disable-static
48 # Manually added build dependencies
49 REQUIRED_PACKAGES
+= library
/python
/cython
51 # Auto-generated dependencies
52 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
53 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
54 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
55 REQUIRED_PACKAGES
+= system
/library
56 REQUIRED_PACKAGES
+= system
/library
/math