Changeset View
Changeset View
Standalone View
Standalone View
audio/libcanberra/Makefile
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org> | # Created by: Joe Marcus Clarke <marcus@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# $MCom: ports/trunk/audio/libcanberra/Makefile 20031 2014-11-02 21:47:55Z kwm $ | |||||
PORTNAME= libcanberra | PORTNAME= libcanberra | ||||
PORTVERSION= 0.30 | DISTVERSION= ${CANBERRA_VERSION} | ||||
PORTREVISION= 5 | PORTREVISION?= 6 | ||||
CATEGORIES= audio devel | CATEGORIES= audio devel | ||||
MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/ \ | MASTER_SITES= http://0pointer.de/lennart/projects/libcanberra/ \ | ||||
http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/ | http://pkgs.fedoraproject.org/repo/pkgs/libcanberra/libcanberra-0.30.tar.xz/34cb7e4430afaf6f447c4ebdb9b42072/ | ||||
MAINTAINER= desktop@FreeBSD.org | MAINTAINER= desktop@FreeBSD.org | ||||
COMMENT= Implementation of the Freedesktop sound theme spec | COMMENT= Implementation of the Freedesktop sound theme spec | ||||
LICENSE= LGPL21 | LICENSE= LGPL21 | ||||
LICENSE_FILE= ${WRKSRC}/LGPL | LICENSE_FILE= ${WRKSRC}/LGPL | ||||
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ | LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ | ||||
libltdl.so:devel/libltdl | libltdl.so:devel/libltdl | ||||
USES= gmake gnome libtool pathfix pkgconfig tar:xz | USES= gmake gnome libtool localbase:ldflags pathfix pkgconfig tar:xz | ||||
USE_GNOME= gnomeprefix gtk20 | USE_GNOME= gnomeprefix | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa | CONFIGURE_ARGS= --disable-lynx --disable-tdb --disable-alsa --disable-udev | ||||
CPPFLAGS+= -I${LOCALBASE}/include | |||||
LDFLAGS+= -L${LOCALBASE}/lib | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
.if defined(SLAVEPORT) | |||||
OPTIONS_DEFINE= PULSEAUDIO GSTREAMER | |||||
.endif | |||||
PLIST_SUB= VERSION=${PORTVERSION} | PLIST_SUB= VERSION=${PORTVERSION} | ||||
.include <bsd.port.options.mk> | .if defined(PKGNAMESUFFIX) # Backends and toolkit integrations | ||||
USES+= canberra:lib | |||||
CONFIGURE_ARGS+= --disable-null --disable-oss | |||||
.if defined(SLAVEPORT) | . if ${PKGNAMESUFFIX:M-gtk2} | ||||
USE_GNOME+= gtk30 | USE_GNOME+= cairo gdkpixbuf2 gtk20 | ||||
LIB_DEPENDS+= libcanberra.so:audio/libcanberra | USE_XORG+= x11 | ||||
CONFIGURE_ARGS+=--enable-gtk3 | CONFIGURE_ARGS+= --enable-gtk \ | ||||
.else | --disable-gtk3 --disable-pulse --disable-gstreamer --enable-null | ||||
CONFIGURE_ARGS+=--disable-gtk3 | . endif | ||||
.if ${PORT_OPTIONS:MPULSEAUDIO} | . if ${PKGNAMESUFFIX:M-gtk3} | ||||
USE_GNOME+= cairo gdkpixbuf2 gtk30 | |||||
USE_XORG+= x11 | |||||
CONFIGURE_ARGS+= --enable-gtk3 \ | |||||
--disable-gtk --disable-pulse --disable-gstreamer --enable-null | |||||
. endif | |||||
. if ${PKGNAMESUFFIX:M-pulse} | |||||
LIB_DEPENDS+= libpulse.so:audio/pulseaudio | LIB_DEPENDS+= libpulse.so:audio/pulseaudio | ||||
PLIST_SUB+= PULSE="" | CONFIGURE_ARGS+= --enable-pulse \ | ||||
.else | --disable-gtk --disable-gtk3 --disable-gstreamer | ||||
CONFIGURE_ARGS+=--disable-pulse | |||||
PLIST_SUB+= PULSE="@comment " | |||||
.endif | . endif | ||||
.if ${PORT_OPTIONS:MGSTREAMER} | . if ${PKGNAMESUFFIX:M-gstreamer} | ||||
USE_GSTREAMER1= yes | USE_GSTREAMER1= yes | ||||
PLIST_SUB+= GSTREAMER="" | CONFIGURE_ARGS+= --enable-gstreamer \ | ||||
.else | --disable-gtk --disable-gtk3 --disable-pulse | ||||
CONFIGURE_ARGS+=--disable-gstreamer | |||||
PLIST_SUB+= GSTREAMER="@comment " | |||||
.endif | . endif | ||||
.endif # end slaveport | .else # Main port | ||||
USES+= canberra:selfbuild | |||||
USE_GNOME+= cairo gdkpixbuf2 gtk30 | |||||
USE_XORG+= x11 | |||||
CONFIGURE_ARGS+= --enable-gtk3 \ | |||||
--disable-gtk --disable-pulse --disable-gstreamer | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \ | @${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |