open-src/util/lndir/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Wed, 31 Jan 2007 16:30:33 -0800
changeset 98 c21b46ed1efd
parent 49 21835ed559d8
child 156 1dec9ce4addc
permissions -rw-r--r--
6489660 Xorg server 7.2 [PSARC 2007/051]
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
# Use subject to license terms.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Permission is hereby granted, free of charge, to any person obtaining a
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# copy of this software and associated documentation files (the
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# "Software"), to deal in the Software without restriction, including
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# without limitation the rights to use, copy, modify, merge, publish,
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# distribute, and/or sell copies of the Software, and to permit persons
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# to whom the Software is furnished to do so, provided that the above
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# copyright notice(s) and this permission notice appear in all copies of
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# the Software and that both the above copyright notice(s) and this
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# permission notice appear in supporting documentation.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# Except as contained in this notice, the name of a copyright holder
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# shall not be used in advertising or otherwise to promote the sale, use
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# or other dealings in this Software without prior written authorization
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# of the copyright holder.
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
#
49
21835ed559d8 Fix opensolaris build failure (wrong pkgconfig path)
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 17
diff changeset
    31
# @(#)Makefile	1.2	06/08/25
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
PWD:sh=pwd
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
TOP=$(PWD)/../..
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
# Not really 32 or 64-bit, but we call it 32-bit to avoid subdirs
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
BUILD_TYPES=32 
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
# Version number (used in path names)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
VERSION=1.0.1
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
# Source tarball
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
SOURCE_TARBALL_NAME=lndir-$(VERSION).tar.bz2
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
# Download site for source
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
SOURCE_URL=$(XORG_RELEASES_URL)/util/$(SOURCE_TARBALL_NAME)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
# Patches to apply to source after unpacking, in order
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
SOURCE_PATCHES=	
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
# Directory created by unpacking source
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
SOURCE_DIR=$(BUILD_DIR)/lndir-$(VERSION)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
### Include common rulesets
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
include $(TOP)/common/Makefile.inc
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
### Rules specific to this directory:
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
# Command line options to GNU autoconf configure script
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
LNDIR_CFG=--prefix=$(X11_DIR)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
build_gen: $(SOURCE_DIR)/Makefile
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
# Run configure script
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
	(cd $(SOURCE_DIR) ; \
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
	 chmod a+x configure ; \
49
21835ed559d8 Fix opensolaris build failure (wrong pkgconfig path)
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 17
diff changeset
    69
	 CC=$(CC) CFLAGS="$(LIB_CFLAGS)" LD="$(CC) $(PROG_CFLAGS) $(LDFLAGS)" LDFLAGS="$(PROG_LDFLAGS)" PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/pkgconfig:$(PROTODIR)/usr/X11/lib/pkgconfig ./configure $(LNDIR_CFG) )
17
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    71
# Install
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
install_gen: $(SOURCE_DIR)/Makefile
151bef9509d4 6424349 prepare xscreensaver sources for OpenSolaris release
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
	(cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)