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