You are not logged in.

#1 2005-11-25 11:08:53

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

[abs-noob] how to deal with Makefile.config options

Hi Archies,

My question may have been answered well before. If so sorry and please just tell me where it lies :oops:

I'm playing a bit with abs and makepkg on misc packages. This is until I feel a bit more confident to use it for less misc packages & the kernel.

Now I'm on emelfm2. it's INSTALL file says one has to edit the Makefile.config for certain options like

# setting this to 1 makes the default file-pane layout "horizontal"
PANES_HORIZONTAL ?=0

What am I suppose to do to include such a modified option before launching makepkg ?

The PKGBUILD's default build lines are :

build() {
  cd $startdir/src/$pkgname-$pkgver
  make PREFIX=/usr
  make PREFIX=$startdir/pkg/usr install
}

Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2005-11-25 11:41:13

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [abs-noob] how to deal with Makefile.config options

What am I suppose to do to include such a modified option before launching makepkg ?

You have to put it in the build section. Something like

grep PANES_HORIZONTAL /path/to/file |sed 's|0|1|' -i /path/to/file 

Offline

#3 2005-11-25 11:49:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [abs-noob] how to deal with Makefile.config options

You need to use sed to edit the file - something like this:

  cd $startdir/src/$pkgname-$pkgver
  sed '/PANES_HORIZONTAL/ s/0/1/' -i Makefile.config
  make PREFIX=/usr
  make PREFIX=$startdir/pkg/usr install

I'm still only getting the hang of sed myself - have a look through some other PKGBUILDs for other examples.

Offline

#4 2005-11-25 15:50:34

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: [abs-noob] how to deal with Makefile.config options

Thank you guys.
That's what I read in the wiki --with more details, but a noob sometimes needs to read it twice or more before "getting into" wink


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB