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
30 # Macro to strip debugging symbols.
31 MACRO_STRIP = /usr/lib/buildsystem-tools/stripper %{BUILDROOT}
36 if [ -n "${patches}" ]; then
38 for patch in ${patches}; do
39 _patches="${_patches} %{DIR_PATCHES}/${patch}"
44 for patch in %{DIR_PATCHES}/*.{diff,patch{,0}}; do
45 [ -e "${patch}" ] || continue
46 patches="${patches} ${patch}"
50 for patch in ${patches}; do
62 unset cmd patch patches
65 # Remove rpath from libtool.
67 if [ -e "%{DIR_APP}/libtool" ]; then
68 sed -e %{DIR_APP}/libtool \
69 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
70 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'