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