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} \
18 sources = %{thisapp}.tar.gz
22 # Macro to extract tarballs.
23 # Guesses the compression type automatically.
24 MACRO_EXTRACT = tar xaf
29 if [ -n "${patches}" ]; then
31 for patch in ${patches}; do
32 _patches="${_patches} %{DIR_PATCHES}/${patch}"
37 for patch in %{DIR_PATCHES}/*.{diff,patch{,0}}; do
38 [ -e "${patch}" ] || continue
39 patches="${patches} ${patch}"
43 for patch in ${patches}; do
55 unset cmd patch patches
58 # Remove rpath from libtool.
60 if [ -e "%{DIR_APP}/libtool" ]; then
61 sed -e %{DIR_APP}/libtool \
62 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
63 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'