c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or http://www.opensolaris.org/os/licensing.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c9f77c52c0735e65aa2534394c5151cdb963cbefAndy Stormont# If applicable, add the following below this CDDL HEADER, with the
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c9f77c52c0735e65aa2534394c5151cdb963cbefAndy Stormont#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c9f77c52c0735e65aa2534394c5151cdb963cbefAndy Stormont# Prefer 32-bit as only "binary" delivered is a script with embedded paths.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBUILD_BITS= 32_and_64
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# gcc will handle src/cpuinfo.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPILER= gcc
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankovinclude ../../make-rules/shared-macros.mk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c9f77c52c0735e65aa2534394c5151cdb963cbefAndy StormontCOMPONENT_NAME = SDL
COMPONENT_VERSION = 1.2.15
COMPONENT_PROJECT_URL = http://www.libsdl.org/
COMPONENT_ARCHIVE_HASH = \
sha256:d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00
COMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
COMPONENT_BUGDB= library/sdl
TPNO = 28045
COMPONENT_PREP_ACTION += ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh );
TEST_TARGET= $(SKIP_TEST)
include $(WS_MAKE_RULES)/common.mk
# libtool linking
CC += $(CC_BITS)
CONFIGURE_OPTIONS += --disable-pulseaudio
# elfedit removes wrong RUNPATH/RPATH (see 22383984)
COMPONENT_POST_INSTALL_ACTION.32= \
$(ELFEDIT) -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
$(PROTOUSRLIBDIR)/libSDL-1.2.so.0.*
COMPONENT_POST_INSTALL_ACTION.64= \
$(ELFEDIT) -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
$(PROTOUSRLIBDIR64)/libSDL-1.2.so.0.*
REQUIRED_PACKAGES += developer/gcc
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += x11/library/libx11
REQUIRED_PACKAGES += x11/library/libxext
REQUIRED_PACKAGES += x11/library/libxrandr