Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 15:09:47 -0400 (EDT)
From:      aa8vb@nc.rr.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/26925: wxgtk port does not compile OpenGL module
Message-ID:  <200104281909.f3SJ9lM07820@stealth.dummynet>

next in thread | raw e-mail | index | archive | help

>Number:         26925
>Category:       ports
>Synopsis:       wxgtk port does not compile OpenGL module
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 28 12:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Randall Hopper
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
self
>Environment:

	Stock FreeBSD 4.2-RELEASE.

>Description:

	A port I'm about to submit requires the wxGTK OpenGL library to be
	built and installed.  The current wxGTK port does not build it.

        The attached patch updates the wxGTK port to build and install
        the OpenGL library.

>How-To-Repeat:

	> ls -l /usr/X11R6/lib/libwx_gtk_gl.so
        ls: /usr/X11R6/lib/libwx_gtk_gl.so: No such file or directory

>Fix:

--- wxgtk.old/Makefile	Fri Mar 30 03:13:56 2001
+++ wxgtk/Makefile	Fri Apr 27 19:39:54 2001
@@ -29,8 +29,15 @@
 		--with-libjpeg=sys \
 		--with-libtiff=sys \
 		--with-zlib=sys
-CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
-		LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ENV=	CPPFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \
+		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+
+.if defined(WITH_OPENGL)
+USE_MESA=	yes
+CONFIGURE_ARGS+= --with-opengl=yes
+ALL_TARGET=	all CREATE_LINKS_GL
+INSTALL_TARGET=	install CREATE_INSTALLED_LINKS_GL
+.endif
 
 AUTOCONF=	autoconf && \
 			${PERL} -pi -e 's|-l\$$THREADS_LIB|${PTHREAD_LIBS}|g ; \
--- wxgtk.old/pkg-plist	Fri Jan 19 03:17:23 2001
+++ wxgtk/pkg-plist	Fri Apr 27 19:24:43 2001
@@ -322,6 +322,8 @@
 include/wx/zstream.h
 lib/libwx_gtk.so
 lib/libwx_gtk.so.2
+lib/libwx_gtk_gl.so
+lib/libwx_gtk_gl.so.2
 lib/wx/include/wx/gtk/setup.h
 share/locale/cs/LC_MESSAGES/wxstd.mo
 share/locale/da/LC_MESSAGES/wxstd.mo

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104281909.f3SJ9lM07820>