Here is an update to lablgl.info. If you can put it in, that will save the
time going through the package submission tracker.

The most notable change is that I simplified package provide, replaces, 
and conflicts.

liulk

On Tue, 2 Oct 2007, Alexander K. Hansen wrote:

> oops, it needed lablgtk2, which itself requires lablgl-x11 (maintainer
> cc'ed).   One issue with the latter package is that it still depends on
> glut, rather than freeglut.  I've tried out an update to that effect,
> which seems OK.
> 
> If there are no objections, I'd like to commit the updated lablgl,
> lablgtk2, and unison to stable this weekend.
Info2: <<
Package: lablgl%type_pkg[-x11]
Version: 1.02
Revision: 2
Source: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/lablgl-%v.tar.gz
Source-MD5: b50e4e7d856c26bc4449151e4307b37b
SourceDirectory: lablgl-%v
DocFiles: CHANGES README COPYRIGHT
License: BSD
Description: OpenGL binding for Objective Caml
Homepage: http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
Maintainer: Likai Liu <[EMAIL PROTECTED]>

Type: -x11 (boolean)

DescDetail: <<
LablGL is an OpenGL interface for Objective Caml. It includes support for both
Togl widget and GLUT, which you can comfortably use with LablTk and LablGlut.
Specific support for LablGL is also included in LablGTK.

Two variants, lablgl and lablgl-x11, are supported. Please see DescPort for
details.
<<
DescPort: <<
Two variants of lablgl are supplied here, lablgl and lablgl-x11. Native lablgl
is linked against Mac OS X OpenGL and GLUT frameworks, which is aqua-based, but
compiles without tcltk support; lablgl-x11 uses GL facility provided by x11 and
a glut library based on xlib and supports tcl/tk GL wrapper widget.
<<
DescPackaging: <<
The patch file consists of Makefile.config that allows the CompileScript to
adjust compilation flags to the appropriate variant, and to allow installation
to DESTDIR.
<<

BuildDepends: <<
ocaml (>= 3.05-1),
(%type_raw[-x11] = -x11) x11-dev, (%type_raw[-x11] = -x11) tcltk-dev,
(%type_raw[-x11] = -x11) libgl,
(%type_raw[-x11] = -x11) freeglut | (%type_raw[-x11] = -x11) glut
<<
Depends: <<
ocaml (>= 3.05-1),
(%type_raw[-x11] = .) macosx,
(%type_raw[-x11] = -x11) x11, (%type_raw[-x11] = -x11) tcltk,
(%type_raw[-x11] = -x11) libgl,
(%type_raw[-x11] = -x11) freeglut-shlibs | (%type_raw[-x11] = -x11) glut-shlibs
<<
Provides: (%type_raw[-x11] = -x11) lablgl-togl
Replaces: (%type_raw[-x11] = -x11) lablgl, (%type_raw[-x11] = .) lablgl-x11
Conflicts: (%type_raw[-x11] = -x11) lablgl, (%type_raw[-x11] = .) lablgl-x11

PatchScript: patch -p1 < %a/lablgl.patch
CompileScript: <<
#!/bin/sh -ev
if [ "%type_raw[-x11]" == "-x11" ]; then
  make \
    PREFIX=%p \
    XINCLUDES="-I/usr/X11R6/include" \
    XLIBS="-L/usr/X11R6/lib -lXext -lXmu -lX11" \
    TKINCLUDES="-I%p/include" \
    TKLIBS="-L%p/lib -L/usr/X11R6/lib -lGL -lXmu" \
    GLLIBS="-lGL -lGLU" \
    GLUTLIBS="-L%p/lib -lglut" \
    all opt
else
  make \
    PREFIX=%p \
    GLLIBS="-framework OpenGL" \
    GLUTLIBS="-framework GLUT" \
    lib glut libopt glutopt
fi
<<
InstallScript: <<
#!/bin/sh -ev
  mkdir -p %i/lib/ocaml/stublibs
  make install PREFIX=%p DESTDIR=%d
<<
<<
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to