]> git.ipfire.org Git - pakfire.git/blob - macros/constants.macro
jail: Replace communication callbacks by setting callbacks
[pakfire.git] / macros / constants.macro
1
2 DIR_APP = %{DIR_SRC}/%{thisapp}
3 DIR_DL = %{BASEDIR}/files
4 DIR_PATCHES = %{BASEDIR}/patches
5 DIR_SRC = /build/source
6 DIR_TMP = /tmp
7 DIR_SOURCE = %{BASEDIR}
8
9 # By default, take all patches from the patches directory
10 # in alphabetical order.
11 patches = %(find %{DIR_PATCHES} %{DIR_PATCHES}/%{DISTRO_ARCH} -not -type d -maxdepth 1 2>/dev/null | sort --version-sort)
12 sources = %{thisapp}.tar.gz
13
14 # Macro definitions
15
16 # Macro to extract tarballs.
17 # Guesses the compression type automatically.
18 MACRO_EXTRACT = tar --no-same-owner --no-acls --no-xattrs -xaf
19
20 # Remove rpath from libtool.
21 MACRO_FIX_LIBTOOL
22 if [ -e "libtool" ]; then
23 sed -i libtool \
24 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
25 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
26 fi
27 end