100 lines
2.5 KiB
Makefile
100 lines
2.5 KiB
Makefile
# Created by: Zastupov Stepan [RedChrom] <redchrom@mail.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= audacious
|
|
PORTVERSION= 3.4.2
|
|
CATEGORIES= multimedia audio
|
|
MASTER_SITES= http://distfiles.audacious-media-player.org/
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
COMMENT= A media player based on BMP and XMMS
|
|
|
|
LIB_DEPENDS= mcs:${PORTSDIR}/devel/libmcs \
|
|
mowgli:${PORTSDIR}/devel/libmowgli \
|
|
xml2:${PORTSDIR}/textproc/libxml2
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= pkgconfig
|
|
USE_GMAKE= yes
|
|
USE_XORG= x11 sm
|
|
USE_BZIP2= yes
|
|
USE_GNOME= gtk30
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS= --disable-chardet --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
|
|
|
|
MAN1= audacious.1 audtool.1
|
|
|
|
OPTIONS_DEFINE= DBUS GNOME ICONV NLS EXECINFO SSE2 CHARSET
|
|
OPTIONS_DEFAULT= DBUS ICONV NLS EXECINFO SSE2 CHARSET
|
|
CHARSET_DESC= Build with automatic charset detection
|
|
EXECINFO_DESC= Build with libexecinfo support
|
|
SSE2_DESC=Build with SSE2 instruction set
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDBUS}
|
|
LIB_DEPENDS+= dbus-glib:${PORTSDIR}/devel/dbus-glib
|
|
CONFIGURE_ARGS+=--enable-dbus
|
|
PLIST_SUB+= WITH_DBUS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-dbus
|
|
PLIST_SUB+= WITH_DBUS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXECINFO} || exists(${LOCALBASE}/lib/libexecinfo.so)
|
|
LIB_DEPENDS+= execinfo:${PORTSDIR}/devel/libexecinfo
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGNOME}
|
|
USE_GNOME+= gconf2
|
|
CONFIGURE_ARGS+=--enable-gconf
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MICONV} || exists(${LOCALBASE}/lib/libiconv.so)
|
|
USES+= iconv
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MSSE2)
|
|
CONFIGURE_ARGS+=--disable-sse2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCHARSET}
|
|
LIB_DEPENDS+= guess:${PORTSDIR}/textproc/libguess
|
|
CONFIGURE_ARGS+=--enable-chardet
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-chardet
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|$${libdir}/pkgconfig|$${prefix}/libdata/pkgconfig|g' \
|
|
${WRKSRC}/Makefile
|
|
.if ${PORT_OPTIONS:MEXECINFO} || exists(${LOCALBASE}/lib/libexecinfo.so)
|
|
@${REINPLACE_CMD} 's|$${REGEX_LIBS}|& -L${LOCALBASE}/lib -lexecinfo|' \
|
|
${WRKSRC}/src/audacious/Makefile
|
|
@${REINPLACE_CMD} 's|-laudcore|-laudcore -L${LOCALBASE}/lib -lexecinfo|' \
|
|
${WRKSRC}/audacious.pc.in
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
.if defined(WITH_GNOME)
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "You have installed audacious with gconf support."
|
|
@${ECHO_MSG} "ALL PRESETS will be stored in the gconf database."
|
|
@${ECHO_MSG} ""
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|