Home | History | Annotate | Download | only in gvim
      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 2009 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 #ident	"@(#)Makefile.sfw	1.3	09/09/03 SMI"
     27 #
     28 
     29 include ../Makefile.cmd
     30 
     31 VER=vim72
     32 # gvim uses the source code from vim in usr/src/cmd/vim
     33 # and produces a SUNWgvim package
     34 PATCHES=../../vim/vim-patches/7.2.*
     35 
     36 #CONFIGURE_OPTIONS - These arguments would be passed on to "./configure 
     37 CONFIGURE_OPTIONS += --enable-gui=gtk2
     38 CONFIGURE_OPTIONS += --with-vim-name=gvim
     39 CONFIGURE_OPTIONS += --enable-gtk2-check
     40 CONFIGURE_OPTIONS += --with-features=huge
     41 CONFIGURE_OPTIONS += --with-x
     42 
     43 all: $(VER)/src/auto/config.status
     44 	(cd $(VER); env - \
     45 	    CC=$(CC) CXX=$(CCC) \
     46 	    "CFLAGS=$(CFLAGS)" \
     47 	    PATH=$(SFW_PATH) \
     48 	    MAKE=$(CCSMAKE) \
     49 	    $(CCSMAKE) -e)
     50 
     51 install: all
     52 	$(SHELL) ./install-sfw
     53 
     54 $(VER)/src/auto/config.status: $(VER)/configure
     55 	(cd $(VER); env - \
     56 	    CC=$(CC) CXX=$(CCC) \
     57 	    "CFLAGS=$(CFLAGS)" \
     58 	    PATH=$(SFW_PATH) \
     59 	    MAKE=$(CCSMAKE) \
     60 	    ./configure $(CONFIGURE_OPTIONS))
     61 
     62 $(VER)/configure: ../vim/$(VER).tar.bz2
     63 	$(GTAR) xfj ../vim/$(VER).tar.bz2 
     64 	( \
     65 	    echo `pwd` && cd $(VER) && \
     66 	    for patchFile in $(PATCHES); \
     67 	    do \
     68 	        gpatch -p0 < $$patchFile ; \
     69 	    done; \
     70 	)
     71 	touch $(VER)/configure
     72 
     73 clean:
     74 	-rm -rf $(VER)
     75 
     76 include ../Makefile.targ
     77