2002-07-15 23:44:09 +02:00
|
|
|
# New ports collection makefile for: gstreamer plugins
|
|
|
|
# Date created: Wed Jul 10 23:38:01 UTC 2002
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gstreamer
|
2005-09-08 20:32:13 +02:00
|
|
|
PORTVERSION= 0.8.11
|
2005-11-05 06:22:06 +01:00
|
|
|
PORTREVISION?= 1
|
2005-02-28 23:16:10 +01:00
|
|
|
CATEGORIES?= multimedia audio
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME} \
|
|
|
|
http://gstreamer.freedesktop.org/src/gst-plugins/
|
2004-04-05 05:11:39 +02:00
|
|
|
MASTER_SITE_SUBDIR= sources/gst-plugins/0.8
|
2005-02-28 23:16:10 +01:00
|
|
|
PKGNAMESUFFIX= -plugins${GST_PLUGIN_SUFFIX}
|
2002-07-15 23:44:09 +02:00
|
|
|
DISTNAME= gst-plugins-${PORTVERSION}
|
Update to GNOME 2.4.0. For all the goodies on what's changed, known issues,
future plans, etc., please see http://www.gnome.org/start/2.4/.
This commit represents work done by adamw, bland, and myself as well as
many other contributers:
Koop Mast <einekoai@chello.nl>
Akifyev Sergey <asa@gascom.ru>
Franz Klammer <klammer@webonaut.com>
Øyvind Kolbu <oyvind@kebab.gaffel.nu>
Thomas E. Zander <riggs@rrr.de>
Jeremy Messenger <mezz7@cox.net>
Without these contirbuters, and our faithful users, GNOME 2.4.0 would not
be possible.
Please check the FreeBSD GNOME site for any FreeBSD gotchas, as well as
general FAQs and documentation (GNOME 2.4 updates to be posted soon). The
best way to upgrade so that you get all shared library dependencies is:
portupgrade -rf -m BATCH=yes atk
portupgrade -R -m BATCH=yes gnome2
Approved by: portmgr (kris, will, myself implicitly)
Requested by: re as well as many other users
2003-09-18 08:49:37 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-10-03 00:37:50 +02:00
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
2005-02-28 23:16:10 +01:00
|
|
|
COMMENT?= GStreamer written collection of plugins handling several media types
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
LIB_DEPENDS+= gstreamer-0.8.5:${PORTSDIR}/multimedia/gstreamer \
|
2003-11-07 08:37:03 +01:00
|
|
|
popt.0:${PORTSDIR}/devel/popt
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
SHLIB_VERSION= 1
|
|
|
|
VERSION= 0.8
|
|
|
|
|
|
|
|
WANT_GSTREAMER= yes
|
2002-11-14 18:24:09 +01:00
|
|
|
USE_X_PREFIX= yes
|
Update to GNOME 2.4.0. For all the goodies on what's changed, known issues,
future plans, etc., please see http://www.gnome.org/start/2.4/.
This commit represents work done by adamw, bland, and myself as well as
many other contributers:
Koop Mast <einekoai@chello.nl>
Akifyev Sergey <asa@gascom.ru>
Franz Klammer <klammer@webonaut.com>
Øyvind Kolbu <oyvind@kebab.gaffel.nu>
Thomas E. Zander <riggs@rrr.de>
Jeremy Messenger <mezz7@cox.net>
Without these contirbuters, and our faithful users, GNOME 2.4.0 would not
be possible.
Please check the FreeBSD GNOME site for any FreeBSD gotchas, as well as
general FAQs and documentation (GNOME 2.4 updates to be posted soon). The
best way to upgrade so that you get all shared library dependencies is:
portupgrade -rf -m BATCH=yes atk
portupgrade -R -m BATCH=yes gnome2
Approved by: portmgr (kris, will, myself implicitly)
Requested by: re as well as many other users
2003-09-18 08:49:37 +02:00
|
|
|
USE_BZIP2= yes
|
2003-02-05 19:20:43 +01:00
|
|
|
USE_GMAKE= yes
|
2005-02-28 23:16:10 +01:00
|
|
|
USE_GNOME+= gnomehack \
|
2003-04-22 07:46:20 +02:00
|
|
|
gnomeprefix \
|
2005-03-20 17:01:42 +01:00
|
|
|
gnometarget \
|
|
|
|
pkgconfig
|
2002-07-15 23:44:09 +02:00
|
|
|
USE_REINPLACE= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-02-28 23:16:10 +01:00
|
|
|
GST_PLUGIN?= base
|
2004-04-05 05:11:39 +02:00
|
|
|
|
2002-07-15 23:44:09 +02:00
|
|
|
CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
2005-02-28 23:16:10 +01:00
|
|
|
CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS} -L${X11BASE}/lib -L${LOCALBASE}/lib ${EXTRA_LIBS} ${PTHREAD_LIBS}"
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2005-03-14 23:52:34 +01:00
|
|
|
.include "${MASTERDIR}/Makefile.common"
|
|
|
|
|
2005-03-20 17:01:42 +01:00
|
|
|
.if !defined(WITH_CPUFLAGS)
|
2005-03-14 23:52:34 +01:00
|
|
|
WITHOUT_CPU_CFLAGS= yes
|
2005-03-20 17:01:42 +01:00
|
|
|
.endif
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
.if ${GST_PLUGIN} == "base"
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-07-09 23:10:32 +02:00
|
|
|
PLIST_SUB+= VERSION="${VERSION}" \
|
2005-02-28 23:16:10 +01:00
|
|
|
SHLIB_VERSION="${SHLIB_VERSION}"
|
2002-07-15 23:44:09 +02:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
MAN1= gst-launch-ext-0.8.1 gst-visualise-0.8.1
|
2003-02-05 19:20:43 +01:00
|
|
|
|
2004-07-11 00:47:59 +02:00
|
|
|
## Additional directories which should be both built and installed
|
|
|
|
## but configure neglected to correctly identify them
|
|
|
|
# cdrom/vcd support
|
|
|
|
EXTRA_BUILD_DIR+= sys/vcd
|
|
|
|
# modplug
|
|
|
|
EXTRA_BUILD_DIR+= gst/modplug
|
2005-03-14 23:52:34 +01:00
|
|
|
.else
|
|
|
|
.for f in ${GST_PLUGIN_DIR}
|
|
|
|
GST_PLUGIN_MAKEFILES+= ${f}/Makefile
|
|
|
|
.endfor
|
2003-06-12 00:43:51 +02:00
|
|
|
.endif
|
|
|
|
|
2004-07-11 00:47:59 +02:00
|
|
|
# cdrom default device
|
|
|
|
.ifdef(WITH_CDROM_DEVICE)
|
|
|
|
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
|
|
|
|
.else
|
|
|
|
. if ${OSVERSION} < 500000
|
|
|
|
DEFAULT_CDROM_DEVICE=/dev/acd0c
|
|
|
|
. else
|
|
|
|
DEFAULT_CDROM_DEVICE=/dev/acd0
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# dvd default device
|
|
|
|
.ifdef(WITH_DVD_DEVICE)
|
|
|
|
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
|
|
|
|
.else
|
|
|
|
. if ${OSVERSION} < 500000
|
|
|
|
DEFAULT_DVD_DEVICE=/dev/acd0c
|
|
|
|
. else
|
|
|
|
DEFAULT_DVD_DEVICE=/dev/acd0
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2005-03-14 23:52:34 +01:00
|
|
|
pre-everything::
|
|
|
|
.if !defined(WITH_CPUFLAGS)
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "If you want to compile with CPUFLAGS"
|
|
|
|
@${ECHO_MSG} "hit Ctrl+C now and use make \"WITH_CPUFLAGS=yes\""
|
|
|
|
@${ECHO_MSG} "NOTE: This option may cause build, install, and/or"
|
|
|
|
@${ECHO_MSG} "runtime failures. If this option does not work for you"
|
|
|
|
@${ECHO_MSG} "please do not use it."
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
post-extract:
|
|
|
|
# for cdrom/vcd support
|
|
|
|
# taken from mplayer distfile
|
|
|
|
# MD5 (MPlayer-1.0pre4.tar.bz2) = 83ebac0f05b192516a41fca2350ca01a
|
|
|
|
@${CP} ${FILESDIR}/bsdi_dvd.h ${WRKSRC}/sys/vcd/
|
2002-11-14 18:24:09 +01:00
|
|
|
|
2005-02-28 23:16:10 +01:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f | \
|
|
|
|
${XARGS} -n 10 ${REINPLACE_CMD} -e \
|
|
|
|
's|malloc\.h|stdlib.h|; \
|
|
|
|
s|stdint\.h|inttypes.h|; \
|
|
|
|
s|%%VERSION%%|${VERSION}|'
|
|
|
|
# cdrom default device
|
|
|
|
@${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
|
|
|
|
${WRKSRC}/ext/cdparanoia/gstcdparanoia.c \
|
|
|
|
${WRKSRC}/sys/cdrom/gstcdplayer.c \
|
|
|
|
${WRKSRC}/sys/vcd/vcdsrc.c
|
|
|
|
# dvd default device
|
|
|
|
@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
|
|
|
|
${WRKSRC}/ext/dvdnav/dvdnavsrc.c \
|
|
|
|
${WRKSRC}/ext/dvdread/dvdreadsrc.c
|
|
|
|
# cdrom/vcd support
|
|
|
|
@${REINPLACE_CMD} -e 's|<linux/cdrom.h>|"bsdi_dvd.h"|' \
|
|
|
|
${WRKSRC}/sys/cdrom/gstcdplayer_ioctl.c \
|
|
|
|
${WRKSRC}/sys/vcd/vcdsrc.c \
|
|
|
|
${WRKSRC}/sys/vcd/vcdsrc.h
|
|
|
|
# mplex fix -- gst configure does not use mjpegtool's config to find include.
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|PFLAGS@|PFLAGS@ -I${LOCALBASE}/include/mjpegtools -I${LOCALBASE}/include/mjpegtools/mplex|' \
|
|
|
|
${WRKSRC}/ext/mplex/Makefile.in
|
2005-03-14 23:52:34 +01:00
|
|
|
.if ${GST_PLUGIN}!="base"
|
|
|
|
@${REINPLACE_CMD} -E -e 's|ac_config_files=\"*\"|ac_config_files="$$ac_config_files Makefile ${GST_PLUGIN_MAKEFILES}" #|' \
|
|
|
|
${WRKSRC}/configure
|
2005-03-17 08:03:20 +01:00
|
|
|
.else
|
|
|
|
.for f in ${GST_ALL_PLUGINS}
|
|
|
|
@${REINPLACE_CMD} -e 's|ext/${f}/Makefile||g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endfor
|
2004-08-06 00:34:14 +02:00
|
|
|
.endif
|
2002-11-14 18:24:09 +01:00
|
|
|
|
2004-07-11 00:47:59 +02:00
|
|
|
post-build:
|
|
|
|
.ifdef(EXTRA_BUILD_DIR)
|
|
|
|
. for dir in ${EXTRA_BUILD_DIR}
|
|
|
|
@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.ifdef(EXTRA_BUILD_DIR)
|
|
|
|
. for dir in ${EXTRA_BUILD_DIR}
|
|
|
|
@cd ${WRKSRC}/${dir}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
# register plugins
|
2005-03-17 08:03:20 +01:00
|
|
|
-@${X11BASE}/bin/gst-register-${VERSION} \
|
|
|
|
--gst-registry=${PREFIX}/share/gnome/cache/gstreamer-${VERSION}/registry.xml 2>/dev/null
|
2004-07-11 00:47:59 +02:00
|
|
|
|
2002-07-15 23:44:09 +02:00
|
|
|
.include <bsd.port.post.mk>
|