summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2011-01-06 20:36:50 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-06 21:45:06 +0100
commit163b7e51f5dba02aa640ce933976719c7b8018d5 (patch)
tree4978d10620339a557c74265d781d5c951a6e11d6 /mk
parent995996dc0123cfbb483629aa6307c180a9eeeffa (diff)
automatic post-postinstall targets, and exemplary switch of zlib to it
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/package.mk2
-rw-r--r--mk/pkg-bottom.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/mk/package.mk b/mk/package.mk
index edbf3c6d5..fb66a0aaf 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -142,6 +142,8 @@ IDIR_$(1)= $(WRKDIR)/fake-${CPU_ARCH}/pkg-$(2)
ifneq (${ADK_PACKAGE_$(1)}${DEVELOPER},)
ALL_IPKGS+= $$(IPKG_$(1))
ALL_IDIRS+= $${IDIR_$(1)}
+ALL_POSTINST+= $(2)-install
+$(2)-install:
endif
INFO_$(1)= $(PKG_STATE_DIR)/info/$(2).list
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index 122198e45..6e5fdc3a5 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -127,6 +127,7 @@ endif
pre-install:
do-install:
post-install:
+spkg-install: ${ALL_POSTINST}
${_FAKE_COOKIE}: ${_BUILD_COOKIE}
-rm -f ${_ALL_CONTROLS}
@mkdir -p '${STAGING_PKG_DIR}' ${WRKINST} '${STAGING_TARGET_DIR}/scripts'
@@ -145,6 +146,7 @@ else
@echo "Invalid INSTALL_STYLE '${INSTALL_STYLE}'" >&2
@exit 1
endif
+ env ${MAKE_ENV} ${MAKE} spkg-install $(MAKE_TRACE)
ifeq ($(ADK_NATIVE),)
@for a in ${WRKINST}/usr/{bin/*-config,lib/pkgconfig/*.pc}; do \
[[ -e $$a ]] || continue; \