1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/audio/snd/Makefile

153 lines
3.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: snd
# Date created: 2000-10-05
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= snd
2012-04-13 15:39:52 +00:00
PORTVERSION= 12.10
CATEGORIES= audio
2009-08-13 19:12:54 +00:00
MASTER_SITES= ftp://ccrma-ftp.stanford.edu/pub/Lisp/ \
http://mirror.mcx2.org/
MAINTAINER= dhn@FreeBSD.org
COMMENT= Multitracking sound editor and utilities
OPTIONS= ESD "Use Enlightened Sound Daemon" on \
FFTW3 "Use FFTW" on \
GSL "Use GNU Scientific Library" on \
GUILE "Use Guile as the extension language" on \
S7 "Use S7 as the extension language" off \
LADSPA "Include support for LADSPA plugins" on \
MOTIF "Make Snd with Motif graphics support" off \
GTK2 "Make Snd with Gtk+ graphics support" on \
X11 "Make Snd with GUI support" on
WANT_GNOME= yes
2004-06-18 23:08:40 +00:00
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-float-samples
2004-06-18 23:08:40 +00:00
MAKEFILE= makefile
2010-03-07 10:05:45 +00:00
ALL_TARGET= audinfo snd snd-info sndplay
MAKE_JOBS_UNSAFE= yes
2004-06-18 23:08:40 +00:00
MAN1= snd.1
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
2004-06-18 23:08:40 +00:00
.if ${ARCH} == "sparc64"
BROKEN= does not compile on sparc64
.endif
.if !defined(WITHOUT_ESD)
USE_GNOME+= esound
CONFIGURE_ARGS+= --with-esd
.endif
2004-06-18 23:08:40 +00:00
.if !defined(WITHOUT_FFTW3)
LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3
.else
CONFIGURE_ARGS+= --without-fftw
.endif
2004-06-18 23:08:40 +00:00
.if !defined(WITHOUT_GSL)
LIB_DEPENDS+= gsl.16:${PORTSDIR}/math/gsl
.else
CONFIGURE_ARGS+= --without-gsl
.endif
.if !defined(WITHOUT_GUILE)
CONFIGURE_ARGS+= --with-guile
LIB_DEPENDS+= guile.21:${PORTSDIR}/lang/guile
PLIST_SUB+= SCHEME=""
2004-06-18 23:08:40 +00:00
.else
CONFIGURE_ARGS+= --without-guile
.endif
.if !defined(WITHOUT_S7)
CONFIGURE_ARGS+= --with-s7
PLIST_SUB+= SCHEME=""
.else
CONFIGURE_ARGS+= --without-s7
.endif
.if !defined(WITHOUT_LADSPA)
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
.else
CONFIGURE_ARGS+= --without-ladspa
.endif
2004-06-18 23:08:40 +00:00
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk
PLIST_SUB+= X11=""
.endif
.if defined(WITH_MOTIF)
USE_MOTIF= yes
CONFIGURE_ARGS+= --with-motif
PLIST_SUB+= X11=""
2006-01-14 09:36:40 +00:00
.endif
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --with-no-gui
PLIST_SUB+= X11="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^ _Complex| Vaiolate _Complex|g ; \
s|-O2 -I|-I|g ; \
s|LDFLAGS -ldl|LDFLAGS|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^sndinfo:|snd-info:|g ; \
2010-03-07 10:05:45 +00:00
s|-o sndinfo|-o snd-info|g' ${WRKSRC}/makefile.in
do-install:
2010-03-07 10:05:45 +00:00
.for i in audinfo snd snd-info sndplay
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
.endfor
${INSTALL_MAN} ${WRKSRC}/snd.1 ${MANPREFIX}/man/man1/
.if !defined(WITHOUT_GUILE)
@${MKDIR} ${DATADIR}
2004-06-18 23:08:40 +00:00
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(WITHOUT_GAUCHE)
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(WITHOUT_S7)
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in HISTORY.Snd README.Snd
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/pix
${INSTALL_DATA} ${WRKSRC}/pix/*.png ${DOCSDIR}/pix
cd ${WRKSRC} && ${PAX} -r -w tutorial ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/DotEmacs ${EXAMPLESDIR}
.endif
2006-01-14 09:36:40 +00:00
.include <bsd.port.post.mk>