open-src/driver/xf86-video-openchrome/Makefile
changeset 1333 988018ca2b99
parent 1265 0b5cc5c013e4
child 1356 73c3eb360de2
equal deleted inserted replaced
1332:60ed704c76d6 1333:988018ca2b99
     1 ###############################################################################
       
     2 #
     1 #
     3 # xf86-video-openchrome Makefile
     2 # xf86-video-openchrome Makefile
     4 #
     3 #
     5 # Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
     4 # Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
     6 #
     5 #
    32 UPSTREAM        = The OpenChrome project
    31 UPSTREAM        = The OpenChrome project
    33 UPSTREAM_URL    = http://www.openchrome.org/
    32 UPSTREAM_URL    = http://www.openchrome.org/
    34 UPSTREAM_SET    = yes
    33 UPSTREAM_SET    = yes
    35 
    34 
    36 # Version number (used in path names)
    35 # Version number (used in path names)
    37 MODULE_VERSION=0.2.905
    36 MODULE_VERSION=0.3.1
    38 
    37 
    39 # Checksums for upstream tarball
    38 # Checksums for upstream tarball
    40 TARBALL_MD5  = 51871431a4a9204ab8ec79335c0cc041
    39 TARBALL_MD5  = 4f488b7bd4d34d17d5cbcdc0fe8e659d
    41 TARBALL_SHA1 = bbd64f258e69b29498e5f68d5a28e5253d252dd1
    40 TARBALL_SHA1 = 89e56dcfe851345f72c61a95b4fa5ab6ad7e0d83
    42 
    41 
    43 # Patches to apply to source after unpacking, in order
    42 # Patches to apply to source after unpacking, in order
    44 SOURCE_PATCHES = manpage-sections.patch,-p1
    43 SOURCE_PATCHES = manpage-sections.patch,-p1
       
    44 
       
    45 # Extra rules to run when unpacking upstream source
       
    46 CLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
       
    47 MODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET)
    45 
    48 
    46 # manpage-sections.patch edits configure.ac, so we need to autoreconf
    49 # manpage-sections.patch edits configure.ac, so we need to autoreconf
    47 AUTORECONF=yes
    50 AUTORECONF=yes
    48 
    51 
    49 # Man pages to apply Sun footer to & attributes to list
    52 # Man pages to apply Sun footer to & attributes to list
    50 SUNTOUCHED_MANPAGES=man/*.man
    53 SUNTOUCHED_MANPAGES=man/*.man
    51 MODULE_STABILITY=Volatile
    54 MODULE_STABILITY=Volatile
    52 
    55 
    53 # Extra flags to pass to configure script
    56 # Extra flags to pass to configure script
    54 # - Disable DRI since the kernel module isn't ported
    57 # - Disable DRI since the kernel module isn't ported
    55 MODULE_CONFIG_OPTS=--disable-dri
    58 MODULE_CONFIG_OPTS=--disable-dri --disable-kms
    56 
    59 
    57 # Libraries/modules to link with
    60 # Libraries/modules to link with
    58 MODULE_LD_OPTIONS= \
    61 MODULE_LD_OPTIONS= \
    59 	-L$(PROTODIR)$(X11_SERVERMODS_DIR) \
    62 	-L$(PROTODIR)$(X11_SERVERMODS_DIR) \
    60 	-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
    63 	-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
       
    64         -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
       
    65         -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
       
    66         -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
    61 	-R$(X11_SERVERMODS_DIR) \
    67 	-R$(X11_SERVERMODS_DIR) \
    62 	-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
    68 	-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
    63 	-lfb -lint10 -lpciaccess -lpixman-1 -lvbe \
    69 	-lfb -lint10 -lpciaccess -lpixman-1 -lvbe \
    64 	-lexa -lxaa -lvgahw -lshadowfb -lXfont -lm
    70 	-lexa -lvgahw -lshadowfb -lXfont -lm -ldrm -lshadow \
       
    71 	-M $(PWD)/mapfile.externs
    65 
    72 
    66 include ../Makefile.inc
    73 include ../Makefile.inc
       
    74 
       
    75 # via_regs.h has ^M's at linefeeds which break Sun compilers
       
    76 clean_linefeeds: $(CLEAN_LINEFEED_TARGET)
       
    77 $(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
       
    78 $(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
       
    79 
       
    80 $(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
       
    81 	find $(BUILD_DIR) -type f -name '*.[ch]' | \
       
    82 		xargs $(PERL) -i -p -e 's{\r\n}{\n}g'
       
    83 	touch $(CLEAN_LINEFEED_TARGET)