update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / debian_linux / Makefile.common
1 # $NetBSD$
2 # $Id: Makefile.common,v 1.5 2008/05/24 15:34:09 tnn2 Exp $
3 # used by wip/debian_base/Makefile
4 # used by wip/debian_glib/Makefile
5 # used by wip/debian_gtk/Makefile
6 # used by wip/debian_x11/Makefile
7
8 MAINTAINER?=            grant@NetBSD.org
9 HOMEPAGE?=              http://www.debian.org/
10
11 DIST_SUBDIR=            debian_linux
12
13 NO_CONFIGURE=           yes
14 NO_BUILD=               yes
15
16 DEBIAN_EMUL_DIR=        ${PREFIX}/emul/debian_linux
17
18 WRKDIR_DEBS?=           ${WRKDIR}/var/cache/apt/archives
19 EXTRACT_CMD.deb=        ${AR} x $${extract_file} data.tar.gz
20
21 .PHONY: do-extract-deb
22 .if !target(do-extract-deb)
23 do-extract-deb: ${WRKDIR}
24 .  for _deb_ in ${DEBS}
25         ${_PKG_SILENT}${_PKG_DEBUG} ${MKDIR} ${WRKDIR}/${_deb_}
26         ${_PKG_SILENT}${_PKG_DEBUG} \
27         extract_file="${DISTDIR}/${DIST_SUBDIR}/${_deb_}"; \
28         export extract_file; \
29         cd ${WRKDIR}/${_deb_} && ${EXTRACT_CMD.deb}
30 .  endfor
31 .endif
32
33 .PHONY: do-install-deb
34 .if !target(do-install-deb)
35 do-install-deb: ${WRKDIR}
36         ${_PKG_SILENT}${_PKG_DEBUG}${INSTALL_BIN_DIR} ${DEBIAN_EMUL_DIR}
37 .  for _deb_ in ${DEBS}
38         cd ${DEBIAN_EMUL_DIR} && \
39                 ${TAR} -zxpf ${WRKDIR}/${_deb_}/data.tar.gz
40 .  endfor
41 .endif