Import of pkgsrc-2015Q2
This commit is contained in:
@@ -1,39 +1,33 @@
|
||||
# $NetBSD: Makefile,v 1.54 2013/05/16 05:28:13 richard Exp $
|
||||
# $NetBSD: Makefile,v 1.57 2015/04/25 14:23:11 tnn Exp $
|
||||
|
||||
PKGNAME= glut-${MESA_PKGVERSION}
|
||||
DISTNAME= MesaGLUT-7.9.2
|
||||
# we have the autoconf patches from git, so call it 8.0.1.
|
||||
PKGNAME= glut-8.0.1
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/glut/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= http://cgit.freedesktop.org/mesa/glut/
|
||||
COMMENT= GLUT Graphics library similar to SGI's OpenGL
|
||||
#LICENSE= # TODO: (see mk/license.mk)
|
||||
|
||||
CONFLICTS+= Mesa-glx-[0-9]*
|
||||
CONFLICTS+= Mesa<3.2.1
|
||||
WRKSRC= ${WRKDIR}/Mesa-7.9.2
|
||||
USE_TOOLS+= autoreconf automake autoconf gmake pkg-config makedepend
|
||||
USE_LIBTOOL= yes
|
||||
USE_LANGUAGES= c c++
|
||||
GNU_CONFIGURE= YES
|
||||
|
||||
PKGCONFIG_OVERRIDE+= src/glut/glx/glut.pc.in
|
||||
|
||||
PKGCONFIG_OVERRIDE+= src/glut/glx/glut.pc.in
|
||||
CONFIGURE_ENV+= "EXTRA_LIB_PATH=${COMPILER_RPATH_FLAG}${X11BASE}/lib -L${X11BASE}/lib"
|
||||
|
||||
.include "../../graphics/Mesa/Makefile.lib"
|
||||
|
||||
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=${MESA_PKGVERSION}
|
||||
BUILDLINK_API_DEPENDS.glu+= glu>=${MESA_PKGVERSION}
|
||||
pre-configure:
|
||||
cd ${WRKSRC} && autoreconf -vif
|
||||
|
||||
.include "../../graphics/MesaLib/buildlink3.mk"
|
||||
.include "../../graphics/glu/buildlink3.mk"
|
||||
.include "../../x11/libXmu/buildlink3.mk"
|
||||
.include "../../x11/libXi/buildlink3.mk"
|
||||
.include "../../graphics/glu/buildlink3.mk"
|
||||
|
||||
CONFIGURE_ARGS+= --enable-glu
|
||||
CONFIGURE_ARGS+= --enable-glut
|
||||
CONFIGURE_ARGS+= --disable-glw
|
||||
CONFIGURE_ARGS+= --with-dri-drivers=""
|
||||
|
||||
BUILD_DIRS= src/glut/glx
|
||||
BUILD_TARGET= default
|
||||
|
||||
INSTALL_DIRS= src/glut/glx
|
||||
INSTALLATION_DIRS+= include/GL
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/include/GL/glut.h \
|
||||
${DESTDIR}${PREFIX}/include/GL/glut.h
|
||||
${INSTALL_DATA} ${WRKSRC}/include/GL/glutf90.h \
|
||||
${DESTDIR}${PREFIX}/include/GL/glutf90.h
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
@comment $NetBSD: PLIST,v 1.15 2013/05/16 14:43:13 richard Exp $
|
||||
@comment $NetBSD: PLIST,v 1.16 2015/04/03 01:00:52 tnn Exp $
|
||||
include/GL/glut.h
|
||||
include/GL/glutf90.h
|
||||
lib/libglut.so
|
||||
lib/libglut.so.3
|
||||
lib/libglut.so.3.7.1
|
||||
lib/libglut.la
|
||||
lib/pkgconfig/glut.pc
|
||||
|
||||
17
graphics/glut/distinfo
Normal file
17
graphics/glut/distinfo
Normal file
@@ -0,0 +1,17 @@
|
||||
$NetBSD: distinfo,v 1.20 2015/04/06 07:07:43 tnn Exp $
|
||||
|
||||
SHA1 (MesaGLUT-7.9.2.tar.bz2) = d0dc573cb7897de514ee29386be944724e17e979
|
||||
RMD160 (MesaGLUT-7.9.2.tar.bz2) = ef00dfa09b563a8ffeeb3523b6d06b66d172983f
|
||||
Size (MesaGLUT-7.9.2.tar.bz2) = 200406 bytes
|
||||
SHA1 (patch-Makefile) = 526f638679c2a78383ae1358f281d4fb370244c4
|
||||
SHA1 (patch-acinclude.m4) = f8a00cf60fe3e684fc167e7c4a7449c8ee13f7a5
|
||||
SHA1 (patch-bin_config.guess) = 81254c60a647f41f01847b3ff5328546fce8f5a2
|
||||
SHA1 (patch-bin_config.sub) = ac4559d14ed8780a79b94dfd4bbd2f9b658d7808
|
||||
SHA1 (patch-bin_install-sh) = 9deb7c17f2e4ba621f1bb41e8fb1bb3cc058ac7e
|
||||
SHA1 (patch-bin_version.mk) = 4009abc4f73da7d51925d268c5838578083dbeb3
|
||||
SHA1 (patch-configs_autoconf.in) = 36fc1b24dea24a141b4c92d5ab4b525fddee295d
|
||||
SHA1 (patch-configs_default) = 22a57d6770b41fff19f3e10c15c766fd5ea8c738
|
||||
SHA1 (patch-configure.ac) = 6f7066c73a362882ba87a1336df0214e5020b80f
|
||||
SHA1 (patch-src_Makefile) = 01301af232cf843dcde85de87da321242bf457fc
|
||||
SHA1 (patch-src_glut_glx_Makefile) = 9d052c85f7e6f034a351a57487e4af8318349565
|
||||
SHA1 (patch-src_glut_glx_glutint.h) = a4fb4758ae3fe42c93e2264e51a4d51794f839f7
|
||||
271
graphics/glut/patches/patch-Makefile
Normal file
271
graphics/glut/patches/patch-Makefile
Normal file
@@ -0,0 +1,271 @@
|
||||
$NetBSD: patch-Makefile,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- Makefile.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ Makefile
|
||||
@@ -0,0 +1,264 @@
|
||||
+# Top-level Mesa makefile
|
||||
+
|
||||
+TOP = .
|
||||
+
|
||||
+SUBDIRS = src
|
||||
+
|
||||
+
|
||||
+# The git command below generates an empty string when we're not
|
||||
+# building in a GIT tree (i.e., building from a release tarball).
|
||||
+default: $(TOP)/configs/current
|
||||
+ @for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE)) || exit 1 ; \
|
||||
+ fi \
|
||||
+ done
|
||||
+
|
||||
+all: default
|
||||
+
|
||||
+
|
||||
+clean:
|
||||
+ -@touch $(TOP)/configs/current
|
||||
+ -@for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE) clean) ; \
|
||||
+ fi \
|
||||
+ done
|
||||
+ -@test -s $(TOP)/configs/current || rm -f $(TOP)/configs/current
|
||||
+
|
||||
+
|
||||
+realclean: clean
|
||||
+ -rm -rf lib*
|
||||
+ -rm -f $(TOP)/configs/current
|
||||
+ -rm -f $(TOP)/configs/autoconf
|
||||
+ -rm -rf autom4te.cache
|
||||
+ -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
|
||||
+ -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
|
||||
+
|
||||
+
|
||||
+distclean: realclean
|
||||
+
|
||||
+
|
||||
+install:
|
||||
+ @for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE) install) || exit 1 ; \
|
||||
+ fi \
|
||||
+ done
|
||||
+
|
||||
+
|
||||
+.PHONY: default doxygen clean realclean distclean install
|
||||
+
|
||||
+# If there's no current configuration file
|
||||
+$(TOP)/configs/current:
|
||||
+ @echo
|
||||
+ @echo
|
||||
+ @echo "Please choose a configuration from the following list:"
|
||||
+ @ls -1 $(TOP)/configs | grep -v "current\|default\|CVS\|autoconf.*"
|
||||
+ @echo
|
||||
+ @echo "Then type 'make <config>' (ex: 'make linux-x86')"
|
||||
+ @echo
|
||||
+ @echo "Or, run './configure' then 'make'"
|
||||
+ @echo "See './configure --help' for details"
|
||||
+ @echo
|
||||
+ @echo "(ignore the following error message)"
|
||||
+ @exit 1
|
||||
+
|
||||
+
|
||||
+# Rules to set/install a specific build configuration
|
||||
+aix \
|
||||
+aix-64 \
|
||||
+aix-64-static \
|
||||
+aix-gcc \
|
||||
+aix-static \
|
||||
+autoconf \
|
||||
+bluegene-osmesa \
|
||||
+bluegene-xlc-osmesa \
|
||||
+beos \
|
||||
+catamount-osmesa-pgi \
|
||||
+darwin \
|
||||
+darwin-fat-32bit \
|
||||
+darwin-fat-all \
|
||||
+freebsd \
|
||||
+freebsd-dri \
|
||||
+freebsd-dri-amd64 \
|
||||
+freebsd-dri-x86 \
|
||||
+hpux10 \
|
||||
+hpux10-gcc \
|
||||
+hpux10-static \
|
||||
+hpux11-32 \
|
||||
+hpux11-32-static \
|
||||
+hpux11-32-static-nothreads \
|
||||
+hpux11-64 \
|
||||
+hpux11-64-static \
|
||||
+hpux11-ia64 \
|
||||
+hpux11-ia64-static \
|
||||
+hpux9 \
|
||||
+hpux9-gcc \
|
||||
+irix6-64 \
|
||||
+irix6-64-static \
|
||||
+irix6-n32 \
|
||||
+irix6-n32-static \
|
||||
+irix6-o32 \
|
||||
+irix6-o32-static \
|
||||
+linux \
|
||||
+linux-i965 \
|
||||
+linux-alpha \
|
||||
+linux-alpha-static \
|
||||
+linux-cell \
|
||||
+linux-cell-debug \
|
||||
+linux-debug \
|
||||
+linux-dri \
|
||||
+linux-dri-debug \
|
||||
+linux-dri-x86 \
|
||||
+linux-dri-x86-64 \
|
||||
+linux-dri-ppc \
|
||||
+linux-dri-xcb \
|
||||
+linux-egl \
|
||||
+linux-indirect \
|
||||
+linux-fbdev \
|
||||
+linux-ia64-icc \
|
||||
+linux-ia64-icc-static \
|
||||
+linux-icc \
|
||||
+linux-icc-static \
|
||||
+linux-llvm \
|
||||
+linux-llvm-debug \
|
||||
+linux-opengl-es \
|
||||
+linux-osmesa \
|
||||
+linux-osmesa-static \
|
||||
+linux-osmesa16 \
|
||||
+linux-osmesa16-static \
|
||||
+linux-osmesa32 \
|
||||
+linux-ppc \
|
||||
+linux-ppc-static \
|
||||
+linux-profile \
|
||||
+linux-sparc \
|
||||
+linux-sparc5 \
|
||||
+linux-static \
|
||||
+linux-ultrasparc \
|
||||
+linux-tcc \
|
||||
+linux-x86 \
|
||||
+linux-x86-debug \
|
||||
+linux-x86-32 \
|
||||
+linux-x86-64 \
|
||||
+linux-x86-64-debug \
|
||||
+linux-x86-64-profile \
|
||||
+linux-x86-64-static \
|
||||
+linux-x86-profile \
|
||||
+linux-x86-static \
|
||||
+netbsd \
|
||||
+openbsd \
|
||||
+osf1 \
|
||||
+osf1-static \
|
||||
+solaris-x86 \
|
||||
+solaris-x86-gcc \
|
||||
+solaris-x86-gcc-static \
|
||||
+sunos4 \
|
||||
+sunos4-gcc \
|
||||
+sunos4-static \
|
||||
+sunos5 \
|
||||
+sunos5-gcc \
|
||||
+sunos5-64-gcc \
|
||||
+sunos5-smp \
|
||||
+sunos5-v8 \
|
||||
+sunos5-v8-static \
|
||||
+sunos5-v9 \
|
||||
+sunos5-v9-static \
|
||||
+sunos5-v9-cc-g++ \
|
||||
+ultrix-gcc:
|
||||
+ @ if test -f configs/current -o -L configs/current; then \
|
||||
+ if ! cmp configs/$@ configs/current > /dev/null; then \
|
||||
+ echo "Please run 'make realclean' before changing configs" ; \
|
||||
+ exit 1 ; \
|
||||
+ fi ; \
|
||||
+ else \
|
||||
+ cd configs && rm -f current && ln -s $@ current ; \
|
||||
+ fi
|
||||
+ $(MAKE) default
|
||||
+
|
||||
+
|
||||
+# Rules for making release tarballs
|
||||
+
|
||||
+VERSION=8.0.1
|
||||
+DIRECTORY = MesaGLUT-$(VERSION)
|
||||
+GLUT_NAME = MesaGLUT-$(VERSION)
|
||||
+
|
||||
+GLUT_FILES = \
|
||||
+ $(DIRECTORY)/Makefile* \
|
||||
+ $(DIRECTORY)/configure \
|
||||
+ $(DIRECTORY)/configure.ac \
|
||||
+ $(DIRECTORY)/acinclude.m4 \
|
||||
+ $(DIRECTORY)/aclocal.m4 \
|
||||
+ $(DIRECTORY)/bin/config.guess \
|
||||
+ $(DIRECTORY)/bin/config.sub \
|
||||
+ $(DIRECTORY)/bin/install-sh \
|
||||
+ $(DIRECTORY)/bin/mklib \
|
||||
+ $(DIRECTORY)/bin/minstall \
|
||||
+ $(DIRECTORY)/bin/version.mk \
|
||||
+ $(DIRECTORY)/configs/[a-z]* \
|
||||
+ $(DIRECTORY)/include/GL/glut.h \
|
||||
+ $(DIRECTORY)/include/GL/glutf90.h \
|
||||
+ $(DIRECTORY)/src/glut/glx/Makefile* \
|
||||
+ $(DIRECTORY)/src/glut/glx/SConscript \
|
||||
+ $(DIRECTORY)/src/glut/glx/depend \
|
||||
+ $(DIRECTORY)/src/glut/glx/glut.pc.in \
|
||||
+ $(DIRECTORY)/src/glut/glx/*def \
|
||||
+ $(DIRECTORY)/src/glut/glx/*.[ch] \
|
||||
+ $(DIRECTORY)/src/glut/beos/*.[ch] \
|
||||
+ $(DIRECTORY)/src/glut/beos/*.cpp \
|
||||
+ $(DIRECTORY)/src/glut/beos/Makefile
|
||||
+
|
||||
+DEPEND_FILES = \
|
||||
+ $(TOP)/src/glut/glx/depend \
|
||||
+
|
||||
+
|
||||
+# Everything for new a Mesa GLUT release:
|
||||
+ARCHIVES = \
|
||||
+ $(GLUT_NAME).tar.gz \
|
||||
+ $(GLUT_NAME).tar.bz2 \
|
||||
+ $(GLUT_NAME).zip
|
||||
+
|
||||
+tarballs: md5
|
||||
+ rm -f $(GLUT_NAME).tar
|
||||
+
|
||||
+# Helper for autoconf builds
|
||||
+ACLOCAL = aclocal
|
||||
+ACLOCAL_FLAGS =
|
||||
+AUTOCONF = autoconf
|
||||
+AC_FLAGS =
|
||||
+aclocal.m4: configure.ac acinclude.m4
|
||||
+ $(ACLOCAL) $(ACLOCAL_FLAGS)
|
||||
+configure: rm_depend configure.ac aclocal.m4 acinclude.m4
|
||||
+ $(AUTOCONF) $(AC_FLAGS)
|
||||
+
|
||||
+rm_depend:
|
||||
+ @for dep in $(DEPEND_FILES) ; do \
|
||||
+ rm -f $$dep ; \
|
||||
+ touch $$dep ; \
|
||||
+ done
|
||||
+
|
||||
+rm_config:
|
||||
+ rm -f configs/current
|
||||
+ rm -f configs/autoconf
|
||||
+
|
||||
+$(GLUT_NAME).tar: rm_depend
|
||||
+ cd .. ; tar -cf $(DIRECTORY)/$(GLUT_NAME).tar $(GLUT_FILES)
|
||||
+
|
||||
+$(GLUT_NAME).tar.gz: $(GLUT_NAME).tar
|
||||
+ gzip --stdout --best $(GLUT_NAME).tar > $(GLUT_NAME).tar.gz
|
||||
+
|
||||
+$(GLUT_NAME).tar.bz2: $(GLUT_NAME).tar
|
||||
+ bzip2 --stdout --best $(GLUT_NAME).tar > $(GLUT_NAME).tar.bz2
|
||||
+
|
||||
+$(GLUT_NAME).zip:
|
||||
+ rm -f $(GLUT_NAME).zip ; \
|
||||
+ cd .. ; \
|
||||
+ zip -qr $(GLUT_NAME).zip $(GLUT_FILES) ; \
|
||||
+ mv $(GLUT_NAME).zip $(DIRECTORY)
|
||||
+
|
||||
+md5: $(ARCHIVES)
|
||||
+ @-md5sum $(GLUT_NAME).tar.gz
|
||||
+ @-md5sum $(GLUT_NAME).tar.bz2
|
||||
+ @-md5sum $(GLUT_NAME).zip
|
||||
+
|
||||
+.PHONY: tarballs rm_depend rm_config md5
|
||||
126
graphics/glut/patches/patch-acinclude.m4
Normal file
126
graphics/glut/patches/patch-acinclude.m4
Normal file
@@ -0,0 +1,126 @@
|
||||
$NetBSD: patch-acinclude.m4,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- acinclude.m4.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ acinclude.m4
|
||||
@@ -0,0 +1,119 @@
|
||||
+# A few convenience macros for Mesa, mostly to keep all the platform
|
||||
+# specifics out of configure.ac.
|
||||
+
|
||||
+# MESA_PIC_FLAGS()
|
||||
+#
|
||||
+# Find out whether to build PIC code using the option --enable-pic and
|
||||
+# the configure enable_static/enable_shared settings. If PIC is needed,
|
||||
+# figure out the necessary flags for the platform and compiler.
|
||||
+#
|
||||
+# The platform checks have been shamelessly taken from libtool and
|
||||
+# stripped down to just what's needed for Mesa. See _LT_COMPILER_PIC in
|
||||
+# /usr/share/aclocal/libtool.m4 or
|
||||
+# http://git.savannah.gnu.org/gitweb/?p=libtool.git;a=blob;f=libltdl/m4/libtool.m4;hb=HEAD
|
||||
+#
|
||||
+AC_DEFUN([MESA_PIC_FLAGS],
|
||||
+[AC_REQUIRE([AC_PROG_CC])dnl
|
||||
+AC_ARG_VAR([PIC_FLAGS], [compiler flags for PIC code])
|
||||
+AC_ARG_ENABLE([pic],
|
||||
+ [AS_HELP_STRING([--disable-pic],
|
||||
+ [compile PIC objects @<:@default=enabled for shared builds
|
||||
+ on supported platforms@:>@])],
|
||||
+ [enable_pic="$enableval"
|
||||
+ test "x$enable_pic" = x && enable_pic=auto],
|
||||
+ [enable_pic=auto])
|
||||
+# disable PIC by default for static builds
|
||||
+if test "$enable_pic" = auto && test "$enable_static" = yes; then
|
||||
+ enable_pic=no
|
||||
+fi
|
||||
+# if PIC hasn't been explicitly disabled, try to figure out the flags
|
||||
+if test "$enable_pic" != no; then
|
||||
+ AC_MSG_CHECKING([for $CC option to produce PIC])
|
||||
+ # allow the user's flags to override
|
||||
+ if test "x$PIC_FLAGS" = x; then
|
||||
+ # see if we're using GCC
|
||||
+ if test "x$GCC" = xyes; then
|
||||
+ case "$host_os" in
|
||||
+ aix*|beos*|cygwin*|irix5*|irix6*|osf3*|osf4*|osf5*)
|
||||
+ # PIC is the default for these OSes.
|
||||
+ ;;
|
||||
+ mingw*|os2*|pw32*)
|
||||
+ # This hack is so that the source file can tell whether
|
||||
+ # it is being built for inclusion in a dll (and should
|
||||
+ # export symbols for example).
|
||||
+ PIC_FLAGS="-DDLL_EXPORT"
|
||||
+ ;;
|
||||
+ darwin*|rhapsody*)
|
||||
+ # PIC is the default on this platform
|
||||
+ # Common symbols not allowed in MH_DYLIB files
|
||||
+ PIC_FLAGS="-fno-common"
|
||||
+ ;;
|
||||
+ hpux*)
|
||||
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX,
|
||||
+ # but not for PA HP-UX.
|
||||
+ case $host_cpu in
|
||||
+ hppa*64*|ia64*)
|
||||
+ ;;
|
||||
+ *)
|
||||
+ PIC_FLAGS="-fPIC"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ *)
|
||||
+ # Everyone else on GCC uses -fPIC
|
||||
+ PIC_FLAGS="-fPIC"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ else # !GCC
|
||||
+ case "$host_os" in
|
||||
+ hpux9*|hpux10*|hpux11*)
|
||||
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX,
|
||||
+ # but not for PA HP-UX.
|
||||
+ case "$host_cpu" in
|
||||
+ hppa*64*|ia64*)
|
||||
+ # +Z the default
|
||||
+ ;;
|
||||
+ *)
|
||||
+ PIC_FLAGS="+Z"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ linux*|k*bsd*-gnu)
|
||||
+ case `basename "$CC"` in
|
||||
+ icc*|ecc*|ifort*)
|
||||
+ PIC_FLAGS="-KPIC"
|
||||
+ ;;
|
||||
+ pgcc*|pgf77*|pgf90*|pgf95*)
|
||||
+ # Portland Group compilers (*not* the Pentium gcc
|
||||
+ # compiler, which looks to be a dead project)
|
||||
+ PIC_FLAGS="-fpic"
|
||||
+ ;;
|
||||
+ ccc*)
|
||||
+ # All Alpha code is PIC.
|
||||
+ ;;
|
||||
+ xl*)
|
||||
+ # IBM XL C 8.0/Fortran 10.1 on PPC
|
||||
+ PIC_FLAGS="-qpic"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ case `$CC -V 2>&1 | sed 5q` in
|
||||
+ *Sun\ C*|*Sun\ F*)
|
||||
+ # Sun C 5.9 or Sun Fortran
|
||||
+ PIC_FLAGS="-KPIC"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ esac
|
||||
+ ;;
|
||||
+ solaris*)
|
||||
+ PIC_FLAGS="-KPIC"
|
||||
+ ;;
|
||||
+ sunos4*)
|
||||
+ PIC_FLAGS="-PIC"
|
||||
+ ;;
|
||||
+ esac
|
||||
+ fi # GCC
|
||||
+ fi # PIC_FLAGS
|
||||
+ AC_MSG_RESULT([$PIC_FLAGS])
|
||||
+fi
|
||||
+AC_SUBST([PIC_FLAGS])
|
||||
+])# MESA_PIC_FLAGS
|
||||
1442
graphics/glut/patches/patch-bin_config.guess
Normal file
1442
graphics/glut/patches/patch-bin_config.guess
Normal file
File diff suppressed because it is too large
Load Diff
1814
graphics/glut/patches/patch-bin_config.sub
Normal file
1814
graphics/glut/patches/patch-bin_config.sub
Normal file
File diff suppressed because it is too large
Load Diff
119
graphics/glut/patches/patch-bin_install-sh
Normal file
119
graphics/glut/patches/patch-bin_install-sh
Normal file
@@ -0,0 +1,119 @@
|
||||
$NetBSD: patch-bin_install-sh,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- bin/install-sh.orig 2015-03-23 12:44:36.000000000 +0000
|
||||
+++ bin/install-sh
|
||||
@@ -0,0 +1,112 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+
|
||||
+# A minimal replacement for 'install' that supports installing symbolic links.
|
||||
+# Only a limited number of options are supported:
|
||||
+# -d dir Create a directory
|
||||
+# -m mode Sets a file's mode when installing
|
||||
+
|
||||
+
|
||||
+# If these commands aren't portable, we'll need some "if (arch)" type stuff
|
||||
+SYMLINK="ln -s"
|
||||
+MKDIR="mkdir -p"
|
||||
+RM="rm -f"
|
||||
+
|
||||
+MODE=""
|
||||
+
|
||||
+if [ "$1" = "-d" ] ; then
|
||||
+ # make a directory path
|
||||
+ $MKDIR "$2"
|
||||
+ exit 0
|
||||
+fi
|
||||
+
|
||||
+if [ "$1" = "-m" ] ; then
|
||||
+ # set file mode
|
||||
+ MODE=$2
|
||||
+ shift 2
|
||||
+fi
|
||||
+
|
||||
+# install file(s) into destination
|
||||
+if [ $# -ge 2 ] ; then
|
||||
+
|
||||
+ # Last cmd line arg is the dest dir
|
||||
+ for FILE in $@ ; do
|
||||
+ DESTDIR="$FILE"
|
||||
+ done
|
||||
+
|
||||
+ # Loop over args, moving them to DEST directory
|
||||
+ I=1
|
||||
+ for FILE in $@ ; do
|
||||
+ if [ $I = $# ] ; then
|
||||
+ # stop, don't want to install $DEST into $DEST
|
||||
+ exit 0
|
||||
+ fi
|
||||
+
|
||||
+ DEST=$DESTDIR
|
||||
+
|
||||
+ # On CYGWIN, because DLLs are loaded by the native Win32 loader,
|
||||
+ # they are installed in the executable path. Stub libraries used
|
||||
+ # only for linking are installed in the library path
|
||||
+ case `uname` in
|
||||
+ CYGWIN*)
|
||||
+ case $FILE in
|
||||
+ *.dll)
|
||||
+ DEST="$DEST/../bin"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+ *)
|
||||
+ ;;
|
||||
+ esac
|
||||
+
|
||||
+ PWDSAVE=`pwd`
|
||||
+
|
||||
+ # determine file's type
|
||||
+ if [ -h "$FILE" ] ; then
|
||||
+ #echo $FILE is a symlink
|
||||
+ # Unfortunately, cp -d isn't universal so we have to
|
||||
+ # use a work-around.
|
||||
+
|
||||
+ # Use ls -l to find the target that the link points to
|
||||
+ LL=`ls -l "$FILE"`
|
||||
+ for L in $LL ; do
|
||||
+ TARGET=$L
|
||||
+ done
|
||||
+ #echo $FILE is a symlink pointing to $TARGET
|
||||
+
|
||||
+ FILE=`basename "$FILE"`
|
||||
+ # Go to $DEST and make the link
|
||||
+ cd "$DEST" # pushd
|
||||
+ $RM "$FILE"
|
||||
+ $SYMLINK "$TARGET" "$FILE"
|
||||
+ cd "$PWDSAVE" # popd
|
||||
+
|
||||
+ elif [ -f "$FILE" ] ; then
|
||||
+ #echo "$FILE" is a regular file
|
||||
+ # Only copy if the files differ
|
||||
+ if ! cmp -s $FILE $DEST/`basename $FILE`; then
|
||||
+ $RM "$DEST/`basename $FILE`"
|
||||
+ cp "$FILE" "$DEST"
|
||||
+ fi
|
||||
+ if [ $MODE ] ; then
|
||||
+ FILE=`basename "$FILE"`
|
||||
+ chmod $MODE "$DEST/$FILE"
|
||||
+ fi
|
||||
+ else
|
||||
+ echo "Unknown type of argument: " "$FILE"
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ I=`expr $I + 1`
|
||||
+ done
|
||||
+
|
||||
+ exit 0
|
||||
+fi
|
||||
+
|
||||
+# If we get here, we didn't find anything to do
|
||||
+echo "Usage:"
|
||||
+echo " install -d dir Create named directory"
|
||||
+echo " install [-m mode] file [...] dest Install files in destination"
|
||||
+
|
||||
24
graphics/glut/patches/patch-bin_version.mk
Normal file
24
graphics/glut/patches/patch-bin_version.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
$NetBSD: patch-bin_version.mk,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- bin/version.mk.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ bin/version.mk
|
||||
@@ -0,0 +1,17 @@
|
||||
+#!/usr/bin/make -sf
|
||||
+# Print the various Mesa version fields. This is mostly used to add the
|
||||
+# version to configure.
|
||||
+
|
||||
+# This reflects that this script is usually called from the toplevel
|
||||
+TOP = .
|
||||
+
|
||||
+include $(TOP)/configs/default
|
||||
+
|
||||
+version:
|
||||
+ @echo $(MESA_VERSION)
|
||||
+major:
|
||||
+ @echo $(MESA_MAJOR)
|
||||
+minor:
|
||||
+ @echo $(MESA_MINOR)
|
||||
+tiny:
|
||||
+ @echo $(MESA_TINY)
|
||||
108
graphics/glut/patches/patch-configs_autoconf.in
Normal file
108
graphics/glut/patches/patch-configs_autoconf.in
Normal file
@@ -0,0 +1,108 @@
|
||||
$NetBSD: patch-configs_autoconf.in,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- configs/autoconf.in.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ configs/autoconf.in
|
||||
@@ -0,0 +1,101 @@
|
||||
+# Autoconf configuration
|
||||
+
|
||||
+# Pull in the defaults
|
||||
+include $(TOP)/configs/default
|
||||
+
|
||||
+# This is generated by configure
|
||||
+CONFIG_NAME = autoconf
|
||||
+
|
||||
+# Compiler and flags
|
||||
+CC = @CC@
|
||||
+CXX = @CXX@
|
||||
+OPT_FLAGS = @OPT_FLAGS@
|
||||
+ARCH_FLAGS = @ARCH_FLAGS@
|
||||
+PIC_FLAGS = @PIC_FLAGS@
|
||||
+DEFINES = @DEFINES@
|
||||
+API_DEFINES = @API_DEFINES@
|
||||
+SHARED_GLAPI = @SHARED_GLAPI@
|
||||
+CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \
|
||||
+ $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||
+CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \
|
||||
+ $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||
+CFLAGS = $(CFLAGS_NOVISIBILITY) @VISIBILITY_CFLAGS@
|
||||
+CXXFLAGS = $(CXXFLAGS_NOVISIBILITY) @VISIBILITY_CXXFLAGS@
|
||||
+LDFLAGS = @LDFLAGS@
|
||||
+EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
|
||||
+X11_LIBS = @X11_LIBS@
|
||||
+X11_CFLAGS = @X11_CFLAGS@
|
||||
+GLUT_CFLAGS = @GLUT_CFLAGS@
|
||||
+
|
||||
+# dlopen
|
||||
+DLOPEN_LIBS = @DLOPEN_LIBS@
|
||||
+
|
||||
+# Source selection
|
||||
+
|
||||
+# Misc tools and flags
|
||||
+MAKE = @MAKE@
|
||||
+SHELL = @SHELL@
|
||||
+MKLIB_OPTIONS = @MKLIB_OPTIONS@
|
||||
+MKDEP = @MKDEP@
|
||||
+MKDEP_OPTIONS = @MKDEP_OPTIONS@
|
||||
+INSTALL = @INSTALL@
|
||||
+
|
||||
+# Python and flags (generally only needed by the developers)
|
||||
+PYTHON2 = @PYTHON2@
|
||||
+
|
||||
+# Flex and Bison for GLSL compiler
|
||||
+FLEX = @FLEX@
|
||||
+BISON = @BISON@
|
||||
+
|
||||
+# Library names (base name)
|
||||
+GL_LIB = GL
|
||||
+GLU_LIB = GLU
|
||||
+GLUT_LIB = glut
|
||||
+GLAPI_LIB = glapi
|
||||
+
|
||||
+# Library names (actual file names)
|
||||
+GL_LIB_NAME = @GL_LIB_NAME@
|
||||
+GLU_LIB_NAME = @GLU_LIB_NAME@
|
||||
+GLUT_LIB_NAME = @GLUT_LIB_NAME@
|
||||
+GLAPI_LIB_NAME = @GLAPI_LIB_NAME@
|
||||
+
|
||||
+# Globs used to install the lib and all symlinks
|
||||
+GL_LIB_GLOB = @GL_LIB_GLOB@
|
||||
+GLU_LIB_GLOB = @GLU_LIB_GLOB@
|
||||
+GLUT_LIB_GLOB = @GLUT_LIB_GLOB@
|
||||
+GLAPI_LIB_GLOB = @GLAPI_LIB_GLOB@
|
||||
+
|
||||
+# Directories to build
|
||||
+LIB_DIR = @LIB_DIR@
|
||||
+SRC_DIRS = @SRC_DIRS@
|
||||
+GLU_DIRS = @GLU_DIRS@
|
||||
+
|
||||
+# Dependencies
|
||||
+X11_INCLUDES = @X11_INCLUDES@
|
||||
+
|
||||
+# Library/program dependencies
|
||||
+GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
|
||||
+
|
||||
+# Autoconf directories
|
||||
+prefix = @prefix@
|
||||
+exec_prefix = @exec_prefix@
|
||||
+libdir = @libdir@
|
||||
+includedir = @includedir@
|
||||
+
|
||||
+# Installation directories (for make install)
|
||||
+INSTALL_DIR = $(prefix)
|
||||
+INSTALL_LIB_DIR = $(libdir)
|
||||
+INSTALL_INC_DIR = $(includedir)
|
||||
+
|
||||
+# pkg-config substitutions
|
||||
+GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
|
||||
+GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
|
||||
+GL_PC_CFLAGS = @GL_PC_CFLAGS@
|
||||
+GLU_PC_REQ = @GLU_PC_REQ@
|
||||
+GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@
|
||||
+GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@
|
||||
+GLU_PC_CFLAGS = @GLU_PC_CFLAGS@
|
||||
+GLUT_PC_REQ_PRIV = @GLUT_PC_REQ_PRIV@
|
||||
+GLUT_PC_LIB_PRIV = @GLUT_PC_LIB_PRIV@
|
||||
+GLUT_PC_CFLAGS = @GLUT_PC_CFLAGS@
|
||||
+
|
||||
212
graphics/glut/patches/patch-configs_default
Normal file
212
graphics/glut/patches/patch-configs_default
Normal file
@@ -0,0 +1,212 @@
|
||||
$NetBSD: patch-configs_default,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- configs/default.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ configs/default
|
||||
@@ -0,0 +1,205 @@
|
||||
+# Default/template configuration
|
||||
+
|
||||
+# This is included by other config files which may override some
|
||||
+# of these variables.
|
||||
+# Think of this as a base class from which configs are derived.
|
||||
+
|
||||
+
|
||||
+CONFIG_NAME = default
|
||||
+
|
||||
+# Version info
|
||||
+MESA_MAJOR=7
|
||||
+MESA_MINOR=12
|
||||
+MESA_TINY=0
|
||||
+MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
|
||||
+
|
||||
+# external projects. This should be useless now that we use libdrm.
|
||||
+DRM_SOURCE_PATH=$(TOP)/../drm
|
||||
+
|
||||
+# Compiler and flags
|
||||
+CC = cc
|
||||
+CXX = CC
|
||||
+HOST_CC = $(CC)
|
||||
+CFLAGS = -O
|
||||
+CXXFLAGS = -O
|
||||
+LDFLAGS =
|
||||
+HOST_CFLAGS = $(CFLAGS)
|
||||
+GLU_CFLAGS =
|
||||
+GLX_TLS = no
|
||||
+
|
||||
+# Compiler for building demos/tests/etc
|
||||
+APP_CC = $(CC)
|
||||
+APP_CXX = $(CXX)
|
||||
+
|
||||
+# Misc tools and flags
|
||||
+SHELL = /bin/sh
|
||||
+MKLIB = $(SHELL) $(TOP)/bin/mklib
|
||||
+MKLIB_OPTIONS =
|
||||
+MKDEP = makedepend
|
||||
+MKDEP_OPTIONS = -fdepend
|
||||
+MAKE = make
|
||||
+FLEX = flex
|
||||
+BISON = bison
|
||||
+
|
||||
+# Use MINSTALL for installing libraries, INSTALL for everything else
|
||||
+MINSTALL = $(SHELL) $(TOP)/bin/minstall
|
||||
+INSTALL = $(MINSTALL)
|
||||
+
|
||||
+# Tools for regenerating glapi (generally only needed by the developers)
|
||||
+PYTHON2 = python
|
||||
+PYTHON_FLAGS = -t -O -O
|
||||
+INDENT = indent
|
||||
+INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
|
||||
+
|
||||
+# Library names (base name)
|
||||
+GL_LIB = GL
|
||||
+GLU_LIB = GLU
|
||||
+GLUT_LIB = glut
|
||||
+GLW_LIB = GLw
|
||||
+OSMESA_LIB = OSMesa
|
||||
+EGL_LIB = EGL
|
||||
+GLESv1_CM_LIB = GLESv1_CM
|
||||
+GLESv2_LIB = GLESv2
|
||||
+VG_LIB = OpenVG
|
||||
+GLAPI_LIB = glapi
|
||||
+WAYLAND_EGL_LIB = wayland-egl
|
||||
+GBM_LIB = gbm
|
||||
+
|
||||
+# Library names (actual file names)
|
||||
+GL_LIB_NAME = lib$(GL_LIB).so
|
||||
+GLU_LIB_NAME = lib$(GLU_LIB).so
|
||||
+GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
||||
+GLW_LIB_NAME = lib$(GLW_LIB).so
|
||||
+OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
||||
+EGL_LIB_NAME = lib$(EGL_LIB).so
|
||||
+GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so
|
||||
+GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
|
||||
+VG_LIB_NAME = lib$(VG_LIB).so
|
||||
+GLAPI_LIB_NAME = lib$(GLAPI_LIB).so
|
||||
+WAYLAND_EGL_LIB_NAME = lib$(WAYLAND_EGL_LIB).so
|
||||
+GBM_LIB_NAME = lib$(GBM_LIB).so
|
||||
+
|
||||
+# globs used to install the lib and all symlinks
|
||||
+GL_LIB_GLOB = $(GL_LIB_NAME)*
|
||||
+GLU_LIB_GLOB = $(GLU_LIB_NAME)*
|
||||
+GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
|
||||
+GLW_LIB_GLOB = $(GLW_LIB_NAME)*
|
||||
+OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
|
||||
+EGL_LIB_GLOB = $(EGL_LIB_NAME)*
|
||||
+GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)*
|
||||
+GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
|
||||
+VG_LIB_GLOB = $(VG_LIB_NAME)*
|
||||
+GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)*
|
||||
+WAYLAND_EGL_LIB_GLOB = $(WAYLAND_EGL_LIB_NAME)*
|
||||
+GBM_LIB_GLOB = $(GBM_LIB_NAME)*
|
||||
+
|
||||
+DRI_CFLAGS = $(CFLAGS)
|
||||
+DRI_CXXFLAGS = $(CXXFLAGS)
|
||||
+
|
||||
+# Optional assembly language optimization files for libGL
|
||||
+MESA_ASM_SOURCES =
|
||||
+
|
||||
+# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
|
||||
+# order to build the Motif widget too)
|
||||
+GLW_SOURCES = GLwDrawA.c
|
||||
+MOTIF_CFLAGS = -I/usr/include/Motif1.2
|
||||
+
|
||||
+
|
||||
+# Directories to build
|
||||
+LIB_DIR = lib
|
||||
+SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
|
||||
+ gallium egl gallium/winsys gallium/targets glu glut/glx glw
|
||||
+GLU_DIRS = sgi
|
||||
+DRIVER_DIRS = x11 osmesa
|
||||
+
|
||||
+# EGL drivers to build
|
||||
+EGL_DRIVERS_DIRS = glx
|
||||
+
|
||||
+# gbm backends to build
|
||||
+GBM_BACKEND_DIRS = dri
|
||||
+
|
||||
+# Gallium directories and
|
||||
+GALLIUM_DIRS = auxiliary drivers state_trackers
|
||||
+GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
|
||||
+GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad i915 i965 svga r300 nvfx nv50 failover
|
||||
+GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
|
||||
+GALLIUM_WINSYS_DIRS = sw sw/xlib
|
||||
+GALLIUM_TARGET_DIRS = libgl-xlib
|
||||
+GALLIUM_STATE_TRACKERS_DIRS = glx vega
|
||||
+
|
||||
+# native platforms EGL should support
|
||||
+EGL_PLATFORMS = x11
|
||||
+EGL_CLIENT_APIS = $(GL_LIB)
|
||||
+
|
||||
+# Library dependencies
|
||||
+#EXTRA_LIB_PATH ?=
|
||||
+GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
|
||||
+EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -ldl -lpthread
|
||||
+OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
|
||||
+GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
|
||||
+GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
|
||||
+GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
|
||||
+APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
|
||||
+GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||
+GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||
+VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||
+GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
|
||||
+WAYLAND_EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -lwayland-client -ldrm
|
||||
+GBM_LIB_DEPS = $(EXTRA_LIB_PATH) -ludev -ldl
|
||||
+
|
||||
+# Program dependencies - specific GL/glut libraries added in Makefiles
|
||||
+APP_LIB_DEPS = -lm
|
||||
+X11_LIBS = -lX11
|
||||
+
|
||||
+DLOPEN_LIBS = -ldl
|
||||
+
|
||||
+# Installation directories (for make install)
|
||||
+INSTALL_DIR = /usr/local
|
||||
+INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
|
||||
+INSTALL_INC_DIR = $(INSTALL_DIR)/include
|
||||
+DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
|
||||
+
|
||||
+# Where libGL will look for DRI hardware drivers
|
||||
+DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
|
||||
+
|
||||
+# EGL driver install directory
|
||||
+EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
|
||||
+
|
||||
+# gbm backend install directory
|
||||
+GBM_BACKEND_INSTALL_DIR = $(INSTALL_LIB_DIR)/gbm
|
||||
+
|
||||
+# Xorg driver install directory (for xorg state-tracker)
|
||||
+XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
|
||||
+
|
||||
+# pkg-config substitutions
|
||||
+GL_PC_REQ_PRIV =
|
||||
+GL_PC_LIB_PRIV =
|
||||
+GL_PC_CFLAGS =
|
||||
+DRI_PC_REQ_PRIV =
|
||||
+GLU_PC_REQ = gl
|
||||
+GLU_PC_REQ_PRIV =
|
||||
+GLU_PC_LIB_PRIV =
|
||||
+GLU_PC_CFLAGS =
|
||||
+GLUT_PC_REQ_PRIV =
|
||||
+GLUT_PC_LIB_PRIV =
|
||||
+GLUT_PC_CFLAGS =
|
||||
+GLW_PC_REQ_PRIV =
|
||||
+GLW_PC_LIB_PRIV =
|
||||
+GLW_PC_CFLAGS =
|
||||
+OSMESA_PC_REQ =
|
||||
+OSMESA_PC_LIB_PRIV =
|
||||
+GLESv1_CM_PC_REQ_PRIV =
|
||||
+GLESv1_CM_PC_LIB_PRIV =
|
||||
+GLESv1_CM_PC_CFLAGS =
|
||||
+GLESv2_PC_REQ_PRIV =
|
||||
+GLESv2_PC_LIB_PRIV =
|
||||
+GLESv2_PC_CFLAGS =
|
||||
+VG_PC_REQ_PRIV =
|
||||
+VG_PC_LIB_PRIV =
|
||||
+VG_PC_CFLAGS =
|
||||
+WAYLAND_EGL_PC_REQ_PRIV =
|
||||
+WAYLAND_EGL_PC_LIB_PRIV =
|
||||
+WAYLAND_EGL_PC_CFLAGS =
|
||||
+GBM_PC_REQ_PRIV =
|
||||
+GBM_PC_LIB_PRIV =
|
||||
+GBM_PC_CFLAGS =
|
||||
463
graphics/glut/patches/patch-configure.ac
Normal file
463
graphics/glut/patches/patch-configure.ac
Normal file
@@ -0,0 +1,463 @@
|
||||
$NetBSD: patch-configure.ac,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- configure.ac.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ configure.ac
|
||||
@@ -0,0 +1,456 @@
|
||||
+dnl Process this file with autoconf to create configure.
|
||||
+
|
||||
+AC_PREREQ([2.59])
|
||||
+
|
||||
+AC_INIT([mesa-glut], [8.0.1],
|
||||
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa])
|
||||
+AC_CONFIG_AUX_DIR([bin])
|
||||
+AC_CANONICAL_HOST
|
||||
+
|
||||
+dnl Check for progs
|
||||
+AC_PROG_CPP
|
||||
+AC_PROG_CC
|
||||
+AC_PROG_CXX
|
||||
+AC_CHECK_PROGS([MAKE], [gmake make])
|
||||
+AC_CHECK_PROGS([PYTHON2], [python2 python])
|
||||
+AC_PATH_PROG([MKDEP], [makedepend])
|
||||
+AC_PATH_PROG([SED], [sed])
|
||||
+
|
||||
+if test "x$MKDEP" = "x"; then
|
||||
+ AC_MSG_ERROR([makedepend is required to build GLUT])
|
||||
+fi
|
||||
+
|
||||
+dnl Our fallback install-sh is a symlink to minstall. Use the existing
|
||||
+dnl configuration in that case.
|
||||
+AC_PROG_INSTALL
|
||||
+test "x$INSTALL" = "x$ac_install_sh" && INSTALL='$(MINSTALL)'
|
||||
+
|
||||
+dnl We need a POSIX shell for parts of the build. Assume we have one
|
||||
+dnl in most cases.
|
||||
+case "$host_os" in
|
||||
+solaris*)
|
||||
+ # Solaris /bin/sh is too old/non-POSIX compliant
|
||||
+ AC_PATH_PROGS(POSIX_SHELL, [ksh93 ksh sh])
|
||||
+ SHELL="$POSIX_SHELL"
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+dnl clang is mostly GCC-compatible, but its version is much lower,
|
||||
+dnl so we have to check for it.
|
||||
+AC_MSG_CHECKING([if compiling with clang])
|
||||
+
|
||||
+AC_COMPILE_IFELSE(
|
||||
+[AC_LANG_PROGRAM([], [[
|
||||
+#ifndef __clang__
|
||||
+ not clang
|
||||
+#endif
|
||||
+]])],
|
||||
+[CLANG=yes], [CLANG=no])
|
||||
+
|
||||
+AC_MSG_RESULT([$CLANG])
|
||||
+
|
||||
+dnl If we're using GCC, make sure that it is at least version 3.3.0. Older
|
||||
+dnl versions are explictly not supported.
|
||||
+if test "x$GCC" = xyes -a "x$CLANG" = xno; then
|
||||
+ AC_MSG_CHECKING([whether gcc version is sufficient])
|
||||
+ major=0
|
||||
+ minor=0
|
||||
+
|
||||
+ GCC_VERSION=`$CC -dumpversion`
|
||||
+ if test $? -eq 0; then
|
||||
+ major=`echo $GCC_VERSION | cut -d. -f1`
|
||||
+ minor=`echo $GCC_VERSION | cut -d. -f1`
|
||||
+ fi
|
||||
+
|
||||
+ if test $major -lt 3 -o $major -eq 3 -a $minor -lt 3 ; then
|
||||
+ AC_MSG_RESULT([no])
|
||||
+ AC_MSG_ERROR([If using GCC, version 3.3.0 or later is required.])
|
||||
+ else
|
||||
+ AC_MSG_RESULT([yes])
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+
|
||||
+MKDEP_OPTIONS=-fdepend
|
||||
+dnl Ask gcc where it's keeping its secret headers
|
||||
+if test "x$GCC" = xyes; then
|
||||
+ for dir in include include-fixed; do
|
||||
+ GCC_INCLUDES=`$CC -print-file-name=$dir`
|
||||
+ if test "x$GCC_INCLUDES" != x && \
|
||||
+ test "$GCC_INCLUDES" != "$dir" && \
|
||||
+ test -d "$GCC_INCLUDES"; then
|
||||
+ MKDEP_OPTIONS="$MKDEP_OPTIONS -I$GCC_INCLUDES"
|
||||
+ fi
|
||||
+ done
|
||||
+fi
|
||||
+AC_SUBST([MKDEP_OPTIONS])
|
||||
+
|
||||
+dnl Make sure the pkg-config macros are defined
|
||||
+m4_ifndef([PKG_PROG_PKG_CONFIG],
|
||||
+ [m4_fatal([Could not locate the pkg-config autoconf macros.
|
||||
+ These are usually located in /usr/share/aclocal/pkg.m4. If your macros
|
||||
+ are in a different location, try setting the environment variable
|
||||
+ ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
|
||||
+PKG_PROG_PKG_CONFIG()
|
||||
+
|
||||
+dnl Get the pkg-config definitions for libGL. We include a fallback
|
||||
+dnl path for GL implementation that don't provide a .pc file
|
||||
+PKG_CHECK_MODULES(GL, [gl], [], [
|
||||
+ AC_CHECK_HEADER([GL/gl.h],
|
||||
+ [],
|
||||
+ AC_MSG_ERROR([GL not found]))
|
||||
+ AC_CHECK_LIB([GL],
|
||||
+ [glBegin],
|
||||
+ [GL_LIBS=-lGL],
|
||||
+ AC_MSG_ERROR([GL required]))
|
||||
+ ])
|
||||
+
|
||||
+dnl LIB_DIR - library basename
|
||||
+LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
|
||||
+AC_SUBST([LIB_DIR])
|
||||
+
|
||||
+dnl Cache LDFLAGS so we can add EXTRA_LIB_PATH and restore it later
|
||||
+_SAVE_LDFLAGS="$LDFLAGS"
|
||||
+AC_ARG_VAR([EXTRA_LIB_PATH],[Extra -L paths for the linker])
|
||||
+AC_SUBST([EXTRA_LIB_PATH])
|
||||
+
|
||||
+dnl Cache CPPFLAGS so we can add *_INCLUDES and restore it later
|
||||
+_SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
+AC_ARG_VAR([X11_INCLUDES],[Extra -I paths for X11 headers])
|
||||
+AC_SUBST([X11_INCLUDES])
|
||||
+
|
||||
+dnl Compiler macros
|
||||
+DEFINES=""
|
||||
+AC_SUBST([DEFINES])
|
||||
+case "$host_os" in
|
||||
+linux*|*-gnu*|gnu*)
|
||||
+ DEFINES="$DEFINES -D_GNU_SOURCE -DPTHREADS"
|
||||
+ ;;
|
||||
+solaris*)
|
||||
+ DEFINES="$DEFINES -DPTHREADS -DSVR4"
|
||||
+ ;;
|
||||
+cygwin*)
|
||||
+ DEFINES="$DEFINES -DPTHREADS"
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+dnl Add flags for gcc and g++
|
||||
+if test "x$GCC" = xyes; then
|
||||
+ CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99"
|
||||
+ if test "x$CLANG" = "xno"; then
|
||||
+ CFLAGS="$CFLAGS -ffast-math"
|
||||
+ fi
|
||||
+
|
||||
+ # Enable -fvisibility=hidden if using a gcc that supports it
|
||||
+ save_CFLAGS="$CFLAGS"
|
||||
+ AC_MSG_CHECKING([whether $CC supports -fvisibility=hidden])
|
||||
+ VISIBILITY_CFLAGS="-fvisibility=hidden"
|
||||
+ CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]),
|
||||
+ [VISIBILITY_CFLAGS=""; AC_MSG_RESULT([no])]);
|
||||
+
|
||||
+ # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed.
|
||||
+ CFLAGS=$save_CFLAGS
|
||||
+
|
||||
+ # Work around aliasing bugs - developers should comment this out
|
||||
+ CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
+fi
|
||||
+if test "x$GXX" = xyes; then
|
||||
+ CXXFLAGS="$CXXFLAGS -Wall"
|
||||
+
|
||||
+ # Enable -fvisibility=hidden if using a gcc that supports it
|
||||
+ save_CXXFLAGS="$CXXFLAGS"
|
||||
+ AC_MSG_CHECKING([whether $CXX supports -fvisibility=hidden])
|
||||
+ VISIBILITY_CXXFLAGS="-fvisibility=hidden"
|
||||
+ CXXFLAGS="$CXXFLAGS $VISIBILITY_CXXFLAGS"
|
||||
+ AC_LANG_PUSH([C++])
|
||||
+ AC_LINK_IFELSE([AC_LANG_PROGRAM()], AC_MSG_RESULT([yes]),
|
||||
+ [VISIBILITY_CXXFLAGS="" ; AC_MSG_RESULT([no])]);
|
||||
+ AC_LANG_POP([C++])
|
||||
+
|
||||
+ # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed.
|
||||
+ CXXFLAGS=$save_CXXFLAGS
|
||||
+
|
||||
+ # Work around aliasing bugs - developers should comment this out
|
||||
+ CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
|
||||
+fi
|
||||
+
|
||||
+dnl even if the compiler appears to support it, using visibility attributes isn't
|
||||
+dnl going to do anything useful currently on cygwin apart from emit lots of warnings
|
||||
+case "$host_os" in
|
||||
+cygwin*)
|
||||
+ VISIBILITY_CFLAGS=""
|
||||
+ VISIBILITY_CXXFLAGS=""
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+AC_SUBST([VISIBILITY_CFLAGS])
|
||||
+AC_SUBST([VISIBILITY_CXXFLAGS])
|
||||
+
|
||||
+dnl These should be unnecessary, but let the user set them if they want
|
||||
+AC_ARG_VAR([OPT_FLAGS], [Additional optimization flags for the compiler.
|
||||
+ Default is to use CFLAGS.])
|
||||
+AC_ARG_VAR([ARCH_FLAGS], [Additional architecture specific flags for the
|
||||
+ compiler. Default is to use CFLAGS.])
|
||||
+AC_SUBST([OPT_FLAGS])
|
||||
+AC_SUBST([ARCH_FLAGS])
|
||||
+
|
||||
+dnl
|
||||
+dnl Hacks to enable 32 or 64 bit build
|
||||
+dnl
|
||||
+AC_ARG_ENABLE([32-bit],
|
||||
+ [AS_HELP_STRING([--enable-32-bit],
|
||||
+ [build 32-bit libraries @<:@default=auto@:>@])],
|
||||
+ [enable_32bit="$enableval"],
|
||||
+ [enable_32bit=auto]
|
||||
+)
|
||||
+if test "x$enable_32bit" = xyes; then
|
||||
+ if test "x$GCC" = xyes; then
|
||||
+ CFLAGS="$CFLAGS -m32"
|
||||
+ ARCH_FLAGS="$ARCH_FLAGS -m32"
|
||||
+ fi
|
||||
+ if test "x$GXX" = xyes; then
|
||||
+ CXXFLAGS="$CXXFLAGS -m32"
|
||||
+ fi
|
||||
+fi
|
||||
+AC_ARG_ENABLE([64-bit],
|
||||
+ [AS_HELP_STRING([--enable-64-bit],
|
||||
+ [build 64-bit libraries @<:@default=auto@:>@])],
|
||||
+ [enable_64bit="$enableval"],
|
||||
+ [enable_64bit=auto]
|
||||
+)
|
||||
+if test "x$enable_64bit" = xyes; then
|
||||
+ if test "x$GCC" = xyes; then
|
||||
+ CFLAGS="$CFLAGS -m64"
|
||||
+ fi
|
||||
+ if test "x$GXX" = xyes; then
|
||||
+ CXXFLAGS="$CXXFLAGS -m64"
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+dnl
|
||||
+dnl shared/static libraries, mimic libtool options
|
||||
+dnl
|
||||
+AC_ARG_ENABLE([static],
|
||||
+ [AS_HELP_STRING([--enable-static],
|
||||
+ [build static libraries @<:@default=disabled@:>@])],
|
||||
+ [enable_static="$enableval"],
|
||||
+ [enable_static=no]
|
||||
+)
|
||||
+case "x$enable_static" in
|
||||
+xyes|xno ) ;;
|
||||
+x ) enable_static=no ;;
|
||||
+* )
|
||||
+ AC_MSG_ERROR([Static library option '$enable_static' is not a valid])
|
||||
+ ;;
|
||||
+esac
|
||||
+AC_ARG_ENABLE([shared],
|
||||
+ [AS_HELP_STRING([--disable-shared],
|
||||
+ [build shared libraries @<:@default=enabled@:>@])],
|
||||
+ [enable_shared="$enableval"],
|
||||
+ [enable_shared=yes]
|
||||
+)
|
||||
+case "x$enable_shared" in
|
||||
+xyes|xno ) ;;
|
||||
+x ) enable_shared=yes ;;
|
||||
+* )
|
||||
+ AC_MSG_ERROR([Shared library option '$enable_shared' is not a valid])
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+dnl Can't have static and shared libraries, default to static if user
|
||||
+dnl explicitly requested. If both disabled, set to static since shared
|
||||
+dnl was explicitly requirested.
|
||||
+case "x$enable_static$enable_shared" in
|
||||
+xyesyes )
|
||||
+ AC_MSG_WARN([Can't build static and shared libraries, disabling shared])
|
||||
+ enable_shared=no
|
||||
+ ;;
|
||||
+xnono )
|
||||
+ AC_MSG_WARN([Can't disable both static and shared libraries, enabling static])
|
||||
+ enable_static=yes
|
||||
+ ;;
|
||||
+esac
|
||||
+
|
||||
+dnl
|
||||
+dnl mklib options
|
||||
+dnl
|
||||
+AC_ARG_VAR([MKLIB_OPTIONS],[Options for the Mesa library script, mklib])
|
||||
+if test "$enable_static" = yes; then
|
||||
+ MKLIB_OPTIONS="$MKLIB_OPTIONS -static"
|
||||
+fi
|
||||
+AC_SUBST([MKLIB_OPTIONS])
|
||||
+
|
||||
+dnl
|
||||
+dnl other compiler options
|
||||
+dnl
|
||||
+AC_ARG_ENABLE([debug],
|
||||
+ [AS_HELP_STRING([--enable-debug],
|
||||
+ [use debug compiler flags and macros @<:@default=disabled@:>@])],
|
||||
+ [enable_debug="$enableval"],
|
||||
+ [enable_debug=no]
|
||||
+)
|
||||
+if test "x$enable_debug" = xyes; then
|
||||
+ DEFINES="$DEFINES -DDEBUG"
|
||||
+ if test "x$GCC" = xyes; then
|
||||
+ CFLAGS="$CFLAGS -g"
|
||||
+ fi
|
||||
+ if test "x$GXX" = xyes; then
|
||||
+ CXXFLAGS="$CXXFLAGS -g"
|
||||
+ fi
|
||||
+fi
|
||||
+
|
||||
+dnl
|
||||
+dnl library names
|
||||
+dnl
|
||||
+LIB_PREFIX_GLOB='lib'
|
||||
+LIB_VERSION_SEPARATOR='.'
|
||||
+if test "$enable_static" = yes; then
|
||||
+ LIB_EXTENSION='a'
|
||||
+else
|
||||
+ case "$host_os" in
|
||||
+ darwin* )
|
||||
+ LIB_EXTENSION='dylib' ;;
|
||||
+ cygwin* )
|
||||
+ dnl prefix can be 'cyg' or 'lib'
|
||||
+ LIB_PREFIX_GLOB='???'
|
||||
+ LIB_VERSION_SEPARATOR='-'
|
||||
+ LIB_EXTENSION='dll' ;;
|
||||
+ aix* )
|
||||
+ LIB_EXTENSION='a' ;;
|
||||
+ * )
|
||||
+ LIB_EXTENSION='so' ;;
|
||||
+ esac
|
||||
+fi
|
||||
+
|
||||
+dnl
|
||||
+dnl potentially-infringing-but-nobody-knows-for-sure stuff
|
||||
+dnl
|
||||
+AC_ARG_ENABLE([texture-float],
|
||||
+ [AS_HELP_STRING([--enable-texture-float],
|
||||
+ [enable floating-point textures and renderbuffers @<:@default=disabled@:>@])],
|
||||
+ [enable_texture_float="$enableval"],
|
||||
+ [enable_texture_float=no]
|
||||
+)
|
||||
+if test "x$enable_texture_float" = xyes; then
|
||||
+ AC_MSG_WARN([Floating-point textures enabled.])
|
||||
+ AC_MSG_WARN([Please consult docs/patents.txt with your lawyer before building Mesa.])
|
||||
+ DEFINES="$DEFINES -DTEXTURE_FLOAT_ENABLED"
|
||||
+fi
|
||||
+
|
||||
+GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
|
||||
+GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
|
||||
+GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
|
||||
+
|
||||
+GL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
|
||||
+GLU_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLU_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
|
||||
+GLUT_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLUT_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
|
||||
+
|
||||
+AC_SUBST([GL_LIB_NAME])
|
||||
+AC_SUBST([GLU_LIB_NAME])
|
||||
+AC_SUBST([GLUT_LIB_NAME])
|
||||
+
|
||||
+AC_SUBST([GL_LIB_GLOB])
|
||||
+AC_SUBST([GLU_LIB_GLOB])
|
||||
+AC_SUBST([GLUT_LIB_GLOB])
|
||||
+
|
||||
+dnl PIC code macro
|
||||
+MESA_PIC_FLAGS
|
||||
+
|
||||
+dnl Check to see if dlopen is in default libraries (like Solaris, which
|
||||
+dnl has it in libc), or if libdl is needed to get it.
|
||||
+AC_CHECK_FUNC([dlopen], [],
|
||||
+ [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
|
||||
+AC_SUBST([DLOPEN_LIBS])
|
||||
+
|
||||
+dnl
|
||||
+dnl Driver specific build directories
|
||||
+dnl
|
||||
+
|
||||
+SRC_DIRS=""
|
||||
+
|
||||
+dnl
|
||||
+dnl GLUT configuration
|
||||
+dnl
|
||||
+SRC_DIRS="$SRC_DIRS glut/glx"
|
||||
+if test "$x11_pkgconfig" = yes; then
|
||||
+ PKG_CHECK_MODULES([GLUT],[x11 xmu xi])
|
||||
+ GLUT_PC_REQ_PRIV="x11 xmu xi"
|
||||
+ GLUT_LIB_DEPS="$GLUT_LIBS"
|
||||
+else
|
||||
+ # should check these...
|
||||
+ GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi"
|
||||
+ GLUT_PC_LIB_PRIV="$GLUT_LIB_DEPS"
|
||||
+ GLUT_PC_CFLAGS="$X11_INCLUDES"
|
||||
+fi
|
||||
+if test "x$GCC" = xyes; then
|
||||
+ GLUT_CFLAGS="$GLUT_CFLAGS -fexceptions"
|
||||
+fi
|
||||
+GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm"
|
||||
+GLUT_PC_LIB_PRIV="$GLUT_PC_LIB_PRIV -lm"
|
||||
+
|
||||
+# If static, empty GLUT_LIB_DEPS and add libs for programs to link
|
||||
+if test "$enable_static" = no; then
|
||||
+ GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)'
|
||||
+else
|
||||
+ APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS"
|
||||
+ GLUT_LIB_DEPS=""
|
||||
+ GLUT_MESA_DEPS=""
|
||||
+fi
|
||||
+AC_SUBST([GLUT_LIB_DEPS])
|
||||
+AC_SUBST([GLUT_MESA_DEPS])
|
||||
+AC_SUBST([GLUT_CFLAGS])
|
||||
+AC_SUBST([GLUT_PC_REQ_PRIV])
|
||||
+AC_SUBST([GLUT_PC_LIB_PRIV])
|
||||
+AC_SUBST([GLUT_PC_CFLAGS])
|
||||
+
|
||||
+AC_SUBST([SRC_DIRS])
|
||||
+
|
||||
+dnl Restore LDFLAGS and CPPFLAGS
|
||||
+LDFLAGS="$_SAVE_LDFLAGS"
|
||||
+CPPFLAGS="$_SAVE_CPPFLAGS"
|
||||
+
|
||||
+dnl Substitute the config
|
||||
+AC_CONFIG_FILES([configs/autoconf])
|
||||
+
|
||||
+dnl Replace the configs/current symlink
|
||||
+AC_CONFIG_COMMANDS([configs],[
|
||||
+if test -f configs/current || test -L configs/current; then
|
||||
+ rm -f configs/current
|
||||
+fi
|
||||
+ln -s autoconf configs/current
|
||||
+])
|
||||
+
|
||||
+AC_OUTPUT
|
||||
+
|
||||
+dnl
|
||||
+dnl Output some configuration info for the user
|
||||
+dnl
|
||||
+echo ""
|
||||
+echo " prefix: $prefix"
|
||||
+echo " exec_prefix: $exec_prefix"
|
||||
+echo " libdir: $libdir"
|
||||
+echo " includedir: $includedir"
|
||||
+
|
||||
+dnl Libraries
|
||||
+echo ""
|
||||
+echo " Shared libs: $enable_shared"
|
||||
+echo " Static libs: $enable_static"
|
||||
+
|
||||
+dnl Compiler options
|
||||
+# cleanup the CFLAGS/CXXFLAGS/DEFINES vars
|
||||
+cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
|
||||
+ $SED 's/^ *//;s/ */ /;s/ *$//'`
|
||||
+cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
|
||||
+ $SED 's/^ *//;s/ */ /;s/ *$//'`
|
||||
+defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/ */ /;s/ *$//'`
|
||||
+echo ""
|
||||
+echo " CFLAGS: $cflags"
|
||||
+echo " CXXFLAGS: $cxxflags"
|
||||
+echo " Macros: $defines"
|
||||
+echo ""
|
||||
+echo " PYTHON2: $PYTHON2"
|
||||
+
|
||||
+echo ""
|
||||
+echo " Run '${MAKE-make}' to build GLUT"
|
||||
+echo ""
|
||||
47
graphics/glut/patches/patch-src_Makefile
Normal file
47
graphics/glut/patches/patch-src_Makefile
Normal file
@@ -0,0 +1,47 @@
|
||||
$NetBSD: patch-src_Makefile,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
|
||||
--- src/Makefile.orig 2015-04-02 23:45:08.000000000 +0000
|
||||
+++ src/Makefile
|
||||
@@ -0,0 +1,40 @@
|
||||
+# src/Makefile
|
||||
+
|
||||
+TOP = ..
|
||||
+
|
||||
+include $(TOP)/configs/current
|
||||
+
|
||||
+SUBDIRS = $(SRC_DIRS)
|
||||
+
|
||||
+
|
||||
+default: message $(TOP)/$(LIB_DIR) subdirs
|
||||
+
|
||||
+
|
||||
+message:
|
||||
+ @echo "Making sources for" $(CONFIG_NAME)
|
||||
+
|
||||
+
|
||||
+subdirs:
|
||||
+ @for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE)) || exit 1; \
|
||||
+ fi \
|
||||
+ done
|
||||
+
|
||||
+install: $(TOP)/$(LIB_DIR)
|
||||
+ @for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE) install) || exit 1 ; \
|
||||
+ fi \
|
||||
+ done
|
||||
+
|
||||
+$(TOP)/$(LIB_DIR):
|
||||
+ -@test -d $(TOP)/$(LIB_DIR) || mkdir -p $(TOP)/$(LIB_DIR)
|
||||
+
|
||||
+
|
||||
+clean:
|
||||
+ -@for dir in $(SUBDIRS) ; do \
|
||||
+ if [ -d $$dir ] ; then \
|
||||
+ (cd $$dir && $(MAKE) clean) ; \
|
||||
+ fi \
|
||||
+ done
|
||||
53
graphics/glut/patches/patch-src_glut_glx_Makefile
Normal file
53
graphics/glut/patches/patch-src_glut_glx_Makefile
Normal file
@@ -0,0 +1,53 @@
|
||||
$NetBSD: patch-src_glut_glx_Makefile,v 1.1 2015/04/03 01:00:52 tnn Exp $
|
||||
|
||||
Patch from FDO git to bring the package up to 8.0.1.
|
||||
Also adds libtoolization for portability.
|
||||
|
||||
--- src/glut/glx/Makefile.orig 2010-12-14 21:46:56.000000000 +0000
|
||||
+++ src/glut/glx/Makefile
|
||||
@@ -81,7 +81,7 @@ OBJECTS = $(SOURCES:.c=.o)
|
||||
##### RULES #####
|
||||
|
||||
.c.o:
|
||||
- $(CC) -c -I$(TOP)/include $(X11_INCLUDES) $(CFLAGS) $(GLUT_CFLAGS) $<
|
||||
+ libtool --mode=compile $(CC) -c -I$(TOP)/include $(X11_INCLUDES) $(CFLAGS) $(GLUT_CFLAGS) $<
|
||||
|
||||
|
||||
|
||||
@@ -92,11 +92,12 @@ default: $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NA
|
||||
|
||||
# Make the library
|
||||
$(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
|
||||
- $(MKLIB) -o $(GLUT_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||
- -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
||||
- $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
||||
- -id $(INSTALL_LIB_DIR)/lib$(GLUT_LIB).$(GLUT_MAJOR).dylib \
|
||||
- $(GLUT_LIB_DEPS) $(OBJECTS)
|
||||
+ libtool --mode=link $(CC) -o libglut.la -rpath ${PREFIX}/lib -version-info ${GLUT_MAJOR}:0:0 $(GLUT_LIB_DEPS) $(OBJECTS:%.o=%.lo)
|
||||
+# $(MKLIB) -o $(GLUT_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||
+# -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
|
||||
+# $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
|
||||
+# -id $(INSTALL_LIB_DIR)/lib$(GLUT_LIB).$(GLUT_MAJOR).dylib \
|
||||
+# $(GLUT_LIB_DEPS) $(OBJECTS)
|
||||
|
||||
|
||||
# glut pkgconfig file
|
||||
@@ -117,7 +118,8 @@ install: glut.pc
|
||||
$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
|
||||
$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
|
||||
$(INSTALL) -m 644 $(TOP)/include/GL/glut.h $(DESTDIR)$(INSTALL_INC_DIR)/GL
|
||||
- $(MINSTALL) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_GLOB) $(DESTDIR)$(INSTALL_LIB_DIR)
|
||||
+ libtool --mode=install $(INSTALL) libglut.la $(DESTDIR)$(INSTALL_LIB_DIR)
|
||||
+# $(MINSTALL) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_GLOB) $(DESTDIR)$(INSTALL_LIB_DIR)
|
||||
$(INSTALL) -m 644 glut.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
|
||||
|
||||
|
||||
@@ -135,6 +137,6 @@ depend: $(SOURCES)
|
||||
@ rm -f depend
|
||||
@ touch depend
|
||||
@ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \
|
||||
- $(X11_INCLUDES) > /dev/null
|
||||
+ > /dev/null
|
||||
|
||||
--include depend
|
||||
+include depend
|
||||
15
graphics/glut/patches/patch-src_glut_glx_glutint.h
Normal file
15
graphics/glut/patches/patch-src_glut_glx_glutint.h
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD: patch-src_glut_glx_glutint.h,v 1.1 2015/04/06 07:07:43 tnn Exp $
|
||||
|
||||
Fix Solaris ifdef.
|
||||
|
||||
--- src/glut/glx/glutint.h.orig 2010-12-14 21:46:56.000000000 +0000
|
||||
+++ src/glut/glx/glutint.h
|
||||
@@ -92,7 +92,7 @@ extern int sys$gettim(struct timeval6 *)
|
||||
#define IS_AT_OR_AFTER(t1, t2) ((t2).val >= (t1).val)
|
||||
|
||||
#else
|
||||
-#if defined(SVR4) && !defined(sun) /* Sun claims SVR4, but
|
||||
+#if defined(SVR4) && !defined(__sun) /* Sun claims SVR4, but
|
||||
wants 2 args. */
|
||||
#define GETTIMEOFDAY(_x) gettimeofday(_x)
|
||||
#else
|
||||
Reference in New Issue
Block a user