8 DIR_APP = %{DIR_SRC}/%{thisapp}
9 DIR_DL = %{BASEDIR}/files
10 DIR_PATCHES = %{BASEDIR}/patches
13 DIR_SOURCE = %{BASEDIR}
15 CONFIGURE_SCRIPT = configure
17 --host=%{DISTRO_MACHINE} \
18 --build=%{DISTRO_MACHINE} \
22 sources = %{thisapp}.tar.gz
26 # Macro to extract tarballs.
27 # Guesses the compression type automatically.
28 MACRO_EXTRACT = tar xaf
33 if [ -n "${patches}" ]; then
35 for patch in ${patches}; do
36 _patches="${_patches} %{DIR_PATCHES}/${patch}"
41 for patch in %{DIR_PATCHES}/*.{diff,patch{,0}}; do
42 [ -e "${patch}" ] || continue
43 patches="${patches} ${patch}"
47 for patch in ${patches}; do
59 unset cmd patch patches
62 # Remove rpath from libtool.
64 if [ -e "%{DIR_APP}/libtool" ]; then
65 sed -e %{DIR_APP}/libtool \
66 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
67 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'