Makefile revision 1273
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
94bd918b63001277f1b28ae4581645f8a835688fBob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# CDDL HEADER END
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:bd7725fb80f305bf27666e3d26a9b7b79596e2248f2ae2d27e06bc15a501ac75
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# man pages are a separate archive
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_1 = $(COMPONENT_NAME)-manpages-$(COMPONENT_VERSION).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:c653a3678bb5668c280a0d5ba584fdfb0e4272acbbd00901dc2363ea3f58eede
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL_1 = http://git-core.googlecode.com/files/$(COMPONENT_ARCHIVE_1)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_INSTALL_ENV+= PERL_LIB=$(shell $(PERL) -MConfig -e 'print "$$Config{installvendorarch}"')
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This runs configure but configure doesn't generate a Makefile.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Instead a Makefile comes with git.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Anyways viewpathing doesn't work.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Therefore we need cloney to copy a set of files to build.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# There are some known issues around I18N.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These man pages come in a separate archive with no Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and Solaris likes some of them moved around hence we'll just
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# do it manually here.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User $(GSED) -e 's/\\m\[blue\]//g' -e 's/\\m\[\]//g' \
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User -e 's/"7"/"5"/' -e 's/(7)/(5)/g' $$manfile > \