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 BUILD_STYLE
= configure
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= libcrossguid
21 COMPONENT_VERSION
= 1.0.2
23 COMPONENT_FMRI
= library
/libcrossguid
24 COMPONENT_CLASSIFICATION
=System
/Libraries
25 COMPONENT_PROJECT_URL
= https
://github.com
/graeme-hill
/crossguid
/
26 COMPONENT_SUMMARY
= CrossGuid is a minimal
, cross platform
, C
++ GUID library.
27 COMPONENT_SRC_NAME
= crossguid
28 COMPONENT_SRC_VERSION
= 8f399e8bd4
29 COMPONENT_SRC
= $(COMPONENT_SRC_NAME
)-$(COMPONENT_SRC_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
31 COMPONENT_ARCHIVE_HASH
= sha256
:3d77d09a5df0de510aeeb940df4cb534787ddff3bb1828779753f5dfa1229d10
32 COMPONENT_ARCHIVE_URL
= https
://ftp.heanet.ie
/mirrors
/xbmc
/build-deps
/sources
/$(COMPONENT_SRC
).
tar.gz
33 COMPONENT_LICENSE
= MIT
34 COMPONENT_LICENSE_FILE
= LICENSE
36 TEST_TARGET
= $(NO_TESTS
)
37 include $(WS_MAKE_RULES
)/common.mk
39 CFLAGS
+= -DGUID_LIBUUID
41 COMPONENT_PREP_ACTION
= \
43 touch NEWS README AUTHORS ChangeLog
&& \
44 libtoolize
&& aclocal
&& autoconf
&& automake
--add-missing
)
46 COMPONENT_POST_INSTALL_ACTION
= \
47 ( $(GSED
) -e
"s:%LIBDIR%:$(CONFIGURE_LIBDIR.$(BITS)):g" \
48 -e
"s:%VERSION%:$(COMPONENT_VERSION):g" \
49 $(SOURCE_DIR
)/crossguid.
pc > $(BUILD_DIR
)/crossguid.
pc.
$(BITS
) )
51 # Auto-generated dependencies
52 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
53 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
54 REQUIRED_PACKAGES
+= system
/library