summaryrefslogtreecommitdiff
path: root/audio/gramofile/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-11-02 05:25:44 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-11-02 05:25:44 +0000
commitb479ca8fa8e630e926fec71e1c2db01c134d6c74 (patch)
treeda39acb9a46766fa20ae1e4687b2e6ad41a8b5d8 /audio/gramofile/Makefile
parentRemove explicit dependency on httpd, it's included in USE_APACHE. (diff)
update audio/gramofile to 1.6P+debian patches
update to 1.6P (with perl interface), add debian patches, MASTER_SITE moved PR: ports/88199 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
Notes
Notes: svn path=/head/; revision=146995
Diffstat (limited to 'audio/gramofile/Makefile')
-rw-r--r--audio/gramofile/Makefile62
1 files changed, 53 insertions, 9 deletions
diff --git a/audio/gramofile/Makefile b/audio/gramofile/Makefile
index c64ed011efdf..63580ad9de2a 100644
--- a/audio/gramofile/Makefile
+++ b/audio/gramofile/Makefile
@@ -6,21 +6,60 @@
#
PORTNAME= gramofile
-PORTVERSION= 1.6
-PORTREVISION= 1
+PORTVERSION= 1.6P
+PORTREVISION= 7
CATEGORIES= audio
-MASTER_SITES= http://panic.et.tudelft.nl/~costar/gramofile/
+MASTER_SITES= http://www.opensourcepartners.nl/~costar/gramofile/
+
+PATCH_SITES= ${MASTER_SITE_DEBIAN}
+PATCH_SITE_SUBDIR= pool/main/g/${PORTNAME}
+PATCHFILES= ${PORTNAME}_1.6-7.diff.gz
+PATCH_DIST_STRIP= -p1
MAINTAINER= nox@jelal.kn-bremen.de
COMMENT= Audio recording and tick/scratch reduction for e.g. vinyl records
-DEPRECATED= "mastersite disappeared, no longer maintained by author"
-EXPIRATION_DATE= 2005-12-31
+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
+ALL_TARGET= gramofile perl-swig
USE_GMAKE= yes
+USE_PERL5= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+PERLCOREDIR= /usr/libdata/perl/${PERL_VERSION}/mach/CORE
+.else
+PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VERSION}/mach/CORE
+.endif
+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 \
+ ${PATCH} -d ${WRKSRC} `${SED} -n '/^#PATCHOPTIONS:/{s///;p;q;}' $$i` --forward --quiet <$$i ;\
+ done
+ 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
@@ -29,8 +68,13 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${WRKSRC}/bplay_gramo ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/doc/gramofile
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/gramofile
+ ${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>
+.include <bsd.port.post.mk>