35 lines
966 B
Makefile
35 lines
966 B
Makefile
# $NetBSD: Makefile,v 1.49 2017/07/23 16:09:17 adam Exp $
|
|
# IMPORTANT: Do not forget to update audio/xmms-faad
|
|
|
|
DISTNAME= faad2-2.8.1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://faac.sourceforge.net/
|
|
COMMENT= AAC decoding library
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LANGUAGES= c c++
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= autoconf automake autoreconf gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/faad2
|
|
|
|
LIBS+= -lm
|
|
CPPFLAGS.SunOS+= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1
|
|
|
|
SUBST_CLASSES+= pkgver
|
|
SUBST_STAGE.pkgver= pre-configure
|
|
SUBST_MESSAGE.pkgver= Setting PACKAGE_VERSION in neaacdec.h
|
|
SUBST_FILES.pkgver= include/neaacdec.h
|
|
SUBST_SED.pkgver= -e 's,PACKAGE_VERSION,"${PKGVERSION_NOREV}",'
|
|
|
|
post-extract:
|
|
${MV} ${WRKSRC}/frontend/faad.man ${WRKSRC}/frontend/faad.1
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf -if
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|