pkgsrc/audio/libmad/Makefile
wiz 92b4a6e496 *: remove pkg-config from tools where no buildlink3.mk file is included
Bulk build on NetBSD of these packages had the same result as before
(build succeeds, no PLIST change).
2022-07-25 11:12:18 +00:00

37 lines
877 B
Makefile

# $NetBSD: Makefile,v 1.24 2022/07/25 11:12:19 wiz Exp $
DISTNAME= libmad-0.15.1b
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mad/}
MAINTAINER= simonb@NetBSD.org
HOMEPAGE= https://sourceforge.net/projects/mad/
COMMENT= High-quality MPEG audio decoder
LICENSE= gnu-gpl-v2
CONFLICTS= mad<0.15
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
INSTALLATION_DIRS= lib/pkgconfig
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_ARCH:Mmips64*)
# Disable MIPS-specific ASM on MIPS64 due to:
# error: impossible constraint in 'asm'
CONFIGURE_ARGS+= --enable-fpm=64bit
CONFIGURE_ARGS+= --disable-aso
.endif
post-build:
${SED} -e 's,@PREFIX@,${PREFIX},g' \
-e 's,@VERSION@,${PKGVERSION},g' \
< ${FILESDIR}/mad.pc.in > ${WRKDIR}/mad.pc
post-install:
${INSTALL_DATA} ${WRKDIR}/mad.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
.include "../../mk/bsd.pkg.mk"