Makefile revision 5231
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# CDDL HEADER START
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# The contents of this file are subject to the terms of the
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Common Development and Distribution License (the "License").
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# You may not use this file except in compliance with the License.
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# or http://www.opensolaris.org/os/licensing.
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# See the License for the specific language governing permissions
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# and limitations under the License.
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# When distributing Covered Code, include this CDDL HEADER in each
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# If applicable, add the following below this CDDL HEADER, with the
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# fields enclosed by brackets "[]" replaced with your own identifying
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# information: Portions Copyright [yyyy] [name of copyright owner]
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# CDDL HEADER END
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
14ea4bb737263733ad80a36b4f73f681c30a6b45sd#
6876da76f91687fee15a706830b990a2c0d55157Trang Doinclude ../../make-rules/shared-macros.mk
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_NAME = SDL
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_VERSION = 1.2.14
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_PROJECT_URL = http://www.libsdl.org/
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
535ec645ca371f1ce298eaf76bf8feb73494f923dduvallCOMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhCOMPONENT_ARCHIVE_HASH = \
dd566498928f08e7c9a79797a40db893c6a4b9fbvn sha256:5d927e287034cb6bb0ebccfa382cb1d185cb113c8ab5115a0759798642eed9b6
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_ARCHIVE_URL = $(COMPONENT_PROJECT_URL)release/$(COMPONENT_ARCHIVE)
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCOMPONENT_BUGDB= library/sdl
dd566498928f08e7c9a79797a40db893c6a4b9fbvn
dd566498928f08e7c9a79797a40db893c6a4b9fbvnTPNO = 7683
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
dd566498928f08e7c9a79797a40db893c6a4b9fbvninclude $(WS_MAKE_RULES)/prep.mk
dd566498928f08e7c9a79797a40db893c6a4b9fbvninclude $(WS_MAKE_RULES)/configure.mk
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephhinclude $(WS_MAKE_RULES)/ips.mk
dd566498928f08e7c9a79797a40db893c6a4b9fbvn
14ea4bb737263733ad80a36b4f73f681c30a6b45sd# libtool linking
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCC += $(CC_BITS)
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCONFIGURE_OPTIONS += --disable-pulseaudio
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCONFIGURE_OPTIONS += CC="$(CC)"
14ea4bb737263733ad80a36b4f73f681c30a6b45sdCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdconfigure: $(CONFIGURE_32_and_64)
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdbuild: $(BUILD_32_and_64)
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
dd566498928f08e7c9a79797a40db893c6a4b9fbvn# elfedit removes wrong RUNPATH/RPATH (see 22383984)
dd566498928f08e7c9a79797a40db893c6a4b9fbvninstall: $(INSTALL_32_and_64)
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh /usr/bin/elfedit -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
25c6ff4b77fcddf4097ce78a8277275ca603b46cstephh $(PROTOUSRLIBDIR)/libSDL-1.2.so.0.*
dd566498928f08e7c9a79797a40db893c6a4b9fbvn /usr/bin/elfedit -e "dyn:delete RUNPATH" -e "dyn:delete RPATH" \
dd566498928f08e7c9a79797a40db893c6a4b9fbvn $(PROTOUSRLIBDIR64)/libSDL-1.2.so.0.*
dd566498928f08e7c9a79797a40db893c6a4b9fbvn
dd566498928f08e7c9a79797a40db893c6a4b9fbvntest: $(NO_TESTS)
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdsystem-test: $(NO_TESTS)
14ea4bb737263733ad80a36b4f73f681c30a6b45sd
14ea4bb737263733ad80a36b4f73f681c30a6b45sdREQUIRED_PACKAGES += shell/ksh93
14ea4bb737263733ad80a36b4f73f681c30a6b45sdREQUIRED_PACKAGES += system/library
14ea4bb737263733ad80a36b4f73f681c30a6b45sdREQUIRED_PACKAGES += system/library/math
14ea4bb737263733ad80a36b4f73f681c30a6b45sdREQUIRED_PACKAGES += x11/library/libx11
dd566498928f08e7c9a79797a40db893c6a4b9fbvnREQUIRED_PACKAGES += x11/library/libxext
dd566498928f08e7c9a79797a40db893c6a4b9fbvnREQUIRED_PACKAGES += x11/library/libxrandr
dd566498928f08e7c9a79797a40db893c6a4b9fbvn