forked from PerlGameDev/SDL
-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
102 lines (72 loc) · 3.13 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
------------------------------------------------------------------------------
| SDL Perl
| INSTALL Information Doc
-------------------------
Table of Contents:
-----------------
* System Requirements
* Grabbing the Necessary Version of SDL Perl, Release
* Same as Above, but Bleeding Edge
System Requirements:
-------------------
SDL Perl's package on your system should be able to install everything needed
for the SDL module to be properly installed. FYI, this may include the
following libraries (as pre-compiled DLLs for Microsoft Windows platforms):
* libSDL
* png
* jpeg
* smpeg
* OpenGL (GL)
* GLUT (GLU)
* SDL_image
* SDL_mixer
* SDL_net
* SDL_tiff
* SDL_gfx
* SDL_ttf
Grabbing the Necessary Version of SDL Perl, Release:
---------------------------------------------------
It might be a good idea to run from your shell prompt (where the '$' dollar-
sign denotes the prompt itself, so what you should type follows it):
$ cpan
You will be presented with the CPAN prompt at this point.
CPAN> upgrade /.*/
Yeah, CPAN> denotes we are now prompted inside CPAN and recommending upgrading
everything out-of-date. Then with your site up-to-date:
CPAN> install SDL
This should fully prepare you to run and program SDL Perl applications.
Same as Above, but Bleeding Edge:
--------------------------------
As of Thu Mar 17, 2011, you'll need git installed on your machine in order to
clone from GitHub by running:
$ git clone https://github.com/PerlGameDev/SDL.git
To update your clone, go into the directory that the git repo is in
(i.e., into the git repo itself, not merely the directory that you did the
`git clone` in) and type the following:
$ git pull
Now to build, run:
$ perl Build.PL
Then to test:
$ perl Build test
Only MacOS used to also require you to:
$ perl Build bundle
... but that shouldn't be necessary anymore.
Katrina Payne (the original author of this file) had a cute anecdote here
about SDL Perl being a blushing girl who fails testing and enjoys watching
InuYasha. Quirky! ;) I couldn't quite bear to replace it all so here's her
paragraph of glory from Thu Oct 22, 2009:
"Then if there is an issue getting herself all pretty this command will have
her just stop there... your best bet is to give her comfort food. Of the
kind of reports on the SDL Perl tracker, as I am not really certain if SDL
Perl likes Hagan Daaz, but then I have not ask her, and well, you really are
not in the place to ask. After all, she will likely blame you or your system
for why she does not look pretty--programs that end up not compiling
properly tend to have self esteem issues. Sending something to the tracker
pretty much is a way of telling her you are interested... this usually helps
her to stop watching old reruns of Inu Yasha (yeah, SDL Perl is still kind of
young) and get back to feeling better."
Finally you're done with melodramatic testing and ready to type:
# perl Build install
The '#' above denotes that this command should be entered from a root or
super-user account which has sufficient module installation permissions.
Then your installation of SDL Perl should be complete. Yay! Enjoy! =)