Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / multimedia / gst-plugins1-base / plugins.mk
blob9cbe028c1fc70e722bdf94a359912149c5f6ece9
1 # $NetBSD: plugins.mk,v 1.10 2010/11/07 20:31:37 jmmv Exp $
3 # This file is shared across the gst-plugins-{base,good} packages to
4 # simplify their code. It provides a framework to write simple packages
5 # providing individual plugins; note that these packages must not include
6 # this file, but use the correct Makefile.common instead.
9 DISTNAME= gst-plugins-${GST_PLUGINS1_TYPE}-${GST_PLUGINS1_VER}
10 PKGNAME= ${DISTNAME:S/plugins/plugins1/}
11 CATEGORIES= multimedia gnome
12 MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-plugins-${GST_PLUGINS1_TYPE}/
13 EXTRACT_SUFX= .tar.xz
15 MAINTAINER= pkgsrc-users@NetBSD.org
16 HOMEPAGE= http://gstreamer.freedesktop.org/
17 COMMENT= Open source multimedia framework -
19 DISTINFO_FILE= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/distinfo
20 FILESDIR= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/files
21 PATCHDIR= ${.CURDIR}/../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/patches
23 GNU_CONFIGURE= yes
24 USE_TOOLS+= gmake pkg-config
25 USE_LIBTOOL= yes
26 USE_PKGLOCALEDIR= yes
28 CONFIGURE_ARGS+= --disable-examples
29 CONFIGURE_ARGS+= --disable-experimental
30 CONFIGURE_ARGS+= --disable-debug
31 CONFIGURE_ARGS+= --disable-valgrind
32 CONFIGURE_ARGS+= --enable-external
33 CONFIGURE_ARGS+= --enable-nls
34 CONFIGURE_ARGS+= --enable-rpath
35 CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc/gst-plugins-0.10
37 .include "../../mk/compiler.mk"
39 .if !empty(PKGSRC_COMPILER:Msunpro)
40 # SunPro cc understands __func__ but CC does not, so disable explicitly.
41 CONFIGURE_ENV+= have_func=no
42 .endif
44 # A package building a single plugin of gst-plugins1 has to include this
45 # file and define the following variables:
46 # GST_PLUGINS1_NAME - The name of the plugin, to be added to the package
47 # name and the comment.
48 # GST_PLUGINS1_DIRS - The directory where the plugin resides; a relative
49 # path from WRKSRC.
50 # GST_PLUGINS1_FLAGS - The name of the flag used to enable the plugin.
51 # Defaults to GST_PLUGINS1_NAME.
52 .if defined(GST_PLUGINS1_NAME) && !empty(GST_PLUGINS1_NAME)
53 PKGNAME:= ${PKGNAME:S/${GST_PLUGINS1_TYPE}/${GST_PLUGINS1_NAME}/}
54 COMMENT+= ${GST_PLUGINS1_NAME} plugin
56 .include "../../mk/bsd.prefs.mk"
58 GST_PLUGINS1_FLAGS?= ${GST_PLUGINS1_NAME}
59 GST_PLUGINS1_DIRS?= non-existent
61 . for _f_ in ${GST_PLUGINS1_FLAGS}
62 CONFIGURE_ARGS:= ${CONFIGURE_ARGS:S/--disable-${_f_}/--enable-${_f_}/}
63 . endfor
65 BUILD_DIRS= ${GST_PLUGINS1_DIRS}
66 INSTALL_DIRS= ${GST_PLUGINS1_DIRS}
68 # Fix paths to already installed libraries (by the gst-plugins package).
69 SUBST_CLASSES+= libs
70 SUBST_MESSAGE.libs= Fixing path to dependent libraries.
71 SUBST_STAGE.libs= pre-configure
72 SUBST_FILES.libs=
73 . for _d_ in ${GST_PLUGINS1_DIRS}
74 SUBST_FILES.libs+= ${_d_}/Makefile.in
75 . endfor
76 SUBST_SED.libs= -e 's|$$(top_builddir)/gst-libs/gst/.*/libgst|${BUILDLINK_PREFIX.gst-plugins1-${GST_PLUGINS1_TYPE}}/lib/libgst|g'
78 .include "../../multimedia/gst-plugins1-${GST_PLUGINS1_TYPE}/buildlink3.mk"
79 .endif
81 .include "../../converters/libiconv/buildlink3.mk"
82 .include "../../devel/gettext-lib/buildlink3.mk"
83 .include "../../devel/glib2/buildlink3.mk"
84 .include "../../multimedia/gstreamer1/buildlink3.mk"