2008-08-30 14:12:07 +02:00
|
|
|
# New ports collection makefile for: ncmpcpp
|
|
|
|
# Date created: August 25 2008
|
|
|
|
# Whom: Dennis Herrmann <adox@mcx2.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ncmpcpp
|
2009-02-27 13:52:39 +01:00
|
|
|
PORTVERSION= 0.3.1
|
2008-08-30 14:12:07 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://unkart.ovh.org/ncmpcpp/ \
|
|
|
|
http://mirror.mcx2.org/
|
|
|
|
|
|
|
|
MAINTAINER= adox@mcx2.org
|
|
|
|
COMMENT= A ncurses mpd client, clone of ncmpc with some new features
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GNOME= glib20
|
2009-02-08 22:38:49 +01:00
|
|
|
USE_AUTOTOOLS= automake:110 aclocal:110 libtool:15
|
|
|
|
ACLOCAL_ARGS= --acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
|
2009-02-27 13:52:39 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2008-10-17 21:10:13 +02:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lpthread"
|
2008-08-30 14:12:07 +02:00
|
|
|
|
|
|
|
OPTIONS= CURL "Enable fetching lyrics from the Internet" on \
|
2009-02-08 22:38:49 +01:00
|
|
|
CLOCK "Enable clock-screen support" on \
|
|
|
|
UTF8 "Enable UTF8 support" on \
|
2008-08-30 14:12:07 +02:00
|
|
|
TAGLIB "Enable taglib support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-11-07 02:43:07 +01:00
|
|
|
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
|
|
|
|
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
|
2008-11-07 07:41:23 +01:00
|
|
|
.else
|
|
|
|
# no need to use ncurses-config if we use ncurses from the base system
|
|
|
|
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
|
2008-11-07 02:43:07 +01:00
|
|
|
.endif
|
|
|
|
|
2008-08-30 14:12:07 +02:00
|
|
|
PLIST_FILES= bin/ncmpcpp \
|
2008-10-17 21:10:13 +02:00
|
|
|
%%DOCSDIR%%/config \
|
|
|
|
%%DOCSDIR%%/keys \
|
2008-09-06 23:04:42 +02:00
|
|
|
%%DOCSDIR%%/NEWS \
|
2008-12-06 16:28:17 +01:00
|
|
|
%%DOCSDIR%%/AUTHORS \
|
|
|
|
%%DOCSDIR%%/COPYING
|
2008-09-06 23:04:42 +02:00
|
|
|
PLIST_DIRS= %%DOCSDIR%%
|
2008-08-30 14:12:07 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_CURL)
|
2009-01-23 16:43:14 +01:00
|
|
|
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl
|
2008-08-30 14:12:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-curl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-curl=no
|
|
|
|
.endif
|
|
|
|
|
2009-02-08 22:38:49 +01:00
|
|
|
.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
|
|
|
|
|
2008-11-07 07:41:23 +01:00
|
|
|
.if !defined(WITHOUT_TAGLIB)
|
2008-08-30 14:12:07 +02:00
|
|
|
LIB_DEPENDS+= tag:${PORTSDIR}/audio/taglib
|
|
|
|
CONFIGURE_ARGS+= --with-taglib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-taglib=no
|
|
|
|
.endif
|
|
|
|
|
2009-02-08 22:38:49 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/i18n/SUPPORTED|${LOCALBASE}/share/locale|g' \
|
|
|
|
-e 's|iconv.h|sys/iconv.h|g' ${WRKSRC}/configure*
|
|
|
|
|
2008-08-30 14:12:07 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ncmpcpp ${PREFIX}/bin/
|
2008-09-06 23:04:42 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}/NEWS
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}/AUTHORS
|
2008-12-06 16:28:17 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}/COPYING
|
2008-10-17 21:10:13 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/config ${DOCSDIR}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/keys ${DOCSDIR}/keys
|
2008-09-06 23:04:42 +02:00
|
|
|
.endif
|
2008-08-30 14:12:07 +02:00
|
|
|
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|