freebsd-ports/audio/gramofile/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

56 lines
1.5 KiB
Makefile

# Created by: nox@jelal.kn-bremen.de
# $FreeBSD$
PORTNAME= gramofile
PORTVERSION= 1.6P
PORTREVISION= 14
CATEGORIES= audio
MASTER_SITES= http://www.opensourcepartners.nl/~costar/gramofile/
PATCH_SITES= LOCAL/nox/
PATCHFILES= ${PORTNAME}_1.6-7.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= ports@FreeBSD.org
COMMENT= Audio recording and tick/scratch reduction for e.g. vinyl records
LIB_DEPENDS= libfftw.so:math/fftw
ALL_TARGET= gramofile
USES= alias gmake ncurses perl5
USE_CSTD= gnu89
MAKE_ARGS= CC="${CC}" \
CXX="${CXX}" \
PERLCOREDIR=${PERLCOREDIR}
CFLAGS+= -D_WANT_SEMUN
PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE
OPTIONS_DEFINE= DOCS
post-patch:
${RM} ${WRKSRC}/debian/20-warning-fixes.dpatch
for i in ${WRKSRC}/debian/*.dpatch; do \
${PATCH} -d ${WRKSRC} `${SED} -n '/^#PATCHOPTIONS:/{s///;p;q;}' $$i` --forward --quiet <$$i ;\
done
for i in `${LS} ${FILESDIR}/post-patch-* |${SED} /.orig$$/d`; do \
${PATCH} -d ${WRKSRC} --forward --quiet <$$i ;\
done
${REINPLACE_CMD} -e "s@-lncurses@-L${LOCALBASE}/lib -lncurses@g" \
-e "s|CFLAGS =|CFLAGS +=|" \
${WRKSRC}/bplaysrc/Makefile
${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
${WRKSRC}/bplaysrc/bplay.c \
${WRKSRC}/bplaysrc/sndfunc.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${WRKSRC}/bplay_gramo \
${STAGEDIR}${PREFIX}/bin
${LN} -s bplay_gramo ${STAGEDIR}${PREFIX}/bin/brec_gramo
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>