2 BUILDROOT = %{DIR_TMP}/buildroot_%{name}-%{thisver}
4 DIR_APP = %{DIR_SRC}/%{thisapp}
5 DIR_DL = %{BASEDIR}/files
6 DIR_PATCHES = %{BASEDIR}/patches
9 DIR_SOURCE = %{BASEDIR}
11 CONFIGURE_SCRIPT = configure
13 --host=%{DISTRO_MACHINE} \
14 --build=%{DISTRO_MACHINE} \
17 # By default, take all patches from the patches directory
18 # in alphabetical order.
19 patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
20 sources = %{thisapp}.tar.gz
24 # Macro to extract tarballs.
25 # Guesses the compression type automatically.
26 MACRO_EXTRACT = tar xaf
28 # Remove rpath from libtool.
30 if [ -e "%{DIR_APP}/libtool" ]; then
31 sed -e %{DIR_APP}/libtool \
32 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
33 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'