aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer-plugins/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-02-06 02:20:43 +0800
committermarcus <marcus@FreeBSD.org>2003-02-06 02:20:43 +0800
commit31b01c7887550f2560e790fb306b68a333bb7b92 (patch)
tree7fa8111754676780bf9999445c5d2bbc5d86c48e /multimedia/gstreamer-plugins/Makefile
parentc3af1fefa3ff80ac8a06b0b6454818866bef3838 (diff)
downloadfreebsd-ports-gnome-31b01c7887550f2560e790fb306b68a333bb7b92.tar.gz
freebsd-ports-gnome-31b01c7887550f2560e790fb306b68a333bb7b92.tar.zst
freebsd-ports-gnome-31b01c7887550f2560e790fb306b68a333bb7b92.zip
* Update to 0.6.0
* Fix audiofile detection * Small CC safeness fixes * Add Hermes support This work is the product of colaboration between lioux and myself. Approved by: maintainer
Diffstat (limited to 'multimedia/gstreamer-plugins/Makefile')
-rw-r--r--multimedia/gstreamer-plugins/Makefile77
1 files changed, 61 insertions, 16 deletions
diff --git a/multimedia/gstreamer-plugins/Makefile b/multimedia/gstreamer-plugins/Makefile
index a3c9aafd3412..84d52e942e6e 100644
--- a/multimedia/gstreamer-plugins/Makefile
+++ b/multimedia/gstreamer-plugins/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gstreamer
-PORTVERSION= 0.4.2
+PORTVERSION= 0.6.0
CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -18,12 +18,13 @@ MAINTAINER= lioux@FreeBSD.org
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
LIB_DEPENDS= glib-2.0.0:${PORTSDIR}/devel/glib20 \
gconf-2.5:${PORTSDIR}/devel/gconf2 \
- gstreamer.0:${PORTSDIR}/multimedia/gstreamer \
+ gstreamer-0.6.0:${PORTSDIR}/multimedia/gstreamer \
gtk-x11-2.0.0:${PORTSDIR}/x11-toolkits/gtk20 \
popt.0:${PORTSDIR}/devel/popt \
xml2.5:${PORTSDIR}/textproc/libxml2
USE_X_PREFIX= yes
+USE_GMAKE= yes
USE_GNOMENG= yes
USE_GNOME= gnomehack \
gnomehier \
@@ -43,6 +44,9 @@ CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
CONFIGURE_TARGET=
+PLIST_SUB= \
+ VERSION="${PORTVERSION:C/..$//}" \
+ SHLIB_VERSION="${SHLIB_VERSION}"
INSTALLS_SHLIB= yes
# for esound detection
@@ -54,28 +58,19 @@ PKG_CONFIG?="${LOCALBASE}/bin/pkg-config"
SDL_CONFIG?="${LOCALBASE}/bin/sdl11-config"
XMMS_CONFIG?="${LOCALBASE}/bin/xmms-config"
+# library minor number
+SHLIB_VERSION= 0
+
post-patch:
# as of this writing, FreeBSD does not support lrint* C99 math functions
@${REINPLACE_CMD} -E -e \
's|^#define.*LRINT.*$$||' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-# remove version number from include dir name
- @${REINPLACE_CMD} -E -e \
- 's|-@VERSION@||' \
- ${WRKSRC}/gstreamer-libs.pc.in \
- ${WRKSRC}/gstreamer-play.pc.in
-# remove version number from include dir name
# respect CFLAGS
@${FIND} ${WRKSRC} -type f -name Makefile.in | \
${XARGS} -n 10 ${REINPLACE_CMD} -E -e \
- 's|^(lib[[:alpha:]]+includedir.+)-@VERSION@|\1|; \
- s,-O(2|3),,; \
+ 's,-O(2|3),,; \
s|-mcpu=i486||'
-# gconf is not working in this release
- @${REINPLACE_CMD} -E -e \
- 's,^((DIST_SUBDIRS|SUBDIRS).+)gconf,\1,' \
- ${WRKSRC}/Makefile.in \
- ${WRKSRC}/gst-libs/gst/Makefile.in
# mcopidl takes the file as the last argument
@${REINPLACE_CMD} -E -e \
's|(mcopidl.+)(\$$<)(.+)$$|\1 \3 \2|' \
@@ -90,6 +85,19 @@ post-patch:
${XARGS} -n 10 ${REINPLACE_CMD} -e \
's|malloc.h|stdlib.h|; \
s|stdint.h|inttypes.h|'
+# use GMAKE, not MAKE
+ @${REINPLACE_CMD} -E -e \
+ 's|make|${GMAKE}|' \
+ ${WRKSRC}/gst-libs/ext/ffmpeg/Makefile.in
+# force libaudiofile detection
+ @${REINPLACE_CMD} -E -e \
+ 's|^.*afOpenVirtualFile[[:space:]]*\(\);|;|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
+post-configure:
+# CC safeness
+ @${ECHO_CMD} "CC=${CC}" >> \
+ ${WRKSRC}/gst-libs/ext/ffmpeg/ffmpeg/config.mak
post-install:
# register plugins
@@ -146,11 +154,21 @@ WITH_GNOMEVFS=yes
WITH_GSM=yes
.endif
+# Hermes
+.if exists (${LOCALBASE}/lib/libHermes.a)
+WITH_HERMES=yes
+.endif
+
# jpeg
.if exists(${LOCALBASE}/lib/libjpeg.a)
WITH_JPEG=yes
.endif
+# ladspa
+.if exists(${LOCALBASE}/include/ladspa.h)
+WITH_LADSPA=yes
+.endif
+
# liba52
.if exists(${LOCALBASE}/lib/liba52.a)
WITH_LIBA52=yes
@@ -228,7 +246,7 @@ WITH_VORBIS=yes
# xmms
.if exists(${X11BASE}/lib/libxmms.a)
-WITH_XMMS=yes
+#WITH_XMMS=yes
.endif
##
@@ -326,6 +344,15 @@ LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm
PLIST_SUB+= GSM=""
.endif
+# Hermes
+.ifndef(WITH_HERMES)
+CONFIGURE_ARGS+= --disable-hermes
+PLIST_SUB+= HERMES="@comment "
+.else
+LIB_DEPENDS+= Hermes.1:${PORTSDIR}/graphics/Hermes
+PLIST_SUB+= HERMES=""
+.endif
+
# http
.ifndef(WITH_HTTP)
CONFIGURE_ARGS+= --disable-http
@@ -344,6 +371,16 @@ LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
PLIST_SUB+= JPEG=""
.endif
+# ladspa
+.ifndef(WITH_LADSPA)
+CONFIGURE_ARGS+= --disable-ladspa
+PLIST_SUB+= LADSPA="@comment "
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
+
+PLIST_SUB+= LADSPA=""
+.endif
+
# lame
.ifndef(WITH_LAME)
CONFIGURE_ARGS+= --disable-lame
@@ -574,6 +611,10 @@ pre-everything::
@${ECHO_MSG} '===>'
@${ECHO_MSG} '===> Define WITH_GNOMEVFS to enable gnomevfs Network plugin'
.endif
+.ifndef(WITH_HERMES)
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> Define WITH_HERMES to enable Hermes colorspace plugin'
+.endif
.ifndef(WITH_HTTP)
@${ECHO_MSG} '===>'
@${ECHO_MSG} '===> Define WITH_HTTP to enable http Network plugin'
@@ -582,6 +623,10 @@ pre-everything::
@${ECHO_MSG} '===>'
@${ECHO_MSG} '===> Define WITH_JPEG to enable jpeg Video plugin'
.endif
+.ifndef(WITH_LADSPA)
+ @${ECHO_MSG} '===>'
+ @${ECHO_MSG} '===> Define WITH_LADSPA to enable LADSPA framework Audio plugin'
+.endif
.ifndef(WITH_LAME)
@${ECHO_MSG} '===>'
@${ECHO_MSG} '===> Define WITH_LAME to enable lame MP3 Audio plugin'