Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2005 22:29:46 +0200
From:      Juergen Lock <nox@jelal.kn-bremen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/88199: update audio/gramofile to 1.6P+debian patches
Message-ID:  <20051029202946.GA83508@saturn.kn-bremen.de>
In-Reply-To: <200510292010.j9TKAICD095619@freefall.freebsd.org>
References:  <200510291958.j9TJwAiO082639@saturn.kn-bremen.de> <200510292010.j9TKAICD095619@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051029202946.GA83508>