usr/src/cmd/sane-frontends/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Mon, 21 Mar 2011 01:49:39 -0800
changeset 72 82bde2a81435
parent 0 b34509ac961f
permissions -rw-r--r--
Import sfw build 162 Bugs Fixed ---------- 7021535 remove bison runtime bits from SUNWgccruntime 7023530 remove even more things from sfw 7023710 net-ssleay 1.35 in SFW does not build with OpenSSL 1.0.0 7024341 emacs doesn't build on 160

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"@(#)Makefile.sfw	1.1	08/04/14 SMI"

VERFRONTEND=sane-frontends-1.0.14

all :  allsane-frontend


allsane-frontend: $(VERFRONTEND)/config.status 
	(cd $(VERFRONTEND); env \
	    PATH=$(SFW_PATH) \
	    MAKE=$(CCSMAKE) \
	    $(CCSMAKE))


include ../Makefile.cmd

# install frontend 

install: allsane-frontend
	$(SH) ./install-frontend


# sane-frontend depends on the sane-backend's built library, libsane.so
$(VERFRONTEND)/config.status: $(VERFRONTEND)/configure
	(cd $(VERFRONTEND); env \
	    "CC=$(CC)" \
	    PATH=$(SFW_PATH) \
	    "MAKE=$(CCSMAKE)" \
	    SANE_CONFIG="$(ROOT)/usr/bin/sane-config" \
	    ./configure CFLAGS="-I $(ROOT)/usr/include " \
	       LDFLAGS="-L$(ROOT)/usr/lib -lsane" \
	       --with-sane-prefix=$(ROOT)/usr/ --prefix=/usr \
	       --disable-sanetest --disable-gtktest --disable-gimptest)

$(VERFRONTEND)/configure: $(VERFRONTEND).tar.gz 
	gzip -dc $(VERFRONTEND).tar.gz | tar xopf -
	touch $(VERFRONTEND)/configure
	patch -N $(VERFRONTEND)/configure < frontconfigure.patch

clean:
	-rm -rf $(VERFRONTEND)

install_h:

include ../Makefile.targ