freebsd-ports/audio/pianod2/Makefile
Kyle Evans 5fb9edd6bd Multiple ports: improve regex compliance
These changes largely fall into just two categories:

1. Need textproc/gsed for GNU extensions
2. Extraneous escapes that can go away

For #1, there's a further subdivision into those that require autoconf magic
and those that can get away with BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed.
-CURRENT will soon gain GNU extensions, but these will take longer to get to
all supported releases; we must switch them to gsed to ensure we're actually
properly building them as intended.

For #2, I've fixed these as I can and we should upstream these fixes.

PORTREVISION is bumped for all of the above, because we will almost
certainly build these differently when the replacements actually start
working.

These were all detected by the below-referenced exp-run [1]. The patch
included forbids many ordinary characters from being escaped, since we'll
later imbue those with special meanings. This has had the nice side effect
of picking up various things that we didn't handle properly, e.g. \t and \r
for tab and carriage return.

PR:		229925 [1]
Approved by:	koobs (mentor)
Approved by:	portmgr (blanket: trivial build fixes)
MFH:		no (invasive risk)
Differential Revision:	https://reviews.freebsd.org/D25185
2020-06-08 04:41:31 +00:00

60 lines
1.3 KiB
Makefile

# Created by: John Hixson <jhixson@FreeBSD.org>
# $FreeBSD$
PORTNAME= pianod2
PORTVERSION= 329
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://deviousfish.com/Downloads/pianod2/Devel/
MAINTAINER= jhixson@FreeBSD.org
COMMENT= Free, multi-source, network-controlled music player daemon
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_i386= fails to build
BUILD_DEPENDS= gsed:textproc/gsed
LIB_DEPENDS= libao.so:audio/libao \
libavcodec.so:multimedia/ffmpeg \
libgcrypt.so:security/libgcrypt \
libgstreamer-1.0.so:multimedia/gstreamer1 \
libgzstream.so:devel/gzstream \
libcurl.so:ftp/curl \
libgnutls.so:security/gnutls \
libjson-c.so:devel/json-c \
libSDL.so:devel/sdl12 \
libtag.so:audio/taglib
RUN_DEPENDS= mksh>0:shells/mksh
USES= autoreconf compiler:c11 gettext gmake gnome pkgconfig shebangfix
USE_GNOME= glib20
USE_GSTREAMER= ffmpeg
USE_RC_SUBR= pianod
GNU_CONFIGURE= yes
SHEBANG_FILES= contrib/piano contrib/runmix
ksh_CMD= ${LOCALBASE}/bin/mksh
BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed
CONFIGURE_ARGS= --with-compression \
--with-accesscontrol \
--with-engine=gstreamer \
--with-libao \
--with-libsdl \
--with-tonegenerator \
--with-pandora \
--with-tls \
--with-taglib
MAKE_ARGS= CC="${CC}" PREFIX="${PREFIX}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.mk>