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} \
23 tarball = %{thisapp}.tar.gz
27 # Macro to extract tarballs.
28 # Guesses the compression type automatically.
29 MACRO_EXTRACT = tar xvaf
31 # Macro to define and start the quality agent.
32 # Long term goal is to improve the commited code.
33 MACRO_QUALITY_AGENT = /usr/lib/pakfire/quality-agent
35 # Macro to strip debugging symbols.
36 MACRO_STRIP = /usr/lib/buildsystem-tools/stripper %{BUILDROOT}
41 if [ -n "${patches}" ]; then
43 for patch in ${patches}; do
44 _patches="${_patches} %{DIR_PATCHES}/${patch}"
49 for patch in %{DIR_PATCHES}/*.{diff,patch{,0}}; do
50 [ -e "${patch}" ] || continue
51 patches="${patches} ${patch}"
55 for patch in ${patches}; do
67 unset cmd patch patches
70 # Remove rpath from libtool.
72 if [ -e "%{DIR_APP}/libtool" ]; then
73 sed -e %{DIR_APP}/libtool \
74 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
75 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'