chazu / ypsilon

Automatically exported from code.google.com/p/ypsilon
Other
0 stars 1 forks source link

A patch to add FreeBSD compatibility #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ypsilon is fully workable under FreeBSD, but you'll have to use GNU gmake
instead of BSD make, and do a few minor changes to get it going.

In short, the attached patch contains changes to Makefile to detect
FreeBSD, and changes to sitelib/{ffi.scm,gl.scm,glut.scm} to recognize and
load libraries properly.

The patch is against ypsilon-0.9.6 sources, not the trunk.
Hope it's useful.

I've also submitted a FreeBSD port for ypsilon, and it should be in the
ports tree soon enough. Unfortunately I'm unable to test it on any platform
except for x86, so I'm wondering: is ypsilon designed to cope with anything
except fro x86?

Original issue reported on code.google.com by vmage...@gmail.com on 2 Aug 2008 at 10:19

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your message.

I have modified files to support FreeBSD and trunk directory is updated.
Unfortunately I have no machine which running FreeBSD at this moment, so I can 
not
test it. Please try and let me know if you have any problems. Thank you in 
advance!

> so I'm wondering: is ypsilon designed to cope with anything except fro x86?

Because of Ypsilon's FFI depend on x86(32bit) assembly, current version run 
only on
x86(32bit) platform.
I am planning to support other CPU after I fix all bugs relate to R6RS 
conformance.

Original comment by y.fujita...@gmail.com on 5 Aug 2008 at 4:50

GoogleCodeExporter commented 9 years ago
Yes, the trunk version is good.
You can build, install, and run GL examples -- everything works.

There is still however a minor problem with `install` make target.
I don't know if it's FreeBSD-specific, but `install` creates 
$(PREFIX)/share/$(PROG)
with permissions set to 0700, so other users are unable to use libraries. It's 
easy
to fix this though (and I've attached a patch).

Anyway, ypsilon 0.9.6 (with all the needed patches) is already in FreeBSD ports 
tree,
so that would be the preferred way to install it there.

Original comment by vmage...@gmail.com on 7 Aug 2008 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago
> There is still however a minor problem with `install` make target. ...  (and 
I've
attached a patch).
Thank you for your report and patch! I have updated Makefile.

> Anyway, ypsilon 0.9.6 (with all the needed patches) is already in FreeBSD 
ports
tree, so that would be the preferred way to install it there.
It's great! Thank you! :)

Original comment by y.fujita...@gmail.com on 10 Aug 2008 at 6:12