]> git.ipfire.org Git - pakfire.git/blame - macros/constants.macro
QA: Add check for illegal libraries in /usr/lib on x86_64.
[pakfire.git] / macros / constants.macro
CommitLineData
c07a3ca7 1
3ce6a8ad 2BUILDROOT = %{DIR_BUILD}/%{name}-%{thisver}
c07a3ca7 3
3ce6a8ad 4DIR_BUILD = /builddir
c07a3ca7
MT
5DIR_APP = %{DIR_SRC}/%{thisapp}
6DIR_DL = %{BASEDIR}/files
7DIR_PATCHES = %{BASEDIR}/patches
3ce6a8ad 8DIR_SRC = %{DIR_BUILD}/source
c07a3ca7
MT
9DIR_TMP = /tmp
10DIR_SOURCE = %{BASEDIR}
11
12CONFIGURE_SCRIPT = configure
13configure_options = \
14 --host=%{DISTRO_MACHINE} \
15 --build=%{DISTRO_MACHINE} \
16 --prefix=/usr
17
49e0e073
MT
18# By default, take all patches from the patches directory
19# in alphabetical order.
962d2e09 20patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
fa913867 21sources = %{thisapp}.tar.gz
c07a3ca7
MT
22
23# Macro definitions
24
25# Macro to extract tarballs.
26# Guesses the compression type automatically.
8d56ad0b 27MACRO_EXTRACT = tar xaf
c07a3ca7 28
c07a3ca7 29# Remove rpath from libtool.
4d5abec7 30MACRO_FIX_LIBTOOL
c07a3ca7
MT
31 if [ -e "%{DIR_APP}/libtool" ]; then
32 sed -e %{DIR_APP}/libtool \
33 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
34 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
35 fi
36end