freebsd-ports/audio/xmms2-scrobbler/Makefile
Eugene Grosbein e9bef0ebb9 Fix Lasf.fm API 1.x compatibility. User may disable new option APIFIX
in case it breaks compatibility with alternative services.

PR:		220992
Submitted by:	Eugene Zheganin
Approved by:	az (mentor)
2017-07-25 09:08:31 +00:00

40 lines
903 B
Makefile

# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
# $FreeBSD$
PORTNAME= xmms2-scrobbler
PORTVERSION= 0.4.0
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= ftp://ftp.code-monkey.de/pub/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Last.fm submission client for XMMS2
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libxmmsclient.so:audio/xmms2 \
libcurl.so:ftp/curl
USES= gmake pkgconfig
LDFLAGS+= -lpthread
PLIST_FILES= bin/xmms2-scrobbler
PORTDOCS= README
SUB_FILES= pkg-message
OPTIONS_DEFINE= APIFIX DOCS
OPTIONS_DEFAULT= APIFIX DOCS
APIFIX_DESC= Apply fix for Last.fm API 1.x
APIFIX_EXTRA_PATCHES_ON= ${FILESDIR}/extra-patch-xmms2-scrobbler.c
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xmms2-scrobbler
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>