At first I tried DESTDIR which is the recommended method, but it seems this
variable is not used anywhere in the make files (as you mentioned).

With configure I am using a crazy hack where I do

./configure --prefix=/home/martin/rpmbuild/BUILDROOT/usr/local

and then after the code has been make installed I sed
"s#/home/martin/rpmbuild/BUILDROOT##g"
through the entire code base, effectively change the path correctly to
/usr/local :P

make install DESTDIR=(...) OCAMLFIND_DESTDIR=(...) prefix=(...)


I didn't know about the prefix=(...), will try this tonight :)

Martin

On Mon, Oct 22, 2012 at 12:11 PM, Romain Beauxis <[email protected]>wrote:

> 2012/10/21 Martin Konečný <[email protected]>:
> > Hey,
>
> Hi Martin!
>
> > As a side project I've been trying to port Airtime to CentOS. This
> involves
> > creating RPM's for Liquidsoap, and its dependencies such as ocaml-pcre
> which
> > isn't available anywhere for CentOS 6.3 :(.
> >
> > I don't know if you've ever created an RPM before, but you are supposed
> to
> > do change the path where "make install" puts its files so that you don't
> > alter your system.
> >
> > Thankfully you guys allow this in your configure script, so I did
> >
> > ./configure --disable-camomile --prefix=%{buildroot}/usr/local
> > make
> > make install
>
> In the debian package, we do the following:
> ./configure --prefix=/usr (....)
> (...)
> make install DESTDIR=(...) OCAMLFIND_DESTDIR=(...) prefix=(...)
>
> This is, I think, b/c prefix matters at runtime so we want to pass the
> final value to configure, and override it only at install time.
>
> OCAMLFIND_DESTDIR is useful only if you compile liquidsoap in bytecode
> with no custom modules (probably unlikely). Also, quickly glancing
> through
> the code, it seems that DESTDIR is not needed.
>
> Hope this helps,
> Romain
>



-- 
Open source radio in the cloud. Get yours now! ---> http://airtime.pro

Martin Konecny
Software Developer, Sourcefabric
[email protected]

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to