freebsd-ports/audio/ncmpcpp/Makefile

115 lines
2.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ncmpcpp
# Date created: August 25 2008
# Whom: Dennis Herrmann <adox@mcx2.org>
#
# $FreeBSD$
#
PORTNAME= ncmpcpp
2011-01-03 13:39:53 +01:00
PORTVERSION= 0.5.6
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://unkart.ovh.org/ncmpcpp/ \
http://mirror.mcx2.org/
MAINTAINER= dhn@FreeBSD.org
COMMENT= A ncurses mpd client, clone of ncmpc with some new features
LIB_DEPENDS= mpdclient:${PORTSDIR}/audio/libmpdclient \
fftw3.5:${PORTSDIR}/math/fftw3
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_GNOME= glib20
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= automake aclocal libtool
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lpthread"
MAN1= ncmpcpp.1
MAKE_JOBS_SAFE= yes
OPTIONS= CURL "Enable fetching lyrics from the Internet" on \
CLOCK "Enable clock-screen support" on \
UTF8 "Enable UTF8 support" on \
2009-09-12 23:36:04 +02:00
TAGLIB "Enable taglib support" off \
OUTPUTS "Enable outputs screen" on \
2009-09-12 23:36:04 +02:00
VISUALIZER "Enable music visualizer screen" on
.include <bsd.port.pre.mk>
2010-09-06 20:29:14 +02:00
.if ${OSVERSION} < 700000
BROKEN=>>Does not compile on FreeBSD 6.X
.endif
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
.else
# no need to use ncurses-config if we use ncurses from the base system
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
.endif
PLIST_FILES= bin/ncmpcpp \
%%DOCSDIR%%/config \
%%DOCSDIR%%/keys \
%%DOCSDIR%%/NEWS \
%%DOCSDIR%%/AUTHORS \
%%DOCSDIR%%/COPYING
PLIST_DIRS= %%DOCSDIR%%
.if !defined(WITHOUT_CURL)
2010-04-03 12:44:36 +02:00
LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+= --with-curl
.else
CONFIGURE_ARGS+= --with-curl=no
.endif
.if !defined(WITHOUT_CLOCK)
CONFIGURE_ARGS+= --enable-clock
.else
CONFIGURE_ARGS+= --disable-clock
.endif
.if !defined(WITHOUT_UTF8)
CONFIGURE_ARGS+= --enable-unicode
.else
CONFIGURE_ARGS+= --disable-unicode
.endif
.if !defined(WITHOUT_TAGLIB)
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
CONFIGURE_ARGS+= --with-taglib
.else
CONFIGURE_ARGS+= --with-taglib=no
.endif
.if !defined(WITHOUT_OUTPUTS)
CONFIGURE_ARGS+= --enable-outputs
.else
CONFIGURE_ARGS+= --disable-outputs
.endif
2009-09-12 23:36:04 +02:00
.if !defined(WITHOUT_VISUALIZER)
2009-09-20 14:56:13 +02:00
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
2009-09-12 23:36:04 +02:00
CONFIGURE_ARGS+= --enable-visualizer
.endif
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}/NEWS
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}/AUTHORS
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}/COPYING
${INSTALL_DATA} ${WRKSRC}/doc/config ${DOCSDIR}/config
${INSTALL_DATA} ${WRKSRC}/doc/keys ${DOCSDIR}/keys
.endif
@${ECHO_MSG} ""
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG} ""
.include <bsd.port.post.mk>