components/libsdl/Makefile
changeset 5233 063413d20b5d
child 5682 94c0ca64c022
equal deleted inserted replaced
5232:902d18d42945 5233:063413d20b5d
       
     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 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME =	SDL
       
    26 COMPONENT_VERSION =	1.2.14
       
    27 COMPONENT_PROJECT_URL =	http://www.libsdl.org/
       
    28 COMPONENT_SRC =		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    29 COMPONENT_ARCHIVE =	$(COMPONENT_SRC).tar.gz
       
    30 COMPONENT_ARCHIVE_HASH = \
       
    31     sha256:5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642eed9b6
       
    32 COMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=	library/sdl
       
    34 
       
    35 TPNO = 7683
       
    36 
       
    37 include $(WS_MAKE_RULES)/prep.mk
       
    38 include $(WS_MAKE_RULES)/configure.mk
       
    39 include $(WS_MAKE_RULES)/ips.mk
       
    40 
       
    41 # libtool linking
       
    42 CC += $(CC_BITS)
       
    43 
       
    44 CONFIGURE_OPTIONS += --disable-pulseaudio
       
    45 CONFIGURE_OPTIONS += CC="$(CC)"
       
    46 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
       
    47 
       
    48 configure:	$(CONFIGURE_32_and_64)
       
    49 
       
    50 build:		$(BUILD_32_and_64)
       
    51 
       
    52 # elfedit removes wrong RUNPATH/RPATH (see 22383984)
       
    53 install:	$(INSTALL_32_and_64)
       
    54 	/usr/bin/elfedit -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
       
    55 	  $(PROTOUSRLIBDIR)/libSDL-1.2.so.0.*
       
    56 	/usr/bin/elfedit -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
       
    57 	  $(PROTOUSRLIBDIR64)/libSDL-1.2.so.0.*
       
    58 
       
    59 test:		$(NO_TESTS)
       
    60 
       
    61 system-test:    $(NO_TESTS)
       
    62 
       
    63 REQUIRED_PACKAGES += shell/ksh93
       
    64 REQUIRED_PACKAGES += system/library
       
    65 REQUIRED_PACKAGES += system/library/math
       
    66 REQUIRED_PACKAGES += x11/library/libx11
       
    67 REQUIRED_PACKAGES += x11/library/libxext
       
    68 REQUIRED_PACKAGES += x11/library/libxrandr