[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / audio / ykchorus

File: [cvs.NetBSD.org] / pkgsrc / audio / ykchorus / Makefile (download)

Revision 1.6, Mon Nov 21 18:20:40 2022 UTC (2 months, 2 weeks ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.5: +5 -1 lines

*: Re-apply SunOS linker argument removals.

These are currently duplicated in mk/platform/SunOS.mk but the generic
removals will be removed soon in favour of per-package removals, due to
flags getting leaked into installed files.

# $NetBSD: Makefile,v 1.6 2022/11/21 18:20:40 jperkin Exp $

DISTNAME=	ykchorus-v0.2.2-source
PKGNAME=	${DISTNAME:S/-source//1:S/-v/-/1}
PKGREVISION=	4
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GITHUB:=SpotlightKid/}
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/SpotlightKid/ykchorus
COMMENT=	Chorus audio effect plugin
LICENSE=	gnu-gpl-v2

WRKSRC=		${WRKDIR}/ykchorus

USE_TOOLS+=	gmake pkg-config
USE_LANGUAGES=	c c++

# C++0x
GCC_REQD+=	4.7

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--as-needed
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--gc-sections
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-O1

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} != "Linux"
CXXFLAGS+=	-DDGL_FILE_BROWSER_DISABLED
.endif

# No CPU-specific optimizations
MAKE_FLAGS+=	NOOPT=true

REPLACE_SH+=	dpf/utils/generate-ttl.sh

.include "../../audio/jack/buildlink3.mk"
.include "../../audio/liblo/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"