open-src/driver/xf86-video-intel/Makefile
changeset 1265 0b5cc5c013e4
parent 1196 1ce455dae979
child 1351 9ad483eabd22
equal deleted inserted replaced
1264:a3323e4f263f 1265:0b5cc5c013e4
     1 ###############################################################################
     1 ###############################################################################
     2 #
     2 #
     3 # xf86-video-intel Makefile
     3 # xf86-video-intel Makefile
     4 #
     4 #
     5 # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
     5 # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     6 #
     6 #
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     7 # Permission is hereby granted, free of charge, to any person obtaining a
     8 # copy of this software and associated documentation files (the "Software"),
     8 # copy of this software and associated documentation files (the "Software"),
     9 # to deal in the Software without restriction, including without limitation
     9 # to deal in the Software without restriction, including without limitation
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    27 
    27 
    28 # Package name used in tarballs
    28 # Package name used in tarballs
    29 MODULE_NAME=xf86-video-intel
    29 MODULE_NAME=xf86-video-intel
    30 
    30 
    31 # Version number (used in path names)
    31 # Version number (used in path names)
    32 MODULE_VERSION=2.10.0
    32 MODULE_VERSION=2.18.0
    33 
    33 
    34 # Checksums for upstream tarball
    34 # Checksums for upstream tarball
    35 TARBALL_MD5  = 78309d4f04dd8ae6585d120377042741
    35 TARBALL_MD5  = 34f3987ffe86e30c57abc33b7f8030e9
    36 TARBALL_SHA1 = 1683eddf89ed88f109cb2fe46284e3f8f304a0d9
    36 TARBALL_SHA1 = 77fae98e73414140bf214dca5da32bcf079c4463
    37 
    37 
    38 # Patches to apply to source after unpacking, in order
    38 # Patches to apply to source after unpacking, in order
    39 SOURCE_PATCHES= \
    39 SOURCE_PATCHES= \
    40 	xserver-1.9-list.h.patch \
       
    41 	xserver-1.9-abi.patch \
       
    42 	build-dri.patch \
    40 	build-dri.patch \
    43 	libraries.patch \
    41 	libraries.patch batch.patch \
    44 	pad.patch sandybridge.patch \
    42 	bromolow-chipset.patch
    45 	build-with-Xorg1.10.patch
       
    46 
    43 
    47 # Man pages to apply Sun footer to & attributes to list
    44 # Man pages to apply Sun footer to & attributes to list
    48 SUNTOUCHED_MANPAGES=man/*.man
    45 SUNTOUCHED_MANPAGES=man/*.man
    49 MODULE_STABILITY=Volatile
    46 MODULE_STABILITY=Volatile
    50 
    47 
    53 BUILD_TYPES_SET=yes
    50 BUILD_TYPES_SET=yes
    54 
    51 
    55 # but we only want those libraries built in the 32-bit build, not the whole
    52 # but we only want those libraries built in the 32-bit build, not the whole
    56 # driver (which would overwrite the 64-bit driver)
    53 # driver (which would overwrite the 64-bit driver)
    57 BUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
    54 BUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
       
    55 BUILD_TARGETS_32 = build_legacy_xvmc
       
    56 BUILD_TARGETS += $(BUILD_TARGETS_$(BUILD_TYPE))
    58 BUILD_TARGETS_SET=yes
    57 BUILD_TARGETS_SET=yes
    59 subdir_32 = $(SOURCE_DIR)/src/xvmc
    58 subdir_32 = $(SOURCE_DIR)/src/xvmc
    60 subdir_64 = $(SOURCE_DIR)
    59 subdir_64 = $(SOURCE_DIR)
    61 subdir = $(subdir_$(BUILD_TYPE))
    60 subdir = $(subdir_$(BUILD_TYPE))
    62 install_subdir_cmd = install
    61 install_subdir_cmd = install
    63 INSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
    62 INSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
       
    63 INSTALL_TARGETS_32 = install_legacy_xvmc
    64 INSTALL_TARGETS_64 = install_docs
    64 INSTALL_TARGETS_64 = install_docs
    65 INSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
    65 INSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
    66 INSTALL_TARGETS_SET=yes
    66 INSTALL_TARGETS_SET=yes
    67 LIBXVMC_LD_OPTIONS = -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
    67 LIBXVMC_LD_OPTIONS = -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
    68 LIBXVMC_LD_OPTIONS += $(LIB_REQUIRED_LDFLAGS) -z ignore -lc
    68 LIBXVMC_LD_OPTIONS += $(LIB_REQUIRED_LDFLAGS) -z ignore -lc
    74 MODULE_COMPILER_SET=yes
    74 MODULE_COMPILER_SET=yes
    75 
    75 
    76 # Extra flags to pass to configure script
    76 # Extra flags to pass to configure script
    77 # --libdir is needed to set path for XvMC libraries
    77 # --libdir is needed to set path for XvMC libraries
    78 MODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)'
    78 MODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)'
       
    79 
       
    80 # echo is set to workaround configure/libtool strangeness in 2.15.0 that
       
    81 # causes ../../libtool: line 791: X--mode=install: command not found errors
       
    82 MODULE_CONFIG_ENV = echo=/usr/gnu/bin/echo
       
    83 MODULE_BUILD_ENV += echo=/usr/gnu/bin/echo
    79 
    84 
    80 # Library paths at build time
    85 # Library paths at build time
    81 MODULE_LD_OPTIONS= -z ignore \
    86 MODULE_LD_OPTIONS= -z ignore \
    82 	-L$(PROTODIR)$(X11_SERVERMODS_DIR) \
    87 	-L$(PROTODIR)$(X11_SERVERMODS_DIR) \
    83 	-L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
    88 	-L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
    96 	mkdir -p $(PROTODIR)$(X11_DOC_DIR)
   101 	mkdir -p $(PROTODIR)$(X11_DOC_DIR)
    97 	cp -pf $(SOURCE_DIR)/README $(PROTODIR)$(X11_DOC_DIR)/README.intel
   102 	cp -pf $(SOURCE_DIR)/README $(PROTODIR)$(X11_DOC_DIR)/README.intel
    98 
   103 
    99 build-in-subdir: $(BUILD_DEPS)
   104 build-in-subdir: $(BUILD_DEPS)
   100 install-in-subdir: $(INSTALL_DEPS)
   105 install-in-subdir: $(INSTALL_DEPS)
       
   106 
       
   107 LEGACY_XVMC_SUBDIR = $(SOURCE_DIR)/src/legacy/i810/xvmc
       
   108 
       
   109 build_legacy_xvmc: $(BUILD_DEPS)
       
   110 	$(DEFAULT_BUILD_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd)
       
   111 
       
   112 install_legacy_xvmc: $(INSTALL_DEPS)
       
   113 	$(DEFAULT_INSTALL_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd) \
       
   114                 $(install_subdir_cmd)