pkgsrc-wip/debian_linux/Makefile.common

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile.common,v 1.6 2010/03/21 16:29:52 thomasklausner Exp $
# $Id: Makefile.common,v 1.6 2010/03/21 16:29:52 thomasklausner Exp $
# used by wip/debian_base/Makefile
# used by wip/debian_glib/Makefile
# used by wip/debian_gtk/Makefile
# used by wip/debian_x11/Makefile
MAINTAINER?= pkgsrc-users@NetBSD.org
HOMEPAGE?= http://www.debian.org/
DIST_SUBDIR= debian_linux
NO_CONFIGURE= yes
NO_BUILD= yes
DEBIAN_EMUL_DIR= ${PREFIX}/emul/debian_linux
WRKDIR_DEBS?= ${WRKDIR}/var/cache/apt/archives
EXTRACT_CMD.deb= ${AR} x $${extract_file} data.tar.gz
.PHONY: do-extract-deb
.if !target(do-extract-deb)
do-extract-deb: ${WRKDIR}
. for _deb_ in ${DEBS}
${_PKG_SILENT}${_PKG_DEBUG} ${MKDIR} ${WRKDIR}/${_deb_}
${_PKG_SILENT}${_PKG_DEBUG} \
extract_file="${DISTDIR}/${DIST_SUBDIR}/${_deb_}"; \
export extract_file; \
cd ${WRKDIR}/${_deb_} && ${EXTRACT_CMD.deb}
. endfor
.endif
.PHONY: do-install-deb
.if !target(do-install-deb)
do-install-deb: ${WRKDIR}
${_PKG_SILENT}${_PKG_DEBUG}${INSTALL_BIN_DIR} ${DEBIAN_EMUL_DIR}
. for _deb_ in ${DEBS}
cd ${DEBIAN_EMUL_DIR} && \
${TAR} -zxpf ${WRKDIR}/${_deb_}/data.tar.gz
. endfor
.endif