GCC: use -fuse-cxa-atexit by default
[unleashed-userland.git] / components / librsvg / Makefile
blobfa911bdc6d1f021d6b3840085d54b0c286537fb2
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
5 # 1.0 of the CDDL.
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 2014 Alexander Pyhalov. All rights reserved.
16 include ../../make-rules/shared-macros.mk
18 COMPONENT_NAME= librsvg
19 COMPONENT_VERSION= 2.36.4
20 COMPONENT_SUMMARY= Library for SVG support for GNOME
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
23 COMPONENT_ARCHIVE_HASH= \
24 sha256:1021935204798f4f0ad3004a09b583668ea94a48593461b147fdcff68a18e6c2
25 COMPONENT_ARCHIVE_URL= \
26 http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/2.36/$(COMPONENT_ARCHIVE)
27 COMPONENT_PROJECT_URL = https://www.gnome.org/
29 include ../../make-rules/prep.mk
30 include ../../make-rules/configure.mk
31 include ../../make-rules/ips.mk
33 PATH=/usr/gnu/bin:/usr/bin
35 # Cloning is required for gmake test to pass
36 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
38 CONFIGURE_SCRIPT= $(@D)/configure
41 COMPONENT_PREP_ACTION = ( cd $(@D) && aclocal && \
42 libtoolize --force --copy&&\
43 gtkdocize &&\
44 autoheader &&\
45 automake -a -f -c --gnu &&\
46 autoconf )
48 CONFIGURE_OPTIONS.32 = --sysconfdir=/etc
49 CONFIGURE_OPTIONS.64 = --sysconfdir=/etc/$(MACH64)
50 CONFIGURE_OPTIONS += --with-html-dir=/usr/share/gtk-doc/html/librsvg
51 CONFIGURE_OPTIONS += --disable-Bsymbolic
53 COMPONENT_BUILD_ENV += CC="$(CC)"
54 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
56 build: $(BUILD_32_and_64)
58 install: $(INSTALL_32_and_64)
60 test: $(TEST_32_and_64)