emacs: use three separate build dirs to keep build numbers intact.
This commit is contained in:
parent
e7774bd7b1
commit
33b37326ac
1 changed files with 13 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'emacs'
|
# Template file for 'emacs'
|
||||||
pkgname=emacs
|
pkgname=emacs
|
||||||
version=24.3
|
version=24.3
|
||||||
revision=6
|
revision=7
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="ncurses-devel libXaw-devel gtk+-devel"
|
makedepends="ncurses-devel libXaw-devel gtk+-devel"
|
||||||
depends="emacs-common-${version}_${revision}"
|
depends="emacs-common-${version}_${revision}"
|
||||||
|
@ -98,17 +98,24 @@ else
|
||||||
configure_args+=" --without-sound"
|
configure_args+=" --without-sound"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_configure() {
|
pre_configure() {
|
||||||
mkdir -p nox x11 gtk2
|
# Just configuring in different directories results in
|
||||||
|
# spurious emacs rebuilds with incompatible build numbers.
|
||||||
|
mkdir -p nox
|
||||||
|
mv * nox || true
|
||||||
|
cp -a nox x11
|
||||||
|
cp -a nox gtk2
|
||||||
|
}
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
cd $wrksrc/nox
|
cd $wrksrc/nox
|
||||||
../configure --without-x ${configure_args}
|
./configure --without-x ${configure_args}
|
||||||
|
|
||||||
cd $wrksrc/x11
|
cd $wrksrc/x11
|
||||||
../configure --with-x-toolkit=athena --without-toolkit-scroll-bars ${configure_args}
|
./configure --with-x-toolkit=athena --without-toolkit-scroll-bars ${configure_args}
|
||||||
|
|
||||||
cd $wrksrc/gtk2
|
cd $wrksrc/gtk2
|
||||||
../configure --with-x-toolkit=gtk2 ${configure_args}
|
./configure --with-x-toolkit=gtk2 ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue