mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
695fabc62a
- Use the new format for LIB_DEPENDS - Support STAGEDIR and add OPTIONS_SUB - Add USE_QT4= moc_build - Add DOCS and EXAMPLES - Add DOCS and EXAMPLES Options Approved by: pawel / wg (mentors, implicit)
80 lines
2.0 KiB
Makefile
80 lines
2.0 KiB
Makefile
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dssi
|
|
PORTVERSION= 1.1.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= API for audio processing plugins
|
|
|
|
LICENSE= BSD LGPL21
|
|
LICENSE_COMB= multi
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
|
LIB_DEPENDS= libdssialsacompat.so:${PORTSDIR}/audio/libdssialsacompat \
|
|
liblo.so:${PORTSDIR}/audio/liblo \
|
|
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
|
|
libsndfile.so:${PORTSDIR}/audio/libsndfile \
|
|
libjack.so:${PORTSDIR}/audio/jack
|
|
RUN_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
|
|
|
USES= gmake pathfix pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PORTDOCS= ChangeLog README
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
EXAMPLESSRCDIR= ${WRKSRC}/examples
|
|
|
|
EXAMPLES_FILES1= dssi_analyse_plugin dssi_list_plugins \
|
|
dssi_osc_send dssi_osc_update
|
|
|
|
EXAMPLES_FILES2= LTS_qt trivial_sampler_qt
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES QT4
|
|
OPTIONS_DEFAULT= QT4
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
USE_QT4= corelib gui moc_build
|
|
QT_NONSTANDARD= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/^lts_uidir/s|^|@HAVE_QT_TRUE@| ; \
|
|
/^trivial_sampler_uidir/s|^|@HAVE_QT_TRUE@| ; \
|
|
s|-ldl$$||' ${WRKSRC}/examples/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|-ldl$$||' ${WRKSRC}/jack-dssi-host/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
'/alsa >=/s|$$PKG_CONFIG|${FALSE}|' ${WRKSRC}/configure
|
|
|
|
.if ! ${PORT_OPTIONS:MQT4}
|
|
@${REINPLACE_CMD} -e \
|
|
'/QtCore >=/s|$$PKG_CONFIG|${FALSE}|' ${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES1:S|^|${EXAMPLESSRCDIR}/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
${INSTALL_PROGRAM} ${EXAMPLES_FILES2:S|^|${EXAMPLESSRCDIR}/|} ${STAGEDIR}${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|