2000-10-08 18:53:47 +00:00
|
|
|
# New ports collection makefile for: snd
|
|
|
|
# Date created: 2000-10-05
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
PORTNAME= snd
|
2012-04-13 15:39:52 +00:00
|
|
|
PORTVERSION= 12.10
|
2008-06-05 22:31:13 +00:00
|
|
|
CATEGORIES= audio
|
2009-08-13 19:12:54 +00:00
|
|
|
MASTER_SITES= ftp://ccrma-ftp.stanford.edu/pub/Lisp/ \
|
2008-09-26 09:07:48 +00:00
|
|
|
http://mirror.mcx2.org/
|
2008-06-05 22:31:13 +00:00
|
|
|
|
2009-03-06 18:14:36 +00:00
|
|
|
MAINTAINER= dhn@FreeBSD.org
|
2008-06-05 22:31:13 +00:00
|
|
|
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 \
|
2008-10-12 09:58:47 +00:00
|
|
|
S7 "Use S7 as the extension language" off \
|
2008-06-05 22:31:13 +00:00
|
|
|
LADSPA "Include support for LADSPA plugins" on \
|
2009-03-10 15:47:50 +00:00
|
|
|
MOTIF "Make Snd with Motif graphics support" off \
|
|
|
|
GTK2 "Make Snd with Gtk+ graphics support" on \
|
|
|
|
X11 "Make Snd with GUI support" on
|
2008-06-05 22:31:13 +00:00
|
|
|
|
2011-08-11 19:53:59 +00:00
|
|
|
WANT_GNOME= yes
|
2004-06-18 23:08:40 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-06-05 22:31:13 +00:00
|
|
|
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
|
2009-11-22 19:49:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2006-07-15 16:26:45 +00:00
|
|
|
|
2004-06-18 23:08:40 +00:00
|
|
|
MAN1= snd.1
|
2006-07-15 16:26:45 +00:00
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-07-15 16:26:45 +00:00
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-06-18 23:08:40 +00:00
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= does not compile on sparc64
|
2006-07-15 16:26:45 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ESD)
|
2008-06-05 22:31:13 +00:00
|
|
|
USE_GNOME+= esound
|
2002-01-17 19:26:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-esd
|
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
.if !defined(WITHOUT_FFTW3)
|
2011-10-17 10:08:33 +00:00
|
|
|
LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3
|
2008-06-05 22:31:13 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-fftw
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
.if !defined(WITHOUT_GSL)
|
2011-05-09 16:42:27 +00:00
|
|
|
LIB_DEPENDS+= gsl.16:${PORTSDIR}/math/gsl
|
2008-06-05 22:31:13 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gsl
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2008-06-05 22:31:13 +00:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_GUILE)
|
2009-03-10 15:47:50 +00:00
|
|
|
CONFIGURE_ARGS+= --with-guile
|
2011-07-31 15:07:08 +00:00
|
|
|
LIB_DEPENDS+= guile.21:${PORTSDIR}/lang/guile
|
2008-10-12 09:58:47 +00:00
|
|
|
PLIST_SUB+= SCHEME=""
|
2004-06-18 23:08:40 +00:00
|
|
|
.else
|
2000-10-08 18:53:47 +00:00
|
|
|
CONFIGURE_ARGS+= --without-guile
|
2008-10-12 09:58:47 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_S7)
|
|
|
|
CONFIGURE_ARGS+= --with-s7
|
|
|
|
PLIST_SUB+= SCHEME=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-s7
|
2008-06-05 22:31:13 +00:00
|
|
|
.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
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
2009-03-10 15:47:50 +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
|
|
|
|
|
2008-06-05 22:31:13 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
2008-07-17 23:12:27 +00:00
|
|
|
CONFIGURE_ARGS+= --with-no-gui
|
2008-06-05 22:31:13 +00:00
|
|
|
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
|
2002-01-17 19:26:23 +00:00
|
|
|
|
|
|
|
do-install:
|
2010-03-07 10:05:45 +00:00
|
|
|
.for i in audinfo snd snd-info sndplay
|
2002-01-17 19:26:23 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
|
2000-10-08 18:53:47 +00:00
|
|
|
.endfor
|
2008-06-05 22:31:13 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/snd.1 ${MANPREFIX}/man/man1/
|
2006-07-15 16:26:45 +00:00
|
|
|
.if !defined(WITHOUT_GUILE)
|
2005-09-09 18:05:28 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2004-06-18 23:08:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
|
2008-06-05 22:31:13 +00:00
|
|
|
@${MKDIR} ${DATADIR}/tools
|
2005-09-09 18:05:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
|
2008-06-05 22:31:13 +00:00
|
|
|
@${MKDIR} ${DATADIR}/sndins/samples
|
2005-09-09 18:05:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2008-10-12 09:58:47 +00:00
|
|
|
.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
|
2008-06-05 22:31:13 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2009-04-21 14:25:43 +00:00
|
|
|
.for i in HISTORY.Snd README.Snd
|
2008-06-05 22:31:13 +00:00
|
|
|
${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
|
2000-10-19 08:35:30 +00:00
|
|
|
|
2006-01-14 09:36:40 +00:00
|
|
|
.include <bsd.port.post.mk>
|