]> git.ipfire.org Git - people/stevee/pakfire.git/blob - macros/constants.macro
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
[people/stevee/pakfire.git] / macros / constants.macro
1
2 BUILDROOT = %{DIR_TMP}/buildroot_%{name}-%{thisver}
3
4 DIR_APP = %{DIR_SRC}/%{thisapp}
5 DIR_DL = %{BASEDIR}/files
6 DIR_PATCHES = %{BASEDIR}/patches
7 DIR_SRC = /usr/src
8 DIR_TMP = /tmp
9 DIR_SOURCE = %{BASEDIR}
10
11 CONFIGURE_SCRIPT = configure
12 configure_options = \
13 --host=%{DISTRO_MACHINE} \
14 --build=%{DISTRO_MACHINE} \
15 --prefix=/usr
16
17 # By default, take all patches from the patches directory
18 # in alphabetical order.
19 patches = $(find %{DIR_PATCHES} -not -type d 2>/dev/null | sort)
20 sources = %{thisapp}.tar.gz
21
22 # Macro definitions
23
24 # Macro to extract tarballs.
25 # Guesses the compression type automatically.
26 MACRO_EXTRACT = tar xaf
27
28 # Remove rpath from libtool.
29 MACRO_FIX_LIBTOOL
30 if [ -e "%{DIR_APP}/libtool" ]; then
31 sed -e %{DIR_APP}/libtool \
32 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
33 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
34 fi
35 end