2000-10-08 18:53:47 +00:00
|
|
|
# New ports collection makefile for: snd
|
|
|
|
# Date created: 2000-10-05
|
|
|
|
# Whom: trevor
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= snd
|
2004-06-18 23:08:40 +00:00
|
|
|
PORTVERSION= 7
|
2004-11-07 22:37:47 +00:00
|
|
|
PORTREVISION= 1
|
2000-10-08 18:53:47 +00:00
|
|
|
CATEGORIES= audio
|
2002-12-26 15:10:02 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-10-08 18:53:47 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2003-03-01 14:34:33 +00:00
|
|
|
COMMENT= Multitracking sound editor and utilities
|
2000-10-08 18:53:47 +00:00
|
|
|
|
2004-07-07 08:22:50 +00:00
|
|
|
LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl
|
2000-10-08 18:53:47 +00:00
|
|
|
|
|
|
|
ALL_TARGET= audinfo snd sndinfo sndplay sndrecord sndsine
|
|
|
|
CONFIGURE_ARGS= --with-float-samples \
|
|
|
|
--with-multifile
|
2004-06-18 23:08:40 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CFLAGS="${CFLAGS}"
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
|
|
|
|
MAKEFILE= makefile
|
|
|
|
MAN1= snd.1
|
|
|
|
OPTIONS= ESD "output through enlightened sound daemon" on \
|
|
|
|
GUILE "use Guile" on \
|
|
|
|
RUBY "use Ruby as the extension language" on
|
|
|
|
PLIST= ${WRKDIR}/plist
|
|
|
|
PLIST_FILES= share/examples/snd/DotEmacs
|
|
|
|
PLIST_DIRS= share/examples/snd
|
|
|
|
WRKSRC= ${WRKDIR}/snd-${PORTVERSION}
|
2002-01-17 19:26:23 +00:00
|
|
|
|
2004-06-18 23:08:40 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PLIST_FILES+= share/doc/snd/tutorial/files/.snd \
|
|
|
|
share/doc/snd/tutorial/files/misc.scm.txt \
|
|
|
|
share/doc/snd/tutorial/files/misc.scm.txt~ \
|
|
|
|
share/doc/snd/tutorial/README \
|
|
|
|
share/doc/snd/tutorial/1_intro_and_build_snd.html~
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ESD)
|
2002-01-17 19:26:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-esd
|
2004-06-18 23:08:40 +00:00
|
|
|
RUN_DEPENDS= esd:${PORTSDIR}/audio/esound
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
|
|
|
.if defined(WITH_RUBY)
|
2002-01-17 19:26:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ruby
|
2004-06-18 23:08:40 +00:00
|
|
|
RUN_DEPENDS+= ruby:${PORTSDIR}/lang/ruby16
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
|
|
|
.if defined(WITH_GUILE)
|
|
|
|
LIB_DEPENDS+= guile.15:${PORTSDIR}/lang/guile
|
2001-06-05 11:38:35 +00:00
|
|
|
.if !defined(WITHOUT_X11)
|
2004-06-18 23:08:40 +00:00
|
|
|
LIB_DEPENDS+= guilegtk-1.2:${PORTSDIR}/x11-toolkits/guile-gtk
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
.else
|
2000-10-08 18:53:47 +00:00
|
|
|
CONFIGURE_ARGS+= --without-guile
|
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
2004-06-18 23:51:19 +00:00
|
|
|
PLIST_FILES+= share/locale/de/LC_MESSAGES/snd.mo
|
2004-06-18 23:08:40 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
|
2001-06-05 11:38:35 +00:00
|
|
|
.if defined(WITHOUT_X11)
|
2002-01-17 19:26:23 +00:00
|
|
|
CONFIGURE_ARGS+= --with-no-gui
|
2004-06-18 23:08:40 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-gtk \
|
|
|
|
--with-gtkrc-colors \
|
|
|
|
--with-float-samples
|
2002-01-17 19:26:23 +00:00
|
|
|
PREFIX= ${X11BASE}
|
2004-06-18 23:08:40 +00:00
|
|
|
USE_GNOME= gtk20
|
2000-10-08 18:53:47 +00:00
|
|
|
USE_XLIB= yes
|
|
|
|
.endif
|
|
|
|
|
2004-06-18 23:08:40 +00:00
|
|
|
post-build:
|
|
|
|
${MV} ${WRKSRC}/sndinfo ${WRKSRC}/snd-info
|
2000-10-08 18:53:47 +00:00
|
|
|
|
2002-01-17 19:26:23 +00:00
|
|
|
pre-install:
|
|
|
|
.if !defined(WITHOUT_X11)
|
2002-01-29 09:33:26 +00:00
|
|
|
${ECHO_CMD} lib/X11/app-defaults/Snd.ad >> ${PLIST}
|
2004-06-18 23:08:40 +00:00
|
|
|
${ECHO_CMD} share/examples/snd/Snd.gtkrc >> ${PLIST}
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
.for i in audinfo snd snd-info sndplay sndrecord sndsine
|
2002-01-29 09:33:26 +00:00
|
|
|
${ECHO_CMD} bin/${i} >> ${PLIST}
|
2002-01-17 19:26:23 +00:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for i in COPYING HISTORY.Snd README.Snd TODO.Snd
|
2002-01-29 09:33:26 +00:00
|
|
|
${ECHO_CMD} share/doc/snd/${i} >> ${PLIST}
|
2002-01-17 19:26:23 +00:00
|
|
|
.endfor
|
|
|
|
${FIND} ${WRKDIR} -name '*.html' | \
|
2003-10-04 13:59:31 +00:00
|
|
|
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
|
2002-01-17 19:26:23 +00:00
|
|
|
${FIND} ${WRKDIR} -name '*.png' | \
|
2003-10-04 13:59:31 +00:00
|
|
|
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
|
2004-06-18 23:08:40 +00:00
|
|
|
${FIND} ${WRKDIR} -name '*.jpg' | \
|
|
|
|
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
|
|
|
|
.for ii in share/doc/snd/tutorial/images/jpg \
|
|
|
|
share/doc/snd/tutorial/images \
|
|
|
|
share/doc/snd/tutorial/files \
|
|
|
|
share/doc/snd/tutorial \
|
|
|
|
share/doc/snd
|
|
|
|
${ECHO_CMD} @dirrm ${ii} >> ${PLIST}
|
|
|
|
.endfor
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
.if defined(WITH_GUILE)
|
2002-01-17 19:26:23 +00:00
|
|
|
${FIND} ${WRKSRC} -name '*.scm' | \
|
2003-10-04 13:59:31 +00:00
|
|
|
${SED} -e "s:^${WRKSRC}/:share/snd/:g" >> ${PLIST}
|
2002-01-29 09:33:26 +00:00
|
|
|
${ECHO_CMD} "share/snd/contrib/dlp/README" >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm share/snd/contrib/dlp" >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm share/snd/contrib" >> ${PLIST}
|
|
|
|
${ECHO_CMD} "@dirrm share/snd" >> ${PLIST}
|
2002-01-17 19:26:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
# Only "snd" is an X11 command.
|
|
|
|
.for i in audinfo snd snd-info sndplay sndrecord sndsine
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
|
2000-10-08 18:53:47 +00:00
|
|
|
.endfor
|
2004-06-18 23:08:40 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/snd.1 ${PREFIX}/man/man1/
|
2001-06-05 11:38:35 +00:00
|
|
|
.if !defined(WITHOUT_X11)
|
2002-01-17 19:26:23 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Snd.ad ${PREFIX}/lib/X11/app-defaults/
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-17 19:26:23 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in COPYING HISTORY.Snd README.Snd TODO.Snd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2000-10-08 18:53:47 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2004-06-18 23:08:40 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/DotEmacs ${EXAMPLESDIR}
|
|
|
|
.if !defined(WITHOUT_X11)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Snd.gtkrc ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/de.gmo \
|
|
|
|
${PREFIX}/share/locale/de/LC_MESSAGES/snd.mo
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.png ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${PAX} -r -w tutorial ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_GUILE)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
|
2000-10-08 18:53:47 +00:00
|
|
|
.endif
|
2000-10-19 08:35:30 +00:00
|
|
|
|
2004-03-11 10:35:21 +00:00
|
|
|
.include <bsd.port.mk>
|