# Pre-defined build scripts.
build
- configure = [ -x "%{CONFIGURE_SCRIPT}" ] && ./%{CONFIGURE_SCRIPT} %{configure_options}
+ DIR_BUILD = %{DIR_APP}/%{BUILD_DIR}
+
+ 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.
mkdir -p %{DIR_SRC} && cd %{DIR_SRC}
%{prepare}
+
+ # Create the build directory
+ mkdir -pv %{DIR_BUILD}
end
def prepare
end
def _build
- [ -d "%{DIR_APP}" ] && cd %{DIR_APP}
+ [ -d "%{DIR_BUILD}" ] && cd %{DIR_BUILD}
%{build}
end
end
def _test
- [ -d "%{DIR_APP}" ] && cd %{DIR_APP}
+ [ -d "%{DIR_BUILD}" ] && cd %{DIR_BUILD}
%{test}
end
end
def _install
- [ -d "%{DIR_APP}" ] && cd %{DIR_APP}
+ [ -d "%{DIR_BUILD}" ] && cd %{DIR_BUILD}
mkdir -pv %{BUILDROOT}
-BUILDROOT = %{DIR_BUILD}/%{name}-%{thisver}
-
-DIR_BUILD = /builddir
DIR_APP = %{DIR_SRC}/%{thisapp}
DIR_DL = %{BASEDIR}/files
DIR_PATCHES = %{BASEDIR}/patches
-DIR_SRC = %{DIR_BUILD}/source
+DIR_SRC = /build/source
DIR_TMP = /tmp
DIR_SOURCE = %{BASEDIR}