components/clisp/Makefile
branchs11-update
changeset 2398 54c1297f2b4b
parent 826 c6aad84d2493
child 2434 6c9bb5cf5610
equal deleted inserted replaced
2397:9228f32a3ac7 2398:54c1297f2b4b
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		clisp
    28 COMPONENT_NAME=		clisp
    29 COMPONENT_VERSION=	2.47
    29 COMPONENT_VERSION=	2.49
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_PROJECT_URL=	http://clisp.cons.org/
    31 COMPONENT_PROJECT_URL=	http://clisp.cons.org/
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
    33 COMPONENT_ARCHIVE_HASH=	\
    33 COMPONENT_ARCHIVE_HASH=	\
    34     sha256:565256a50caca44a969b7440c986b3203a0b9679babd0f1dbcbc61a4f4622edb
    34     sha256:8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890
    35 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/clisp/release/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
    36 
    36 
    37 include ../../make-rules/prep.mk
    37 include ../../make-rules/prep.mk
    38 include ../../make-rules/configure.mk
    38 include ../../make-rules/configure.mk
    39 include ../../make-rules/ips.mk
    39 include ../../make-rules/ips.mk
       
    40 
       
    41 # To include correct locale header file in .../modules/regexp/gllib/regex.c
       
    42 CPPFLAGS += -I/usr/share/gettext/intl
    40 
    43 
    41 # Required to configure correctly.
    44 # Required to configure correctly.
    42 COMPONENT_PRE_CONFIGURE_ACTION = \
    45 COMPONENT_PRE_CONFIGURE_ACTION = \
    43 	($(CLONEY) $(SOURCE_DIR) $(@D))
    46 	($(CLONEY) $(SOURCE_DIR) $(@D))
    44 
    47 
    50 unexport SHELLOPTS
    53 unexport SHELLOPTS
    51 
    54 
    52 # clisp's configure script is not a GNU auto* tools generated configure script
    55 # clisp's configure script is not a GNU auto* tools generated configure script
    53 # and doesn't take --sbindir, so we need to override the default values.
    56 # and doesn't take --sbindir, so we need to override the default values.
    54 CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
    57 CONFIGURE_OPTIONS = CC="$(CC) -DNO_GENERATIONAL_GC"
       
    58 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
    55 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
    59 CONFIGURE_OPTIONS += --prefix=$(CONFIGURE_PREFIX)
    56 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
    60 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
    57 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
    61 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
    58 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
    62 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
    59 CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
    63 CONFIGURE_OPTIONS += --srcdir=$(SOURCE_DIR)
    60 CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
    64 CONFIGURE_OPTIONS += --with-libsigsegv-prefix=$(CONFIGURE_PREFIX)
    61 CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
    65 CONFIGURE_OPTIONS += --with-libreadline-prefix=$(CONFIGURE_PREFIX)
       
    66 
       
    67 # Prevent clisp.ps and clisp.pdf having different versions for SPARC
       
    68 # and x86 in the clisp package, because of embedded dates.
       
    69 TIME_CONSTANT = 1348000000
       
    70 COMPONENT_BUILD_ENV +=		$(CONSTANT_TIME)
       
    71 
       
    72 # Adjust the "/ID [ ... ]" line in clisp.pdf to set it to a fixed value
       
    73 # to prevent it having different versions for SPARC and x86 in the clisp
       
    74 # package.  This value is normally generated by ghostscript, and is
       
    75 # different on each machine. The fixed value that's been used comes from 
       
    76 # value generated when building clisp on the Userland SPARC build machine.
       
    77 COMPONENT_POST_INSTALL_ACTION = \
       
    78 	(cd $(PROTOUSRSHAREDOCDIR)/clisp/doc ; \
       
    79 	$(GSED) -i 's|^/ID.*|/ID [<DEA6B2ECA0DB714B6BEB6209A211AEF0><DEA6B2ECA0DB714B6BEB6209A211AEF0>]|' clisp.pdf)
       
    80 
       
    81 # One of the tests now needs the GNU tail command.
       
    82 COMPONENT_TEST_ENV +=  PATH="$(GNUBIN):$(PATH)"
    62 
    83 
    63 # common targets
    84 # common targets
    64 build:		$(BUILD_32)
    85 build:		$(BUILD_32)
    65 
    86 
    66 install:	$(INSTALL_32)
    87 install:	$(INSTALL_32)