summaryrefslogtreecommitdiff
path: root/mk/pkgformat/pkg/pkgformat.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/pkgformat/pkg/pkgformat.mk')
-rw-r--r--mk/pkgformat/pkg/pkgformat.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/mk/pkgformat/pkg/pkgformat.mk b/mk/pkgformat/pkg/pkgformat.mk
new file mode 100644
index 00000000000..2652c3da044
--- /dev/null
+++ b/mk/pkgformat/pkg/pkgformat.mk
@@ -0,0 +1,27 @@
+# $NetBSD: pkgformat.mk,v 1.1 2011/10/15 00:23:09 reed Exp $
+#
+# This Makefile fragment provides variable and target overrides that are
+# specific to the pkgsrc native package format.
+#
+
+# PKG_FILELIST_CMD outputs the list of files owned by ${PKGNAME} as
+# registered on the system.
+#
+# For DESTDIR support, just use _DEPENDS_PLIST instead.
+#
+.if ${_USE_DESTDIR} == "no"
+PKG_FILELIST_CMD= ${PKG_INFO} -qL ${PKGNAME:Q}
+.else
+PKG_FILELIST_CMD= ${SED} -e "/^@/d" -e "s|^|${PREFIX}/|" ${_DEPENDS_PLIST}
+.endif
+
+.include "depends.mk"
+.include "check.mk"
+.include "metadata.mk"
+.include "install.mk"
+.include "deinstall.mk"
+.include "replace.mk"
+.include "package.mk"
+.include "views.mk"
+
+.include "utility.mk"