blob: 5c344d1a705b3bb52839b99f0b01c717007e0dd2 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
|
# 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
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_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" LDFLAGS="${LDFLAGS}"
MAKE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CXXFLAGS}"
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>
|