pkgsrc-wip/debian_linux/Makefile.common
grant beattie f05fb057fb initial import of debian linux compat packages.
- these packages are *very* incomplete. testing/improvements/fixes are
  definitely needed.

- firefox for Linux/i386 starts about 50% of the time (and runs
  flawlessly when it does) on NetBSD 2.0E with these libraries, but this
  may be a Linux compat issue. I haven't really tested much else.

- ldconfig handling is non-existant yet.

the packages are taken from the latest unstable debian tree dated
20040607.
2004-06-11 09:59:39 +00:00

35 lines
886 B
Makefile

# $Id: Makefile.common,v 1.1.1.1 2004/06/11 10:00:38 grantbeattie Exp $
MAINTAINER?= grant@NetBSD.org
HOMEPAGE?= http://www.debian.org/
DIST_SUBDIR= debian_linux
NO_CONFIGURE= # defined
NO_BUILD= # defined
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}
. for _deb_ in ${DEBS}
cd ${DEBIAN_EMUL_DIR} && \
${TAR} -zxpf ${WRKDIR}/${_deb_}/data.tar.gz
. endfor
.endif