mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
8124097656
Add python option Use options helpers
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= streamtuner
|
|
PORTVERSION= 0.99.99
|
|
PORTREVISION= 20
|
|
CATEGORIES= audio www
|
|
MASTER_SITES= SAVANNAH
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GTK+ stream directory browser
|
|
|
|
BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
|
RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/gnome-icon-theme.pc:${PORTSDIR}/misc/gnome-icon-theme
|
|
|
|
USES= gmake pathfix pkgconfig
|
|
USE_GNOME= gtk20 gnomeprefix
|
|
INSTALLS_OMF= yes
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
OPTIONS_DEFINE= SHOUTCAST LIVE365 XIPH LOCAL LOCAL_METADATA PYTHON
|
|
OPTIONS_DEFAULT= SHOUTCAST LIVE365 XIPH LOCAL LOCAL_METADATA
|
|
SHOUTCAST_DESC= SHOUTcast plugin
|
|
LIVE365_DESC= Live365 plugin
|
|
LOCAL_DESC= Local plugin
|
|
LOCAL_METADATA_DESC= Metadata support for the Local plugin
|
|
XIPH_DESC= Xiph plugin
|
|
|
|
OPTIONS_SUB= yes
|
|
SHOUTCAST_CONFIGURE_ENABLE= shoutcast
|
|
LIB365_CONFIGURE_ENABLE= libve365
|
|
XIPH_CONFIGURE_ENABLE= xiph
|
|
PYTHON_USE= python=yes gnome=pygtk2
|
|
PYTHON_CONFIGURE_ENABLE= python
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MLOCAL}
|
|
PLIST_SUB+= LOCAL=""
|
|
.if ${PORT_OPTIONS:MLOCAL_METADATA}
|
|
LIB_DEPENDS+= libtag_c.so:${PORTSDIR}/audio/taglib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-local-metadata
|
|
.endif
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-local
|
|
PLIST_SUB+= LOCAL="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|[(]datadir[)]/help|(datadir)/gnome/help|g' \
|
|
${WRKSRC}/help/C/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|