]> git.ipfire.org Git - people/stevee/pakfire.git/blob - macros/constants.macro
Merge branch 'debuginfo'
[people/stevee/pakfire.git] / macros / constants.macro
1
2 BUILDROOT = %{DIR_BUILD}/%{name}-%{thisver}
3
4 DIR_BUILD = /builddir
5 DIR_APP = %{DIR_SRC}/%{thisapp}
6 DIR_DL = %{BASEDIR}/files
7 DIR_PATCHES = %{BASEDIR}/patches
8 DIR_SRC = %{DIR_BUILD}/source
9 DIR_TMP = /tmp
10 DIR_SOURCE = %{BASEDIR}
11
12 CONFIGURE_SCRIPT = configure
13 configure_options = \
14 --host=%{DISTRO_MACHINE} \
15 --build=%{DISTRO_MACHINE} \
16 --prefix=/usr
17
18 # By default, take all patches from the patches directory
19 # in alphabetical order.
20 patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
21 sources = %{thisapp}.tar.gz
22
23 # Macro definitions
24
25 # Macro to extract tarballs.
26 # Guesses the compression type automatically.
27 MACRO_EXTRACT = tar xaf
28
29 # Remove rpath from libtool.
30 MACRO_FIX_LIBTOOL
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
36 end