components/guile/Makefile
changeset 5682 94c0ca64c022
parent 4834 22970ab7cd3a
child 5908 bf41b43f02d8
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
    23 
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 BUILD_BITS= 64_and_32
    24 # Built in SFW with gcc and builds cleanly now only with gcc
    26 # Built in SFW with gcc and builds cleanly now only with gcc
    25 COMPILER =	gcc
    27 COMPILER= gcc
    26 
       
    27 include ../../make-rules/shared-macros.mk
    28 include ../../make-rules/shared-macros.mk
    28 
    29 
    29 COMPONENT_NAME=		guile
    30 COMPONENT_NAME=		guile
    30 COMPONENT_VERSION=	1.8.6
    31 COMPONENT_VERSION=	1.8.6
    31 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/guile/
       
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    34 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    35     sha256:69a2f9491480ff756d1cc4c8ea2bdc13d40ea8ddc8f93f26957bade8219a1d86
    33     sha256:69a2f9491480ff756d1cc4c8ea2bdc13d40ea8ddc8f93f26957bade8219a1d86
    36 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/pub/gnu/guile/$(COMPONENT_ARCHIVE)
       
    37 COMPONENT_BUGDB=	utility/guile
       
    38 
    34 
    39 TPNO=			8939
    35 TPNO=			8939
    40 
    36 
    41 include $(WS_MAKE_RULES)/prep.mk
    37 include $(WS_MAKE_RULES)/gnu-component.mk
    42 include $(WS_MAKE_RULES)/configure.mk
       
    43 include $(WS_MAKE_RULES)/ips.mk
       
    44 
    38 
    45 CONFIGURE_OPTIONS +=	CPPFLAGS="-I/usr/include/gmp -D__USE_LEGACY_PROTOTYPES__"
    39 CONFIGURE_ENV +=	CPPFLAGS="-I/usr/include/gmp -D__USE_LEGACY_PROTOTYPES__"
    46 CONFIGURE_OPTIONS +=	--disable-static 
    40 CONFIGURE_OPTIONS +=	--disable-static 
    47 CONFIGURE_OPTIONS +=	--disable-error-on-warning
    41 CONFIGURE_OPTIONS +=	--disable-error-on-warning
    48 CONFIGURE_OPTIONS +=	ac_cv_type_complex_double=no
    42 CONFIGURE_OPTIONS +=	ac_cv_type_complex_double=no
    49 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    50 
    43 
    51 # Remove the GNU specific "-pthreads" Cflags option from the guile config
    44 # Remove the GNU specific "-pthreads" Cflags option from the guile config
    52 # files. In case we need to back-port this to earlier versions of Solaris,
    45 # files. In case we need to back-port this to earlier versions of Solaris,
    53 # -D_POSIX_PTHREAD_SEMANTICS is added in its place, which makes the pthreads
    46 # -D_POSIX_PTHREAD_SEMANTICS is added in its place, which makes the pthreads
    54 # interfaces behave as specified in the POSIX standard (even though it does
    47 # interfaces behave as specified in the POSIX standard (even though it does
    55 # nothing for Solaris 12).
    48 # nothing for Solaris 12).
    56 
    49 
    57 PROTOPKGCONFIGDIR.32 = $(PROTOUSRLIBDIR)/pkgconfig
    50 PROTOPKGCONFIGDIR.32 = $(PROTOPKGCONFIGDIR)
    58 PROTOPKGCONFIGDIR.64 = $(PROTOUSRLIBDIR64)/pkgconfig
    51 PROTOPKGCONFIGDIR.64 = $(PROTOPKGCONFIGDIR64)
    59 
    52 
    60 COMPONENT_POST_INSTALL_ACTION += \
    53 COMPONENT_POST_INSTALL_ACTION += \
    61 	$(GSED) -i -e 's/-pthreads/-D_POSIX_PTHREAD_SEMANTICS/' \
    54 	$(GSED) -i -e 's/-pthreads/-D_POSIX_PTHREAD_SEMANTICS/' \
    62 		$(PROTOPKGCONFIGDIR.$(BITS))/guile-1.8.pc
    55 		$(PROTOPKGCONFIGDIR.$(BITS))/guile-1.8.pc;
       
    56 
       
    57 # We only deliver 64-bit binaries and in /usr/bin.
       
    58 COMPONENT_POST_INSTALL_ACTION.32 += \
       
    59 	$(GSED) -i -e 's|$(USRBINDIR)/$(MACH32)|$(USRBINDIR)|' \
       
    60 		$(PROTOUSRBINDIR)/$(MACH32)/guile-config;
    63 
    61 
    64 # Master test results are the same for 32-bit and 64-bit, so override
    62 # Master test results are the same for 32-bit and 64-bit, so override
    65 # here, rather than create multiple identical master files.
    63 # here, rather than create multiple identical master files.
    66 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    64 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    67 
    65 
    70 COMPONENT_TEST_TRANSFORMS += \
    68 COMPONENT_TEST_TRANSFORMS += \
    71 	'-e "s|^.*$(GCC_ROOT).*$$|XXX_GCC_ROOT_XXX|g" ' \
    69 	'-e "s|^.*$(GCC_ROOT).*$$|XXX_GCC_ROOT_XXX|g" ' \
    72 	'-e "/^XXX_GCC_ROOT_XXX$$/d" ' \
    70 	'-e "/^XXX_GCC_ROOT_XXX$$/d" ' \
    73 	'-e "/^WARNING:/d" '
    71 	'-e "/^WARNING:/d" '
    74 
    72 
    75 ASLR_MODE = $(ASLR_ENABLE)
       
    76 
       
    77 # common targets
       
    78 configure:	$(CONFIGURE_32_and_64)
       
    79 
       
    80 build:		$(BUILD_32_and_64)
       
    81 
       
    82 install:	$(INSTALL_32_and_64)
       
    83 
       
    84 test:		$(TEST_32_and_64)
       
    85 
       
    86 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
    87 
       
    88 REQUIRED_PACKAGES += library/gmp
    73 REQUIRED_PACKAGES += library/gmp
    89 REQUIRED_PACKAGES += library/libtool/libltdl
    74 REQUIRED_PACKAGES += library/libtool/libltdl
    90 REQUIRED_PACKAGES += library/ncurses
    75 REQUIRED_PACKAGES += library/ncurses
    91 REQUIRED_PACKAGES += library/readline
    76 REQUIRED_PACKAGES += library/readline
    92 REQUIRED_PACKAGES += shell/ksh93
    77 REQUIRED_PACKAGES += shell/ksh93
    93 REQUIRED_PACKAGES += system/library
       
    94 REQUIRED_PACKAGES += system/library/gcc-3-runtime
    78 REQUIRED_PACKAGES += system/library/gcc-3-runtime
    95 REQUIRED_PACKAGES += system/library/gcc-45-runtime
    79 REQUIRED_PACKAGES += system/library/gcc-45-runtime
    96 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
    80 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
    97 REQUIRED_PACKAGES += system/library/math
    81 REQUIRED_PACKAGES += system/library/math