configure = [ -x "%{DIR_APP}/%{CONFIGURE_SCRIPT}" ] && %{DIR_APP}/%{CONFIGURE_SCRIPT} %{configure_options}
- # These variables are used if you have to add some targets
- # directly to the make command.
+ # GNU Make Stuff
+ __make = make -O
+
+ # Default "make" command
+ make_build = %{__make} %{PARALLELISMFLAGS} %{make_build_targets}
+
+ # Default "make install" command
+ make_install = %{__make} DESTDIR=%{BUILDROOT} %{make_install_targets}
+
+ # These variables are used if you have to add some targets directly to the make command
+ # LEGACY: DO NOT USE ANY MORE
make_build_targets =
make_install_targets = install
# Remove any RPATH stuff from locally installed libtool
%{MACRO_FIX_LIBTOOL}
- # Run custom commands.
+ # Run custom commands
%{configure_cmds}
- make %{PARALLELISMFLAGS} %{make_build_targets}
+ # Run build
+ %{make_build}
# Run more custom commands.
%{build_cmds}
def _install
[ -d "%{DIR_BUILD}" ] && cd %{DIR_BUILD}
+ # Create BUILDROOT
mkdir -pv %{BUILDROOT}
%{install}
%{MACRO_INSTALL_FILES}
%{MACRO_PYTHON_COMPILE}
- # Cleanup perl modules.
+ # Cleanup perl modules
%{perl_cleanup}
%{install_post}
end
def install
- make DESTDIR=%{BUILDROOT} %{make_install_targets}
+ # Install
+ %{make_install}
- # Run custom commands.
+ # Run custom commands
%{install_cmds}
end
-
- # XXX to be removed soon
- def install_post
- end
-
- # Enable strict processing of build-id by default.
- # The build will fail if a file is missing its build-id.
- debuginfo_strict_build_id = true
- debuginfo_options =
end