Browse Source
I actually wanted to try to avoid having to do something like this. I've thought about using options, but that'd allow each package to set their own default. This seemed the easiest way to handle all possible linux distributions, adhering to autoconf standards.master
mid-kid
8 years ago
8 changed files with 31 additions and 17 deletions
@ -1,15 +1,17 @@ |
|||
compile_configure() { |
|||
./configure \ |
|||
--prefix="$dir_prefix" \ |
|||
--prefix="/$dir_prefix" \ |
|||
--sysconfdir="/$dir_sysconfdir" \ |
|||
--bindir="$dir_prefix/$dir_bindir" \ |
|||
--sbindir="$dir_prefix/$dir_sbindir" \ |
|||
--libdir="$dir_prefix/$dir_libdir" \ |
|||
--libexecdir="$dir_prefix/$dir_libexecdir" \ |
|||
--datadir="$dir_prefix/$dir_datadir" \ |
|||
--mandir="$dir_prefix/$dir_mandir" \ |
|||
--docdir="$dir_prefix/$dir_docdir/$name" \ |
|||
--infodir="$dir_prefix/$dir_infodir" \ |
|||
--localedir="$dir_prefix/$dir_localedir" \ |
|||
--sysconfdir=/etc $@ |
|||
$@ |
|||
make |
|||
make DESTDIR="$dir_install/" install |
|||
} |
|||
|
@ -1,4 +1,4 @@ |
|||
compile_python() { |
|||
local ver="$1"; shift |
|||
python$ver setup.py install --prefix="$dir_prefix" --root="$dir_install" $@ |
|||
python$ver setup.py install --prefix="/$dir_prefix" --root="$dir_install" $@ |
|||
} |
|||
|
@ -1,6 +1,6 @@ |
|||
compile_qt() { |
|||
local ver="$1"; shift |
|||
qmake-qt$ver PREFIX="$dir_prefix" build_mode=release build_type=shared $@ |
|||
qmake-qt$ver PREFIX="/$dir_prefix" build_mode=release build_type=shared $@ |
|||
make |
|||
make INSTALL_ROOT="$dir_install" install |
|||
} |
|||
|
Loading…
Reference in new issue