Bug 88199 - update audio/gramofile to 1.6P+debian patches
Summary: update audio/gramofile to 1.6P+debian patches
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-29 21:10 UTC by Juergen Lock
Modified: 2005-11-02 05:25 UTC (History)
0 users

See Also:


Attachments
file.diff (14.97 KB, patch)
2005-10-29 21:10 UTC, Juergen Lock
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Lock 2005-10-29 21:10:18 UTC
	update to 1.6P (with perl interface), add debian patches,
	MASTER_SITE moved

Fix: Removed files: files/patch-aa files/patch-ab
New files: files/patch-20-warning-fixes files/patch-swig
        files/post-patch-Makefile files/post-patch-bplay.c
        files/post-patch-cmf3-swig files/post-patch-playwav.c
        files/post-patch-reclp_main.c
How-To-Repeat: 	n/a
Comment 1 Juergen Lock 2005-10-29 21:29:46 UTC
On Sat, Oct 29, 2005 at 08:10:18PM +0000, FreeBSD-gnats-submit@FreeBSD.org wrote:
>[...]
> http://www.freebsd.org/cgi/query-pr.cgi?pr=88199

Oops, that Makefile diff in there is against 1.5 (before its been
marked deprecated), here is a diff against 1.6:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/audio/gramofile/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	24 Oct 2005 14:38:41 -0000	1.6
+++ Makefile	29 Oct 2005 20:21:50 -0000
@@ -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 @@
 
 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>
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2005-11-02 05:25:48 UTC
State Changed
From-To: open->closed

Committed, thanks!