summaryrefslogtreecommitdiff
path: root/multimedia/gstreamer0.8/plugins.mk
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2006-01-18 12:44:00 +0000
committerjmmv <jmmv@pkgsrc.org>2006-01-18 12:44:00 +0000
commit242def50680f318f43cc95c2712cf7d34b63d0a9 (patch)
tree2778145e81c274bac6cb238b5ac96ed84209f993 /multimedia/gstreamer0.8/plugins.mk
parent1e6d860699c0e5cbdf4351a6627f0aecfa84d4ad (diff)
downloadpkgsrc-242def50680f318f43cc95c2712cf7d34b63d0a9.tar.gz
Rename gstreamer, gst-plugins and gst-plugins-* to gstreamer0.8,
gst-plugins0.8 and gst-plugins0.8-* respectively. This is to leave room for gstreamer 0.10 (which will be added with versioned names too, to avoid annoying renames in the future). While here, do some changes: - Make gstreamer0.8 use the alternatives system to provide the unversioned gst-* utilities. - Rename all internal variables to have 0.8 in them to make it clear which package they belong to.
Diffstat (limited to 'multimedia/gstreamer0.8/plugins.mk')
-rw-r--r--multimedia/gstreamer0.8/plugins.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/multimedia/gstreamer0.8/plugins.mk b/multimedia/gstreamer0.8/plugins.mk
new file mode 100644
index 00000000000..8682a73bec5
--- /dev/null
+++ b/multimedia/gstreamer0.8/plugins.mk
@@ -0,0 +1,31 @@
+# $NetBSD: plugins.mk,v 1.1 2006/01/18 12:44:04 jmmv Exp $
+#
+# This Makefile fragment is intended to be included by packages that install
+# GStreamer modules. It takes care of rebuilding the corresponding databases
+# at (de)installation time.
+#
+
+.if !defined(GSTREAMER0.8_PLUGINS_MK)
+GSTREAMER0.8_PLUGINS_MK= # defined
+
+GST0.8_DBDIR= ${BUILDLINK_PREFIX.gstreamer0.8}/libdata/gstreamer-0.8
+GST0.8_COMPPREP= ${BUILDLINK_PREFIX.gstreamer0.8}/bin/gst-compprep-0.8
+GST0.8_REGISTER= ${BUILDLINK_PREFIX.gstreamer0.8}/bin/gst-register-0.8
+
+FILES_SUBST+= GST0.8_DBDIR=${GST0.8_DBDIR:Q}
+FILES_SUBST+= GST0.8_COMPPREP=${GST0.8_COMPPREP:Q}
+FILES_SUBST+= GST0.8_REGISTER=${GST0.8_REGISTER:Q}
+INSTALL_EXTRA_TMPL+= ../../multimedia/gstreamer0.8/files/plugins.tmpl
+DEINSTALL_EXTRA_TMPL+= ../../multimedia/gstreamer0.8/files/plugins.tmpl
+
+PRINT_PLIST_AWK+= /^libdata\/gstreamer-0.8/ { next; }
+PRINT_PLIST_AWK+= /^@dirrm libdata\/gstreamer-0.8/ { next; }
+
+.if defined(_GSTREAMER0.8_NO_DEPEND)
+BUILDLINK_PREFIX.gstreamer0.8= ${LOCALBASE}
+.else
+BUILDLINK_DEPENDS.gstreamer0.8+= gstreamer0.8>=0.8.1
+. include "../../multimedia/gstreamer0.8/buildlink3.mk"
+.endif
+
+.endif # GSTREAMER0.8_PLUGINS_MK