1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/audio/cdparanoia/Makefile
Alexey Dokuchaev 926f7d2dfe audio/cdparanoia: make the port more robust against exotic machines
The port comes with rather old pregenerated GNU autoconf bits which
are unaware of the modern machine architectures, e.g. aarch64 et al.
Previous (even older) version would emit a warning but continue the
configure process; now this is hard error.  Additionally, configure
script copies its own config.{guess,sub} files over the ones coming
from our templates.  This is easy to untangle, but if done properly,
would require to rebootstrap the whole thing (USES+=autoreconf).

Instead, simply extend the existing *-unknown fallback to treat any
unmatched *-portbld system type similarly (i.e., gracefully accept)
as, prima facie, the build logs remain functionally identical.

While here, whack default optimizations since CFLAGS are respected.

Reported by:	fluffy, pkg-fallout
2024-07-28 19:39:32 +00:00

24 lines
597 B
Makefile

PORTNAME= cdparanoia
PORTVERSION= 3.10.2
CATEGORIES= audio sysutils
MASTER_SITES= http://downloads.xiph.org/releases/cdparanoia/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/^3./III-/}
EXTRACT_SUFX= .src.tgz
MAINTAINER= danfe@FreeBSD.org
COMMENT= CDDA extraction tool (also known as ripper)
WWW= https://www.xiph.org/paranoia/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING-GPL
USES= gmake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e '/OPT=/s,".*","",' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,unknown),portbld | *-&,' ${WRKSRC}/configure.sub
.include <bsd.port.mk>