|
1 # |
|
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.opensolaris.org/os/licensing. |
|
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 |
|
22 # |
|
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 include ../../make-rules/shared-macros.mk |
|
27 |
|
28 COMPONENT_NAME= groff |
|
29 COMPONENT_VERSION= 1.19.2 |
|
30 COMPONENT_PROJECT_URL= http://www.gnu.org/software/groff/ |
|
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 COMPONENT_ARCHIVE_HASH= \ |
|
34 sha256:d864fbd0bf6dea24e4f71736da9902a1cae86d0a1a893b5fe17118927257ec3e |
|
35 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE) |
|
36 COMPONENT_BUGDB= utility/groff |
|
37 |
|
38 include ../../make-rules/prep.mk |
|
39 include ../../make-rules/configure.mk |
|
40 include ../../make-rules/ips.mk |
|
41 |
|
42 COMPONENT_PREP_ACTION = \ |
|
43 ( cd $(@D) ; \ |
|
44 libtoolize -force ; \ |
|
45 aclocal -I. ; \ |
|
46 autoconf ; \ |
|
47 autoheader ) |
|
48 |
|
49 # The grog.sh script needs GNU awk not the Solaris one. |
|
50 COMPONENT_PRE_CONFIGURE_ACTION = \ |
|
51 $(GSED) -i -e 's?awk?/usr/gnu/bin/awk?' \ |
|
52 $(SOURCE_DIR)/src/roff/grog/grog.sh |
|
53 |
|
54 CONFIGURE_OPTIONS += \ |
|
55 --with-appresdir=$(CONFIGURE_PREFIX)/X11/lib/X11/app-defaults |
|
56 |
|
57 CONFIGURE_OPTIONS += CXX="$(CXX)" |
|
58 CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)" |
|
59 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
60 |
|
61 COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR) |
|
62 COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR) |
|
63 COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR) |
|
64 COMPONENT_INSTALL_ARGS += mandir=$(PROTOUSRSHAREMANDIR) |
|
65 COMPONENT_INSTALL_ARGS += legacyfontdir=$(PROTOUSRLIBDIR)/font |
|
66 COMPONENT_INSTALL_ARGS += appresdir=$(PROTOUSRDIR)/X11/lib/X11/app-defaults |
|
67 COMPONENT_INSTALL_ARGS += sys_tmac_prefix=$(PROTOUSRSHARELIBDIR)/tmac/ |
|
68 |
|
69 COMPONENT_PRE_INSTALL_ACTION = \ |
|
70 ($(MKDIR) $(PROTOUSRBINDIR) ) |
|
71 |
|
72 # common targets |
|
73 build: $(BUILD_64) |
|
74 |
|
75 install: $(INSTALL_64) |
|
76 |
|
77 # groff tests use dejagnu which isn't currently included in Solaris. |
|
78 test: $(NO_TESTS) |
|
79 |
|
80 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
81 |
|
82 include ../../make-rules/depend.mk |