Makefile revision 683
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# CDDL HEADER START
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# The contents of this file are subject to the terms of the
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# Common Development and Distribution License (the "License").
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# You may not use this file except in compliance with the License.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# See the License for the specific language governing permissions
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# and limitations under the License.
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# fields enclosed by brackets "[]" replaced with your own identifying
80c94ecd7a524eb933a4bb221a9618b9dc490e76Keith M Wesolowski# information: Portions Copyright [yyyy] [name of copyright owner]
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# CDDL HEADER END
d14abf155341d55053c76eeec58b787a456b753bRobert Mustacchi# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6750ebac18fffc872e3e2c643732f448b14f5195Richard LoweCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e9a5ec5aa8a1a14de1b019c6bd73e0a33f920e49Gordon RossCOMPONENT_ARCHIVE_HASH= sha1:cd8d806752aa6f5716cf193585024a002e098bf4
e9a5ec5aa8a1a14de1b019c6bd73e0a33f920e49Gordon RossCOMPONENT_ARCHIVE_URL= http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE)
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# man pages are a separate archive
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'AmoreCOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.bz2
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'AmoreCOMPONENT_ARCHIVE_HASH_1 = sha1:0be6fabbca523085e185711f2b80c99330f1e4ac
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'AmoreCOMPONENT_ARCHIVE_URL_1 = http://kernel.org/pub/software/scm/git/$(COMPONENT_ARCHIVE_1)
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'AmoreCONFIGURE_OPTIONS += --with-python=$(PYTHON.32)
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'AmoreCOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
506aa7c68b127eefb0197e329af7e9abcc3ebc98Garrett D'AmoreCOMPONENT_INSTALL_ARGS+= INSTALL="$(INSTALL)"
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# This runs configure but configure doesn't generate a Makefile.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# Instead a Makefile comes with git ...
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# Anyways viewpathing doesn't work.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# Therefore we need cloney to copy a set of files to build.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# Processed man pages go here.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# tests fully pass when done in the archive directory.
2ad72058bc680e30f084e9f9ba8ceb0f77386821Garrett D'Amore# fail here; probably due to the use of cloney.
e9a5ec5aa8a1a14de1b019c6bd73e0a33f920e49Gordon Ross# I know. It's ugly.
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# But these man pages come in a separate archive with no Makefile
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore# and Solaris likes some of them moved around hence we'll just
48edc7cf07b5dccc3ad84bf2dafe4150bd666d60Gordon Ross# do it manually here.
01335b0d1c4e0c0f16325a830b24ea2a4076fd38Garrett D'Amore cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
c23840d25f02cd4f2344009780f61b604c69dd0aGarrett D'Amore cd $(BUILD_DIR)/man1 ; for manfile in *.1; \
85775b84e01eae365b73b9a6025799b5f738c2cfGarrett D'Amore sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' $$manfile > $(DOC)/$$name.1; \
5d4606d7857958f486a2dc8cb37c99a0b72335d6Garrett D'Amore cd $(BUILD_DIR)/man5 ; for manfile in *.5; \
5d4606d7857958f486a2dc8cb37c99a0b72335d6Garrett D'Amore sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"5"/"4"/' $$manfile > $(DOC)/$$name.4; \
5d4606d7857958f486a2dc8cb37c99a0b72335d6Garrett D'Amore cd $(BUILD_DIR)/man7 ; for manfile in *.7; \
5d4606d7857958f486a2dc8cb37c99a0b72335d6Garrett D'Amore sed -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' -e 's/"7"/"5"/' $$manfile > $(DOC)/$$name.5; \