Aurelien Larcher
2018-01-20 2136604c82fa97645ec6488d4a395fdaebb7eba4
commit | author | age
a7ea40 1 #
AL 2 # CDDL HEADER START
3 #
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.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.illumos.org/license/CDDL.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 2016, Aurelien Larcher. All rights reserved.
22 #
23 include ../../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=                    libcdr
993956 26 COMPONENT_VERSION=            0.1.4
a7ea40 27 COMPONENT_FMRI=             library/c++/libcdr
AL 28 COMPONENT_CLASSIFICATION=System/Libraries
29 COMPONENT_PROJECT_URL=    https://wiki.documentfoundation.org/DLP/Libraries/libcdr
30 COMPONENT_SUMMARY=      libcdr - library for reading CorelDRAW documents
31 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
993956 33 COMPONENT_ARCHIVE_HASH=    sha256:e7a7e8b00a3df5798110024d7061fe9d1c3330277d2e4fa9213294f966a4a66d
a7ea40 34 COMPONENT_ARCHIVE_URL=    http://dev-www.libreoffice.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
AL 35 COMPONENT_LICENSE=      MPLv2
36 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
37
909846 38 # Fix threading detection issue introduced with boost 1.64
AL 39 CXXFLAGS+= -std=c++11 -pthread
40
41 include $(WS_MAKE_RULES)/prep.mk
42 include $(WS_MAKE_RULES)/configure.mk
43 include $(WS_MAKE_RULES)/ips.mk
a7ea40 44
AL 45 CONFIGURE_OPTIONS+=    --enable-shared
46 CONFIGURE_OPTIONS+=    --disable-static
47
909846 48 build: $(BUILD_32_and_64)
a7ea40 49
909846 50 install: $(INSTALL_32_and_64)
a7ea40 51
909846 52 test: $(TEST_32_and_64)
a7ea40 53
AL 54 REQUIRED_PACKAGES += image/imagemagick
55 REQUIRED_PACKAGES += library/c++/librevenge
56 REQUIRED_PACKAGES += library/icu
57 REQUIRED_PACKAGES += library/lcms2
58 REQUIRED_PACKAGES += library/zlib
59 REQUIRED_PACKAGES += system/library
60 REQUIRED_PACKAGES += system/library/boost
61 REQUIRED_PACKAGES += system/library/g++-4-runtime
213660 62 REQUIRED_PACKAGES += system/library/gcc-6-runtime
a7ea40 63 REQUIRED_PACKAGES += system/library/math