This repository has been archived by the owner on Oct 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.autotools
66 lines (50 loc) · 2.09 KB
/
README.autotools
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
To build an autotools tarball of, for instance Tao.OpenGL, you
currently need either the (bleeding edge) Prebuild-cjac branch of dnpb
or the Prebuild.exe from said branch. To get the whole package, do
the following:
svn co https://dnpb.svn.sourceforge.net/svnroot/dnpb/branches/Prebuild-cjac &&
cd Prebuild-cjac &&
./Prebuild.exe /target autotools &&
cd autotools/Prebuild/Prebuild &&
sh autogen.sh &&
make &&
sudo make install
This will put a script called 'prebuild' in /usr/local/bin, which is
probably in your PATH. The 'prebuild' script takes the same arguments
as Prebuild.exe. To see the usage docs, run the following:
prebuild /usage
Now that you have the bleeding edge prebuild, prebuild /target
autotools will create an autotools/ directory which contains the files
needed to create autotools distributions of prebuild packages.
Let's try this on Tao.OpenGL:
svn co http://anonsvn.mono-project.com/source/trunk/tao &&
cd tao/src/Tao.OpenGL &&
prebuild /target autotools &&
cd autotools/Tao.OpenGL &&
sh autogen.sh &&
make
You should now have all of the .dll files required to use Tao.OpenGL.
To install a given package, cd to its directory and run 'sudo make install':
cd Tao.OpenGL && sudo make install
You should now have:
* Tao.OpenGl.pc in /usr/local/lib/pkgconfig/
* Tao.OpenGl.dll in /usr/local/lib/mono/Tao.OpenGl/
* Tao.OpenGl in your GAC
You can now run something like this:
$ pkg-config --modversion Tao.OpenGl
2.1.0.4
You can now add a dependence on Tao.OpenGl into your application by
adding something like the following to your configure.ac (or
configure.in, if you like using deprecated filenames):
TAO_OPENGL_REQUIRED_VERSION=2.1.0
PKG_CHECK_MODULES(TAO_OPENGL_DEPENDENCIES,
Tao.OpenGl >= $TAO_OPENGL_REQUIRED_VERSION,
has_tao_opengl=yes,
has_tao_opengl=no
)
if test "x$has_tao_opengl" = "xno"; then
AC_MSG_WARN([Tao.OpenGl not detected; examples will not be built])
else
AC_MSG_NOTICE([Tao.OpenGl found; examples will be built])
fi
AM_CONDITIONAL(HAS_TAO_OPENGL, test x$has_tao_opengl = xyes)