open-src/proto/X11/Makefile
changeset 32 235a80428f96
parent 18 5404abd06157
child 89 adcfe20272e4
equal deleted inserted replaced
31:6fef7fb81fc7 32:235a80428f96
    26 # Except as contained in this notice, the name of a copyright holder
    26 # Except as contained in this notice, the name of a copyright holder
    27 # shall not be used in advertising or otherwise to promote the sale, use
    27 # shall not be used in advertising or otherwise to promote the sale, use
    28 # or other dealings in this Software without prior written authorization
    28 # or other dealings in this Software without prior written authorization
    29 # of the copyright holder.
    29 # of the copyright holder.
    30 #
    30 #
    31 # @(#)Makefile	1.2	06/05/15
    31 # @(#)Makefile	1.3	06/06/12
    32 #
    32 #
    33 
    33 
    34 PWD:sh=pwd
    34 # Package name used in tarballs
    35 TOP=$(PWD)/../..
    35 PROTO_NAME=xproto
    36 
       
    37 # Not really 32 or 64-bit, but we call it 32-bit to avoid subdirs
       
    38 BUILD_TYPES=32 
       
    39 
    36 
    40 # Version number (used in path names)
    37 # Version number (used in path names)
    41 VERSION=7.0.5
    38 VERSION=7.0.5
    42 
    39 
    43 # Source tarball
       
    44 SOURCE_TARBALL_NAME=xproto-$(VERSION).tar.bz2
       
    45 
       
    46 # Download site for source
       
    47 SOURCE_URL=$(XORG_RELEASES_URL)/proto/$(SOURCE_TARBALL_NAME)
       
    48 
       
    49 # Patches to apply to source after unpacking, in order
    40 # Patches to apply to source after unpacking, in order
    50 SOURCE_PATCHES=	Xos.h-patch Xpoll.h-patch X.h-patch
    41 SOURCE_PATCHES=	Xos.h-patch Xpoll.h-patch X.h-patch
    51 
    42 
    52 # Directory created by unpacking source
    43 ### Include common rulesets
    53 SOURCE_DIR=$(BUILD_DIR)/xproto-$(VERSION)
    44 include ../Makefile.inc
    54 
    45 
    55 ### Include common rulesets
    46 # Extra install for bootstrapping the old monolith
    56 include $(TOP)/common/Makefile.inc
    47 install_gen:: $(SOURCE_DIR)/Makefile
    57 
       
    58 ### Rules specific to this directory:
       
    59 
       
    60 # Command line options to GNU autoconf configure script
       
    61 XPROTO_CFG=--prefix=$(X11_DIR)
       
    62 
       
    63 build_gen: $(SOURCE_DIR)/Makefile
       
    64 
       
    65 # Run configure script
       
    66 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
       
    67 	(cd $(SOURCE_DIR) ; \
       
    68 	 chmod a+x configure ; \
       
    69 	 CC=$(CC) CFLAGS="$(LIB_CFLAGS)" LD="$(CC) $(LIB_CFLAGS) $(LDFLAGS)" LDFLAGS="$(LIB_LDFLAGS)" ./configure $(XPROTO_CFG) )
       
    70 
       
    71 # Install - first is for packages, second is for building the old monolith
       
    72 install_gen: $(SOURCE_DIR)/Makefile
       
    73 	(cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)
       
    74 	@if [ -d $(PROTODIR)/../xc/include ] ; then \
    48 	@if [ -d $(PROTODIR)/../xc/include ] ; then \
    75 		(set -x ; cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) xprotodir=/../xc/include install) ;\
    49 		(set -x ; cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) xprotodir=/../xc/include install) ;\
    76 	fi
    50 	fi
    77 
       
    78