openbsd-ports/audio/pianobar/Makefile
2013-03-10 22:55:01 +00:00

59 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.52 2013/03/10 22:55:05 espie Exp $
SHARED_ONLY = Yes
COMMENT = console client for pandora
DISTNAME = pianobar-2012.12.01
REVISION = 0
EXTRACT_SUFX = .tar.bz2
CATEGORIES = audio
MAINTAINER = David Coppa <dcoppa@openbsd.org>
HOMEPAGE = http://6xq.net/projects/pianobar/
MASTER_SITES = ${HOMEPAGE}
SHARED_LIBS = piano 3.0 # 0.0.0
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = ao c faad gcrypt gnutls json m mad pthread
LIB_DEPENDS = audio/faad>=2.7 \
audio/libao \
audio/libmad \
devel/json-c \
security/gnutls>=2.10.0 \
security/libgcrypt
.if !defined(DEBUG)
CFLAGS += -DNDEBUG
.endif
MAKE_FLAGS = DYNLINK=1 \
CC=${CC} \
LIBGCRYPT_CFLAGS="-I${LOCALBASE}/include" \
LIBpiano_VERSION="${LIBpiano_VERSION}"
FAKE_FLAGS = PREFIX="${PREFIX}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_MAN="${INSTALL_MAN}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
MANDIR="${PREFIX}/man"
USE_GMAKE = Yes
TEST_TARGET = test
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pianobar
${INSTALL_DATA} ${WRKSRC}/contrib/config-example \
${PREFIX}/share/examples/pianobar/config
pre-test:
@touch ${WRKSRC}/src/libwaitress/waitress.c
.include <bsd.port.mk>