summaryrefslogtreecommitdiff
path: root/mk/pkg-bottom.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-28 16:33:41 +0100
commit444176e8aa3a958f147f15542793678b619be262 (patch)
tree3bae8dc0b3fd98ebffc239c6f4d0bb2e7604d957 /mk/pkg-bottom.mk
parent05abc676e9272fdf933e0ea376bb12d8ec497467 (diff)
fix host build stuff and update-patches, convert cifs-utils and libaudiofile to new autotool infrastructure
Diffstat (limited to 'mk/pkg-bottom.mk')
-rw-r--r--mk/pkg-bottom.mk27
1 files changed, 9 insertions, 18 deletions
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index f0af93810..bf8ed4ea3 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -11,27 +11,17 @@
# * if you have a style -> define a pre-foo: and post-foo: if they
# are required, but the do-foo: magic is done here
-REORDER_DEPENDENCIES= ${TOPDIR}/scripts/automake.dep
PKG_LIBNAME?= $(PKG_NAME)
pre-configure:
do-configure:
post-configure:
-${_CONFIGURE_COOKIE}: ${_HOST_COOKIE} ${_PATCH_COOKIE}
- @sed -e '/^#/d' ${REORDER_DEPENDENCIES} | \
- tsort | while read f; do \
- cd ${WRKSRC}; \
- case $$f in \
- /*) \
- find . -name "$${f#/}" -print | while read i; do \
- touch "$$i"; \
- done;; \
- *) \
- if test -e "$$f" ; then \
- touch "$$f"; \
- fi;; \
- esac; \
- done
+${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}
+ifneq (,$(filter autoreconf,${AUTOTOOL_STYLE}))
+ cd ${WRKSRC}; env ${AUTOTOOL_ENV} autoreconf -if
+ rm -rf ${WRKSRC}/autom4te.cache
+ touch ${WRKDIR}/.autoreconf_done
+endif
mkdir -p ${WRKBUILD}
@${MAKE} pre-configure $(MAKE_TRACE)
@@ -109,7 +99,6 @@ post-build:
${_BUILD_COOKIE}: ${_CONFIGURE_COOKIE}
@env ${MAKE_ENV} ${MAKE} pre-build $(MAKE_TRACE)
@$(CMD_TRACE) "compiling... "
-
ifneq ($(filter manual,${BUILD_STYLE}),)
env ${MAKE_ENV} ${MAKE} do-build $(MAKE_TRACE)
else ifeq ($(strip ${BUILD_STYLE}),)
@@ -127,7 +116,7 @@ do-install:
post-install:
spkg-install: ${ALL_POSTINST}
${_FAKE_COOKIE}: ${_BUILD_COOKIE}
- -rm -f ${_ALL_CONTROLS}
+ @-rm -f ${_ALL_CONTROLS}
@mkdir -p '${STAGING_PKG_DIR}' ${WRKINST} '${STAGING_DIR}/scripts'
@${MAKE} ${_ALL_CONTROLS} $(MAKE_TRACE)
@env ${MAKE_ENV} ${MAKE} pre-install $(MAKE_TRACE)
@@ -222,6 +211,7 @@ ${_IPKGS_COOKIE}:
exec ${MAKE} package
package: ${ALL_IPKGS}
+ifneq ($(DEVELOPER),)
@cd ${WRKDIR}/fake-${CPU_ARCH} || exit 1; \
y=; sp=; for x in ${ALL_IDIRS}; do \
y="$$y$$sp$${x#$(WRKDIR)/fake-${CPU_ARCH}/}"; \
@@ -257,6 +247,7 @@ package: ${ALL_IPKGS}
ln=$$name; \
li=$$inode; \
done
+endif
touch ${_IPKGS_COOKIE}
clean-targets: clean-dev-generic