1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Remove perl support for preparing devel/swig11 removal. Since no one

responsed my query on -ports [1], I just remove this without  adding
  the new Audio::Gramofile found on cpan [2].

Approved by:	nox (maintainer)

[1] http://docs.freebsd.org/cgi/mid.cgi?20080413075128.GQ16394
[2] The corresponding port can be found at
    http://people.freebsd.org/~rafan/p5-Audio-Gramofile.shar
    http://people.freebsd.org/~rafan/libgramofile.shar
This commit is contained in:
Rong-En Fan 2008-05-07 09:21:05 +00:00
parent 9da1deab80
commit a282063d3f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=212782
4 changed files with 2 additions and 158 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= gramofile
PORTVERSION= 1.6P
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= audio
MASTER_SITES= http://www.opensourcepartners.nl/~costar/gramofile/
@ -19,30 +19,15 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= nox@FreeBSD.org
COMMENT= Audio recording and tick/scratch reduction for e.g. vinyl records
BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig11
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
.if defined(WITH_SWIGDEPS)
RUN_DEPENDS+= ${SITE_PERL}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
RUN_DEPENDS+= sox:${PORTSDIR}/audio/sox
.endif
ALL_TARGET= gramofile perl-swig
ALL_TARGET= gramofile
USE_GMAKE= yes
USE_PERL5= yes
PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VERSION}/mach/CORE
MAKE_ARGS+= PERLCOREDIR=${PERLCOREDIR}
pre-everything::
.if !defined(WITH_SWIGDEPS)
@${ECHO_MSG} "If you want to use the perl-swig example,"
@${ECHO_MSG} "${EXAMPLESDIR}/wav2mp3.pl,"
@${ECHO_MSG} "you need additional depenencies. You can have this port install them by"
@${ECHO_MSG} "defining WITH_SWIGDEPS."
.endif
post-patch:
${RM} ${WRKSRC}/debian/20-warning-fixes.dpatch
for i in ${WRKSRC}/debian/*.dpatch; do \
@ -51,9 +36,6 @@ post-patch:
for i in `${LS} ${FILESDIR}/post-patch-* |${SED} /.orig$$/d`; do \
${PATCH} -d ${WRKSRC} --forward --quiet <$$i ;\
done
${LN} -s ../signpr_cmf3.h ${WRKSRC}/perl-swig
${LN} -s ../signpr_cmf3.c ${WRKSRC}/perl-swig
${SED} -e 's,/usr/bin/perl,${PERL},' ${WRKSRC}/perl-swig/examples/wav2mp3.pl >${WRKDIR}/wav2mp3.pl
.for file in bplay.c sndfunc.c
@${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
${WRKSRC}/bplaysrc/${file} > ${WRKSRC}/bplaysrc/${file}.new
@ -62,13 +44,8 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${WRKSRC}/bplay_gramo ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/perl-swig/Gramofile.pm ${SITE_PERL}/${PERL_ARCH}
${INSTALL_DATA} ${WRKSRC}/perl-swig/Gramofile.so ${SITE_PERL}/${PERL_ARCH}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/perl-swig/README ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKDIR}/wav2mp3.pl ${EXAMPLESDIR}
${LN} -s bplay_gramo ${PREFIX}/bin/brec_gramo
.include <bsd.port.mk>

View File

@ -1,35 +0,0 @@
Index: perl-swig/Makefile
@@ -6,14 +6,14 @@
OBJS := $(patsubst %.c,%.o,$(wildcard *.c))
SWIGWRAP := $(patsubst %.c,%_wrap.c,$(wildcard *.c))
SWIGOBJS := $(patsubst %.c,%_wrap.o,$(wildcard *.c))
-PERLCORE = -I/usr/lib/perl5/5.005/i386-linux/CORE
+PERLCORE = -I${PERLCOREDIR}
SHELL = /bin/sh
SWIG = swig
CC = gcc
-CFLAGS = -c -Wall -O2 -fpic -DSWIG -DTURBO_MEDIAN -DTURBO_BUFFER -Dbool=char
+CFLAGS = -c -Wall -O2 -fpic -DSWIG -DTURBO_MEDIAN -DTURBO_BUFFER -Dbool=char -DPERL_POLLUTE -I${LOCALBASE}/include
LD = ld
LDFLAGS = -shared
-LIBS = -lm -ldl
+LIBS = -lm
swig:: $(LIB)
Index: perl-swig/Gramofile.i
@@ -6,6 +6,7 @@
%import signpr_general.i
%import signpr_wav.i
%import signpr_cmf2.i
+%import signpr_cmf3.i
%import signpr_cmf.i
%import signpr_copy.i
%import signpr_doubmed.i
Index: perl-swig/signpr_cmf3.i
@@ -0,0 +1,5 @@
+%module signpr_cmf3
+%{
+#include "signpr_cmf3.h"
+%}
+%include "signpr_cmf3.h"

View File

@ -1,93 +0,0 @@
Index: signpr_cmf3.c
@@ -24,6 +24,7 @@
#include "signpr_cmf3.h"
#include "signpr_general.h"
#include "signpr_l1fit.h"
+#ifndef SWIG
#include "errorwindow.h"
#include "stringinput.h"
#include "buttons.h"
@@ -31,14 +32,17 @@
#include "boxes.h"
#include "helpline.h"
#include "yesnowindow.h"
+#endif
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
+#ifndef SWIG
#ifndef OLD_CURSES
#include <ncurses.h>
#else
#include <curses.h>
#endif
+#endif
#ifdef DEBUGFILE
static FILE *debugf=NULL;
@@ -88,6 +92,7 @@
#define SIGNPR_CMF3_PARAMSCR_HEADERTEXT "CMF IIF [SIXTH ORDER] - Parameters"
#endif
+#ifndef SWIG
void
cond_median3_param_screen (parampointer_t parampointer)
{
@@ -579,6 +584,7 @@
free (threshold1str.string);
free (threshold2str.string);
}
+#endif /* SWIG */
void
init_cond_median3_filter (int filterno, parampointer_t parampointer)
@@ -886,7 +886,11 @@
fillfuncpointer_t cond_median3_gate_pointer = cond_median3_gate;
sample_t
+#ifndef SWIG
cond_median3_filter (parampointer_t parampointer)
+#else
+cond_median3_filter (parampointer_t parampointer, int *filter_type)
+#endif
{
sample_t sample, gate, returnval;
/* Length of the fft we'll do to get the smoothed interpolate */
@@ -901,7 +901,11 @@
int toleft, toright, nfreq;
signed short maxval;
+#ifndef SWIG
advance_current_pos (&parampointer->buffer, parampointer->filterno);
+#else
+ advance_current_pos (&parampointer->buffer, parampointer->filterno, filter_type);
+#endif
advance_current_pos_custom (&parampointer->buffer4,
cond_median3_gate_pointer,
Index: signpr_cmf3.h
@@ -23,7 +23,11 @@
void delete_cond_median3_filter (parampointer_t parampointer);
+#ifndef SWIG
sample_t cond_median3_filter (parampointer_t parampointer);
+#else
+sample_t cond_median3_filter (parampointer_t parampointer, int *filter_type);
+#endif
#endif /* HAVE_SIGNPR_CMF3_H */
Index: signpr_general.c
@@ -627,7 +627,11 @@
break;
case COND_MEDIAN3_FILTER:
+#ifndef SWIG
return cond_median3_filter (parampointerarray[filterno]);
+#else
+ return cond_median3_filter (parampointerarray[filterno], filter_type);
+#endif
break;
case EXPERIMENT_FILTER:

View File

@ -1,10 +1,5 @@
bin/gramofile
bin/bplay_gramo
bin/brec_gramo
%%SITE_PERL%%/%%PERL_ARCH%%/Gramofile.pm
%%SITE_PERL%%/%%PERL_ARCH%%/Gramofile.so
%%DOCSDIR%%/README
@dirrm %%DOCSDIR%%
%%EXAMPLESDIR%%/README
%%EXAMPLESDIR%%/wav2mp3.pl
@dirrm %%EXAMPLESDIR%%