components/groff/Makefile
branchs11-update
changeset 3706 bd45826ad92c
parent 3661 47545fb8aed4
child 3996 20c0f21bbe1e
equal deleted inserted replaced
3704:69ab8eca01c5 3706:bd45826ad92c
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		groff
    28 COMPONENT_NAME=		groff
    29 COMPONENT_VERSION=	1.19.2
    29 COMPONENT_VERSION=	1.22.2
    30 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/groff/
    30 COMPONENT_PROJECT_URL=	http://www.gnu.org/software/groff/
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE_HASH= \
    33 COMPONENT_ARCHIVE_HASH= \
    34     sha256:d864fbd0bf6dea24e4f71736da9902a1cae86d0a1a893b5fe17118927257ec3e
    34     sha256:380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
    35 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    36 COMPONENT_BUGDB=	utility/groff
    36 COMPONENT_BUGDB=	utility/groff
    37 
    37 
    38 TPNO=			7898
    38 TPNO=			8829
    39 
    39 
    40 include ../../make-rules/prep.mk
    40 include ../../make-rules/prep.mk
    41 include ../../make-rules/configure.mk
    41 include ../../make-rules/configure.mk
    42 include ../../make-rules/ips.mk
    42 include ../../make-rules/ips.mk
    43 
    43 
    44 COMPONENT_PREP_ACTION = \
       
    45 	( cd $(@D) ; \
       
    46 		libtoolize -force ; \
       
    47 		aclocal -I. ; \
       
    48 		autoconf ; \
       
    49 		autoheader )
       
    50 
       
    51 # The grog.sh script needs GNU awk not the Solaris one.
    44 # The grog.sh script needs GNU awk not the Solaris one.
    52 COMPONENT_PRE_CONFIGURE_ACTION = \
    45 COMPONENT_PRE_CONFIGURE_ACTION = \
    53 	$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
    46 	$(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \
    54 		$(SOURCE_DIR)/src/roff/grog/grog.sh
    47 		$(SOURCE_DIR)/src/roff/grog/grog.sh
       
    48 
       
    49 # There are _GL_INLINE_HEADER_BEGIN and _GL_INLINE_HEADER_END definitions in
       
    50 # .../src/libs/gnulib/lib/wctype.h that are not being processed. There is
       
    51 # code in .../src/libs/gnulib/config.h that would do this, but this header
       
    52 # files is not included by wctype.h (or the C++ files that use it and fail
       
    53 # to build with the Studio compilers:
       
    54 # .../src/roff/troff/[env.cpp, input.cpp, node.cpp]
       
    55 # See CR #17959391 for more details.
       
    56 COMPONENT_POST_CONFIGURE_ACTION = \
       
    57 	$(GSED) -i -e 's/_GL_INLINE_HEADER_BEGIN//' \
       
    58 		-e 's/_GL_INLINE_HEADER_END//' \
       
    59 		$(SOURCE_DIR)/src/libs/gnulib/lib/wctype.in.h
       
    60 
       
    61 # Everything is under /usr/bin and /usr/lib so set bindir and libdir correctly.
       
    62 CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
       
    63 CONFIGURE_LIBDIR.64 =	$(CONFIGURE_PREFIX)/lib
    55 
    64 
    56 CONFIGURE_OPTIONS += \
    65 CONFIGURE_OPTIONS += \
    57     --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
    66     --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults
    58 
    67 
    59 CONFIGURE_OPTIONS +=	CXX="$(CXX)"
    68 CONFIGURE_OPTIONS +=	CXX="$(CXX)"
    60 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
    69 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
    61 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
    70 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
    62 
    71 
    63 COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
    72 # Groff's manual section numbering is configurable.  Renumber the sections
    64 COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
    73 # during build to get the internal references substituted, and during install
    65 COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
    74 # to get them into the right directories.
    66 COMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR)
    75 COMPONENT_BUILD_ARGS +=	man5ext=4
       
    76 COMPONENT_BUILD_ARGS +=	man7ext=5
       
    77 COMPONENT_INSTALL_ARGS +=	man5ext=4
       
    78 COMPONENT_INSTALL_ARGS +=	man7ext=5
       
    79 
       
    80 # Don't generate tmac wrappers for the Solaris troff macro packages.
       
    81 # Some man pages (such as groff.1) use long macro name definitions
       
    82 # which fail in compatibility mode. See:
       
    83 # http://osdir.com/ml/printing.groff.general/2003-07/msg00088.html
       
    84 # for more details.
       
    85 COMPONENT_INSTALL_ARGS += tmac_wrap=""
       
    86 
    67 COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
    87 COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font
    68 COMPONENT_INSTALL_ARGS += appresdir=$(PROTOUSRDIR)/X11/lib/X11/app-defaults
       
    69 COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
    88 COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/
    70 
    89 
    71 COMPONENT_PRE_INSTALL_ACTION = \
    90 COMPONENT_PRE_INSTALL_ACTION = \
    72 	($(MKDIR) $(PROTOUSRBINDIR) )
    91 	($(MKDIR) $(PROTOUSRBINDIR) )
       
    92 
       
    93 ASLR_MODE = $(ASLR_ENABLE)
    73 
    94 
    74 # common targets
    95 # common targets
    75 build:		$(BUILD_64)
    96 build:		$(BUILD_64)
    76 
    97 
    77 install:	$(INSTALL_64)
    98 install:	$(INSTALL_64)
    78 
    99 
    79 # groff tests use dejagnu which isn't currently included in Solaris.
       
    80 test:		$(NO_TESTS)
   100 test:		$(NO_TESTS)
    81 
   101 
    82 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
   102 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
    83 
   103 
    84 include ../../make-rules/depend.mk
   104 include ../../make-rules/depend.mk