1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00
freebsd-ports/audio/zita-alsa-pcmi/Makefile
Yuri Victorovich 3adc4101b9 audio/zita-alsa-pcmi: Update 0.5.1 -> 0.6.1
Reported by:	portscout
2022-12-27 15:06:30 -08:00

54 lines
1.4 KiB
Makefile

PORTNAME= zita-alsa-pcmi
DISTVERSION= 0.6.1
CATEGORIES= audio
MASTER_SITES= https://kokkinizita.linuxaudio.org/linuxaudio/downloads/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Easy access to ALSA PCM devices
WWW= https://kokkinizita.linuxaudio.org/linuxaudio/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libasound.so:audio/alsa-lib
USES= gmake localbase:ldflags pkgconfig tar:bz2
USE_LDCONFIG= yes
CXXFLAGS+= -I../source
LDFLAGS+= -L../source
PLIST_FILES= bin/alsa_delay \
bin/alsa_loopback \
include/zita-alsa-pcmi.h \
lib/libzita-alsa-pcmi.so \
lib/libzita-alsa-pcmi.so.${DISTVERSION:R:R} \
lib/libzita-alsa-pcmi.so.${DISTVERSION}
do-build:
.for d in source apps
@cd ${BUILD_WRKSRC}/${d} && \
${ECHO} "Building in ${d}" && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS}
.endfor
do-install:
.for d in source apps
@cd ${INSTALL_WRKSRC}/${d} && \
${ECHO} "Installing in ${d}" && \
${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
.endfor
post-install:
# add symlink, see comment in the patch
@cd ${STAGEDIR}${PREFIX} && \
(cd lib && ${RLN} libzita-alsa-pcmi.so.${DISTVERSION} libzita-alsa-pcmi.so.${DISTVERSION:R:R})
# strip binaries
@cd ${STAGEDIR}${PREFIX} && \
${STRIP_CMD} \
bin/alsa_delay \
bin/alsa_loopback \
lib/libzita-alsa-pcmi.so.${DISTVERSION}
.include <bsd.port.mk>