aboutsummaryrefslogblamecommitdiff
path: root/audio/alsa-lib/Makefile
blob: 26aa34b834be045c17a0bee37af731270304ae71 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                        
                     

                         
                     




                            
 
                                 
                                          
                                             
 
                       
 
                                                       

                            
                   
                   
                                                                 
                                        
                             

                                                                 
                     
                             
 








                                                                     
                                            

             
                                                                               

                      
PORTNAME=	alsa-lib
PORTVERSION=	1.2.2
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	audio
MASTER_SITES=	GH

USE_GITHUB=	yes
GH_ACCOUNT=	alsa-project
GH_PROJECT=	${PORTNAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	ALSA compatibility library
WWW=		https://www.alsa-project.org/

LICENSE=	LGPL21+

USES=		autoreconf cpe libtool:keepla tar:bzip2
CPE_VENDOR=	alsa-project
CPE_PRODUCT=	alsa
USE_LDCONFIG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-pkgconfdir="\$${prefix}/libdata/pkgconfig"
CONFIGURE_ENV=	ac_cv_header_endian_h=no
INSTALL_TARGET=	install-strip
TEST_ENV=	${MAKE_ENV} \
		ALSA_CONFIG_PATH="${FILESDIR}/asound.conf.sample"
TEST_TARGET=	check
CPPFLAGS+=	-I${FILESDIR}

OPTIONS_DEFINE=		PYTHON
OPTIONS_SUB=		yes

PYTHON_USES=			gettext-runtime python
PYTHON_CONFIGURE_ENABLE=	mixer-pymods python
PYTHON_BINARY_ALIAS=		python3-config=${PYTHON_CMD:T}-config

post-patch:
	@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' \
		${WRKSRC}/src/conf/alsa.conf

post-install:
	${INSTALL_DATA} ${FILESDIR}/asound.conf.sample ${STAGEDIR}${PREFIX}/etc

.include <bsd.port.mk>