-
Notifications
You must be signed in to change notification settings - Fork 160
/
Makefile
45 lines (33 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.34 2024/06/30 06:02:15 wiz Exp $
DISTNAME= alsa-lib-1.2.12
CATEGORIES= audio
MASTER_SITES= ftp://ftp.alsa-project.org/pub/lib/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= [email protected]
HOMEPAGE= https://www.alsa-project.org/
COMMENT= Advanced Linux Sound Architecture (ALSA)
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LANGUAGES= c
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
PKGCONFIG_OVERRIDE+= utils/alsa.pc.in
SUBST_CLASSES+= conf-path
SUBST_STAGE.conf-path= pre-configure
SUBST_FILES.conf-path= src/conf/alsa.conf
SUBST_VARS.conf-path= VARBASE PKG_SYSCONFDIR
CONFIGURE_ARGS+= --disable-python
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -DBSD_COMP -DMAP_FILE=0
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600
#CPPFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t
#CPPFLAGS.SunOS+= -Du_int32_t=uint32_t -Du_int64_t=uint64_t
#CPPFLAGS.SunOS+= -D__u32=uint32_t -D__u64=uint64_t
#CPPFLAGS.NetBSD+= -D__u32=uint32_t -D__u64=uint64_t
#CPPFLAGS.FreeBSD+= -D__u32=uint32_t -D__u64=uint64_t
LIBS.SunOS+= -lsocket -lnsl
CONFIGURE_ARGS.SunOS+= --without-versioned
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=Versions
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"