freebsd-ports/audio/streamtuner/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

86 lines
2.1 KiB
Makefile

# New ports collection makefile for: streamtuner
# Date created: 02 Apr 2002
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= streamtuner
PORTVERSION= 0.99.99
PORTREVISION= 4
CATEGORIES= audio www
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A GTK+ stream directory browser
BUILD_DEPENDS= scrollkeeper-config:${PORTSDIR}/textproc/scrollkeeper
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme
USE_X_PREFIX= yes
USE_GNOME= gtk20 gnomehack gnomeprefix
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GETOPT_LONG= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
OPTIONS= SHOUTCAST "SHOUTcast plugin" on \
LIVE365 "Live365 plugin" on \
XIPH "Xiph plugin" on \
LOCAL "Local plugin" on \
LOCAL_METADATA "metadata support for the Local plugin" on \
PYTHON "Python plugin" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_SHOUTCAST)
CONFIGURE_ARGS+= --disable-shoutcast
PLIST_SUB+= SHOUTCAST="@comment "
.else
PLIST_SUB+= SHOUTCAST=""
.endif
.if defined(WITHOUT_LIVE365)
CONFIGURE_ARGS+= --disable-live365
PLIST_SUB+= LIVE365="@comment "
.else
PLIST_SUB+= LIVE365=""
.endif
.if defined(WITHOUT_XIPH)
CONFIGURE_ARGS+= --disable-xiph
PLIST_SUB+= XIPH="@comment "
.else
PLIST_SUB+= XIPH=""
USE_GNOME+= libxml2
.endif
.if defined(WITHOUT_LOCAL)
CONFIGURE_ARGS+= --disable-local
PLIST_SUB+= LOCAL="@comment "
.else
PLIST_SUB+= LOCAL=""
.if defined(WITHOUT_LOCAL_METADATA)
CONFIGURE_ARGS+= --disable-local-metadata
.else
LIB_DEPENDS+= tag_c:${PORTSDIR}/audio/taglib
.endif
.endif
.if defined(WITHOUT_PYTHON)
CONFIGURE_ARGS+= --disable-python
PLIST_SUB+= PYTHON="@comment "
.else
PLIST_SUB+= PYTHON=""
USE_PYTHON= 2.3+
# we need to manually include this, because USE_PYTHON is defined
# after including bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.python.mk"
USE_GNOME+= pygtk2
.endif
.include <bsd.port.post.mk>