i've tried creating a slackware package for xchat, and it seems that both these methods wouldn't work if you were going to install xchat somewhere other than were you configured it to work. for example, running the ./configure script with the default value for prefix would create a config.h that would be used to compile xchat.
running make would create the binaries, and then doing a make install prefix=/pkgdir/usr/local would recreate the packages, and have xchat work specifically for /pkgdir/usr/local maybe i'm doing something wrong here, but then i think that's why i quit making my own xchat package, after trying so many times and failing miserably every time (last count was 6 times, with variations on ./configure, make, and make install -- even tried modifying the Makefile and bruteforcefully moving the packages). if anyone successfully creates a slackware package for xchat, please inform me -- im utterly embarassed of my incapability to do so. =) On Fri, 2003-03-07 at 19:07, Rafael 'Dido' Sevilla wrote: > Andy, these only work if your package uses autoconf and automake. > > On Fri, Mar 07, 2003 at 06:48:40PM +0800, Andy Sy wrote: > > When compiling source code into a temporary directory for > > packaging, which of the following will work more often: > > > > > > make install prefix=/pkgdir/usr/local > > > > Every program that follows GNU coding standards for makefiles (that > essentially means every program that uses GNU Automake for its build > process) will honor this. > > > or > > > > make DESTDIR=/pkgdir install > > > > DESTDIR is also required by GNU coding standards, and hence is always > created by Automake generated makefiles. > > > I've encountered one package, omniORB for which DESTDIR > > worked but prefix was ignored. Would the reverse sometimes > > be true for some packages? > > The two methods you've described should only fail if a package doesn't > follow the GNU makefile guidelines, usually because it doesn't use > automake, or it goes out of its way to do something highly unnatural in > a Makefile.am (which is absolutely crazy for anyone to do). > > -- > Rafael R. Sevilla <dido at imperium dot ph> +63(2)8123151 > Software Developer, Imperium Technology Inc. +63(917)4458925 > "Under the cloud of threatening war, it is humanity hanging from > a cross of iron." > _ > Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph > To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] > > Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph > > To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL > PROTECTED] -- -=[mikhail]=- aka Dean Michael C. Berris mobile +63 917 8901959 work +63 49 5680024 http://free.net.ph/Members/mikhailberis _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
