freebsd-ports/audio/libjackasyn/Makefile

56 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: libjackasyn
# Date created: 2006-03-06
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= libjackasyn
PORTVERSION= 0.13
PORTREVISION= 1
CATEGORIES= audio devel
MASTER_SITES= http://gige.xdv.org/soft/libjackasyn/download/
MAINTAINER= acm@FreeBSD.org
COMMENT= Allow use any sound program for the OSS system as a JACK client
LIB_DEPENDS= jack.0:${PORTSDIR}/audio/jack \
samplerate.1:${PORTSDIR}/audio/libsamplerate
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CXXFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= CC="${CC}" LDFLAGS="${LDFLAGS}"
MAKE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CFLAGS}"
CONFIGURE_ARGS= --prefix=${PREFIX}
CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" LDFLAGS="${LDFLAGS}"
MAKE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CXXFLAGS}"
MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
MAN1= jacklaunch.1
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|%%PTHREAD%%|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libjackasyn.so.${PORTVERSION} ${PREFIX}/lib/libjackasyn.so.0
${INSTALL_PROGRAM} ${WRKSRC}/libjackasyn.a ${PREFIX}/lib
${INSTALL_SCRIPT} ${WRKSRC}/jacklaunch ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/libjackoss.h ${PREFIX}/include
post-install:
@cd ${PREFIX}/lib && \
${LN} -s libjackasyn.so.0 libjackasyn.so
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>