openbsd-ports/audio/ncmpc/Makefile
lraab 3b98ba8eb9 audio/ncmpc: update to 0.47
changelog:
ncmpc 0.47 - (2022-06-30)
* handle Ctrl-C in search prompt
* link with libintl and libiconv if necessary
* require libmpdclient 2.16 or newer
* require MPD 0.21 or newer
* switch to C++20

ok landry@ (I forgot to commit this the other day with mpd/picard)
2022-09-01 20:47:40 +00:00

57 lines
1.3 KiB
Makefile

COMMENT= curses based frontend for mpd
VER= 0.47
DISTNAME= ncmpc-${VER}
EPOCH= 0
CATEGORIES= audio
HOMEPAGE= https://www.musicpd.org/clients/ncmpc/
# GPLv2
PERMIT_PACKAGE= Yes
# make sure to regen WANTLIB on ld.lld arches (-Wl,--as-needed)
WANTLIB= c intl m mpdclient>=1 ${COMPILER_LIBCXX} curses pcre2-8
MASTER_SITES= https://www.musicpd.org/download/ncmpc/${VER:R}/
EXTRACT_SUFX= .tar.xz
# c++17
COMPILER = base-clang ports-gcc
MODULES= devel/meson
BUILD_DEPENDS= devel/boost \
devel/gettext,-tools \
textproc/py-sphinx,python3
LIB_DEPENDS= devel/gettext,-runtime \
devel/pcre2 \
audio/libmpdclient>=2.20
CONFIGURE_ARGS= -Dlirc=disabled \
-Dhtml_manual=false \
-Dlocale=enabled \
-Dmouse=enabled
# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches;
# build failures due to undefined references are often seen.
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mlld}
CONFIGURE_ARGS += -Db_asneeded=false
.endif
CONFIGURE_ENV= CPP=${CPP} \
CPPFLAGS="-D_GNU_SOURCE \
-D_DEFAULT_SOURCE \
-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lintl"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ncmpc
mv ${PREFIX}/share/doc/ncmpc/{config.sample,keys.sample,ncmpc.lirc} \
${PREFIX}/share/examples/ncmpc/
.include <bsd.port.mk>