Package Details: derelict2-svn 634-3

Package Base: derelict2-svn
Description: Derelict2 is a collection of D bindings to C shared (dynamic) libraries which are useful for multimedia applications, with a heavy bias toward game development-related libraries.
Upstream URL: http://www.dsource.org/projects/derelict
Category: devel
Licenses: BSD
Submitter: elkano
Maintainer: None
Last Packager: None
Votes: 3
First Submitted: 2011-05-02 14:19
Last Updated: 2013-09-20 02:38

Dependencies (1)

Required by (0)

Sources

Latest Comments

Anonymous comment

2013-06-08 14:33

This needs to use ${pkgdir} instead of ${startdir}/pkg in order to build, I've changed it manually locally, and it works fine.

Am I able to upload my changes somewhere to get the PKGBUILD updated?

Comment by elkano

2012-04-14 15:43

I am sorry. Life has gotten me lately, and I haven't been able to keep this up to date. I am abandoning this PKGBUILD so others can take over.
Good luck.

Comment by elkano

2011-06-01 10:50

Although this question would be more suited in the Derelict forums ( http://www.dsource.org/forums/viewforum.php?f=19 ), this is my working command line (found out by much trial and error, I must agree documentation isn't Derelict's strong point):

gdc -I/usr/include/d2/ -L/usr/lib/ <file.d> -lDerelictGL -ldl -lDerelictGLU -lDerelictSDL -lDerelictUtil

There's probably some tweaks needed for dmd.

Comment by essenceoffoo

2011-05-29 09:10

I would appreciate a small example how to compile a small programm with dmd and/or gdc (Version D2). All my attempts resulted in lots of linker errors. And the web doesn't seem to contain any valuable information on this.

The most prominent linker errors I get are:
undefined reference to `_D8derelict3sdl3sdl11DerelictSDLC8derelict3sdl3sdl17DerelictSDLLoader' #I'm trying to use SDL
undefined reference to `_D8derelict3sdl3sdl12__ModuleInfoZ'

Comment by elkano

2011-05-04 19:40

Last version makedepends on d2-config, a little script I wrote to manage d2 compilers. As long as you have that one, it's assumed you have one working d2 compiler linked to by /usr/bin/dmd. I have tested that with gdc and dmd2 and it worked. Let me know if anyone has an issue with it.

Comment by elkano

2011-05-02 14:24

As is, it compiles with gdc. To compile with dmd, one should change both the dependency 'gdc' for 'dmd' and the 'DC=gdmd' part of the last line for 'DC=dmd'. IT probably works with ldc too, with 'ldc' dependency and DC='ldmd' compiler
The several possible compilers for D and D2 are a mess for dependencies, there must be a way to solve this but I don't know how yet.

If anyone shows some interest for this package, I may start looking into the compiler issue and the optional dependencies.