openbsd-ports/graphics/swfdec/Makefile
ajacoutot b76b0b4419 Bring consistency in GStreamer dependencies:
- remove most dependencies on plugins-bad and plugins-ugly; there is no reason
on depend on these because they should only provide support for rare and/or
rarely used codecs
- for standard how-of-the-box support for most modern files, always depend on
plugins-good and plugins-ffmpeg|libav.

gstreamer1 parts from Brad, gstreamer-0.10 parts from me
2015-10-07 05:50:24 +00:00

55 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.38 2015/10/07 05:50:25 ajacoutot Exp $
COMMENT= flash rendering library
DISTNAME= swfdec-0.8.4
REVISION= 11
SHARED_LIBS += swfdec-0.8 0.0 # .90.0
SHARED_LIBS += swfdec-gtk-0.8 0.0 # .90.0
CATEGORIES= graphics
HOMEPAGE= http://swfdec.freedesktop.org/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${HOMEPAGE}download/swfdec/0.8/
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 cairo expat ffi fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 gstpbutils-0.10 gstreamer-0.10 gthread-2.0
WANTLIB += gtk-x11-2.0 harfbuzz lzma m oil-0.3 pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
WANTLIB += sndio soup-2.4 sqlite3 xcb xcb-render xcb-shm xml2 z
LIB_DEPENDS= devel/libsoup \
devel/liboil \
multimedia/gstreamer-0.10/plugins-base \
x11/gtk+2
RUN_DEPENDS= multimedia/gstreamer-0.10/plugins-good \
multimedia/gstreamer-0.10/plugins-ffmpeg
MODULES= devel/gettext
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-audio=sndio \
--enable-gtk \
--enable-gstreamer
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PKG_CONFIG_PATH="${LOCALBASE}/lib/pkgconfig"
AUTOCONF_VERSION= 2.61
AUTOMAKE_VERSION= 1.9
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
devel/libtool #XXX needs libtoolize
post-patch:
@cp ${FILESDIR}/swfdec_playback_sndio.c ${WRKSRC}/swfdec-gtk/
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf -i -f
.include <bsd.port.mk>