2 BUILDROOT = %{DIR_TMP}/buildroot_%{name}-%{thisver}
5 DIR_APP = %{DIR_SRC}/%{thisapp}
6 DIR_DL = %{BASEDIR}/files
7 DIR_PATCHES = %{BASEDIR}/patches
10 DIR_SOURCE = %{BASEDIR}
12 CONFIGURE_SCRIPT = configure
14 --host=%{DISTRO_MACHINE} \
15 --build=%{DISTRO_MACHINE} \
19 sources = %{thisapp}.tar.gz
23 # Macro to extract tarballs.
24 # Guesses the compression type automatically.
25 MACRO_EXTRACT = tar xaf
30 if [ -n "${patches}" ]; then
32 for patch in ${patches}; do
33 _patches="${_patches} %{DIR_PATCHES}/${patch}"
38 for patch in %{DIR_PATCHES}/*.{diff,patch{,0}}; do
39 [ -e "${patch}" ] || continue
40 patches="${patches} ${patch}"
44 for patch in ${patches}; do
56 unset cmd patch patches
59 # Remove rpath from libtool.
61 if [ -e "%{DIR_APP}/libtool" ]; then
62 sed -e %{DIR_APP}/libtool \
63 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
64 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'