From 6c01c29a4ba4acc9d4068619ad74eb33855c906c Mon Sep 17 00:00:00 2001 From: Aurelien Larcher Date: Sun, 7 Feb 2016 13:55:19 +0100 Subject: [PATCH] Add freeglut 2.8.1 from x-S12 --- components/x11/freeglut/Makefile | 51 ++++++++++++++++++++++++++++++++ components/x11/freeglut/freeglut.license | 27 +++++++++++++++++ components/x11/freeglut/freeglut.p5m | 41 +++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 components/x11/freeglut/Makefile create mode 100644 components/x11/freeglut/freeglut.license create mode 100644 components/x11/freeglut/freeglut.p5m diff --git a/components/x11/freeglut/Makefile b/components/x11/freeglut/Makefile new file mode 100644 index 000000000..3062bd1f5 --- /dev/null +++ b/components/x11/freeglut/Makefile @@ -0,0 +1,51 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2015 Captain XNV +# + +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= freeglut +COMPONENT_VERSION= 2.8.1 +COMPONENT_FMRI= x11/library/freeglut +COMPONENT_CLASSIFICATION= System/X11 +COMPONENT_SUMMARY= freeglut - open-source alternative to the OpenGL Utility Toolkit (GLUT) librarys +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= \ + sha256:dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a +COMPONENT_ARCHIVE_URL= \ + http://downloads.sourceforge.net/project/freeglut/freeglut/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) +COMPONENT_PROJECT_URL = http://freeglut.sourceforge.net/ +COMPONENT_LICENSE= MIT License +COMPONENT_LICENSE_FILE= freeglut.license + +include $(WS_TOP)/make-rules/prep.mk +include $(WS_TOP)/make-rules/configure.mk +include $(WS_TOP)/make-rules/ips.mk + +PATH=/usr/gnu/bin:/usr/bin + +CONFIGURE_OPTIONS+= --disable-static +CONFIGURE_OPTIONS+= --enable-shared +CONFIGURE_OPTIONS+= --x-includes=/usr/include +CONFIGURE_OPTIONS+= --x-libraries=/usr/lib/$(LIBSUBDIR) + +CPPFLAGS += -D__posix__ -D__unix__ + +build: $(BUILD_32_and_64) + +install: $(INSTALL_32_and_64) + +test: $(NO_TESTS) + diff --git a/components/x11/freeglut/freeglut.license b/components/x11/freeglut/freeglut.license new file mode 100644 index 000000000..fc36ad990 --- /dev/null +++ b/components/x11/freeglut/freeglut.license @@ -0,0 +1,27 @@ + + Freeglut Copyright + ------------------ + + Freeglut code without an explicit copyright is covered by the following + copyright: + + Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies or substantial portions of the Software. + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + Except as contained in this notice, the name of Pawel W. Olszta shall not be + used in advertising or otherwise to promote the sale, use or other dealings + in this Software without prior written authorization from Pawel W. Olszta. diff --git a/components/x11/freeglut/freeglut.p5m b/components/x11/freeglut/freeglut.p5m new file mode 100644 index 000000000..974c503b5 --- /dev/null +++ b/components/x11/freeglut/freeglut.p5m @@ -0,0 +1,41 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Aurelien Larcher +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +link path=usr/lib/GL/$(MACH64)/libglut.so target=../../$(MACH64)/libglut.so.3.9.0 +link path=usr/lib/GL/$(MACH64)/libglut.so.3 target=../../$(MACH64)/libglut.so.3.9.0 +link path=usr/lib/GL/libglut.so target=../libglut.so.3.9.0 +link path=usr/lib/GL/libglut.so.3 target=../libglut.so.3.9.0 + +file path=usr/include/GL/freeglut.h +file path=usr/include/GL/freeglut_ext.h +file path=usr/include/GL/freeglut_std.h +file path=usr/include/GL/glut.h +link path=usr/lib/$(MACH64)/libglut.so target=libglut.so.3.9.0 +link path=usr/lib/$(MACH64)/libglut.so.3 target=libglut.so.3.9.0 +file path=usr/lib/$(MACH64)/libglut.so.3.9.0 pkg.depend.bypass-generate=.*GL\.so.* + +link path=usr/lib/libglut.so target=libglut.so.3.9.0 +link path=usr/lib/libglut.so.3 target=libglut.so.3.9.0 +file path=usr/lib/libglut.so.3.9.0 pkg.depend.bypass-generate=.*GL\.so.* + -- 2.11.4.GIT