37 lines
996 B
Makefile
37 lines
996 B
Makefile
# $NetBSD: Makefile.common,v 1.4 2005/11/03 14:34:40 rillig Exp $
|
|
# $Id: Makefile.common,v 1.4 2005/11/03 14:34:40 rillig Exp $
|
|
|
|
MAINTAINER?= grant@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
|