pkgsrc/audio/ladspa/Makefile

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2022/09/11 12:51:18 wiz Exp $
DISTNAME= ladspa_sdk_1.17
PKGNAME= ${DISTNAME:S/_sdk_/-/}
DIST_SUBDIR= ${DISTNAME} # remove on next update
PKGREVISION= 2
CATEGORIES= audio
MASTER_SITES= https://www.ladspa.org/download/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.ladspa.org/
COMMENT= Linux Audio Developers Simple Plugin API
LICENSE= gnu-lgpl-v2.1
WRKSRC= ${WRKDIR}/ladspa_sdk_${PKGVERSION_NOREV}
BUILD_DIRS= src
USE_TOOLS+= gmake
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
MAKE_FILE= Makefile
BUILD_TARGET= targets
TEST_TARGET= test
INSTALLATION_DIRS+= bin include
INSTALLATION_DIRS+= lib/ladspa
INSTALLATION_DIRS+= share/doc/ladspa
do-install:
${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/ladspa
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/plugins/*.la ${DESTDIR}${PREFIX}/lib/ladspa
${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/src/ladspa.h ${DESTDIR}${PREFIX}/include
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
LDFLAGS+= ${BUILDLINK_LDADD.dl}
.include "../../mk/bsd.pkg.mk"