From owner-svn-ports-all@freebsd.org Sat Feb 6 08:49:52 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 60460A9FDB3; Sat, 6 Feb 2016 08:49:52 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B9571796; Sat, 6 Feb 2016 08:49:52 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u168np8t063279; Sat, 6 Feb 2016 08:49:51 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u168noGG063275; Sat, 6 Feb 2016 08:49:50 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201602060849.u168noGG063275@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 6 Feb 2016 08:49:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r408285 - in head/audio/pd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2016 08:49:52 -0000 Author: pi Date: Sat Feb 6 08:49:50 2016 New Revision: 408285 URL: https://svnweb.freebsd.org/changeset/ports/408285 Log: audio/pd: some fixes - repair the loading of external objects - reduce portlint complaints PR: 206965 Submitted by: Tobias Brodel Added: head/audio/pd/files/patch-src_s__audio__alsa.c - copied, changed from r408284, head/audio/pd/files/patch-src_s_audio_alsa.c head/audio/pd/files/patch-src_s__loader.c (contents, props changed) head/audio/pd/files/patch-src_s__main.c - copied, changed from r408284, head/audio/pd/files/patch-src_s_main.c Deleted: head/audio/pd/files/patch-src_s_audio_alsa.c head/audio/pd/files/patch-src_s_main.c Modified: head/audio/pd/Makefile Modified: head/audio/pd/Makefile ============================================================================== --- head/audio/pd/Makefile Sat Feb 6 08:16:10 2016 (r408284) +++ head/audio/pd/Makefile Sat Feb 6 08:49:50 2016 (r408285) @@ -2,6 +2,7 @@ # $FreeBSD$ PORTNAME= pd +PORTREVISION= 1 DISTVERSION= 0.46-7 DISTVERSIONSUFFIX= .src CATEGORIES= audio @@ -41,49 +42,49 @@ JACK_CONFIGURE_ENABLE= jack JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack post-patch: - @${FIND} ${PATCH_WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ + ${FIND} ${PATCH_WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \ 's|__FreeBSD_kernel__|__FreeBSD__|g ; \ s|__x86_64__|__amd64__|g ; \ s|||g' - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ 's|\*kfreebsd\*gnu\*)|*freebsd*)| ; \ s|portaudio=yes|portaudio=no| ; \ s|-O3||' ${WRKSRC}/configure.ac - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ '/^pkgconfigdir/s|=.*|= $$(prefix)/libdata/pkgconfig| ; \ /^libpddir/s|=.*|= $$(pkglibdir)| ; \ s|make -C|$$(MAKE) -C|' ${WRKSRC}/Makefile.am - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ '/^pd_LDADD/s| =.*| = $$(LIBM)|' ${WRKSRC}/src/Makefile.am - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ 's|PD_BASEDIR/LICENSE|${DOCSDIR}/LICENSE|g ; \ s|PD_BASEDIR/doc/1|${DOCSDIR}/1|g' \ ${WRKSRC}/doc/1.manual/1.introduction.txt - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ 's|-O2 | | ; \ s|-lc ||g' ${WRKSRC}/extra/makefile.subdir - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ 's|-O2 |$$(CFLAGS) | ; \ s|-g ||g ; \ s|-lc ||g' ${WRKSRC}/extra/expr~/makefile - @${REINPLACE_CMD} -e \ + ${REINPLACE_CMD} -e \ '/libpthread/s|_ERROR|_WARN|' ${WRKSRC}/portaudio/configure.in do-install: .for i in src man tcl po extra - @(cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ + (cd ${WRKSRC}/${i} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) .endfor (cd ${WRKSRC} && ${INSTALL_DATA} pd.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig) - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @(${TAR} -C ${WRKSRC}/doc --exclude "*.bak" --exclude "*.orig" \ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (${TAR} -C ${WRKSRC}/doc --exclude "*.bak" --exclude "*.orig" \ -cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} --unlink -xf -) .for i in LICENSE.txt README.txt (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor - @${LN} -sf ${DOCSDIR} ${STAGEDIR}${PREFIX}/lib/pd/doc - @${FIND} ${STAGEDIR}${PREFIX}/lib/pd -name "*.pd_linux" | ${XARGS} \ + ${LN} -sf ${DOCSDIR} ${STAGEDIR}${PREFIX}/lib/pd/doc + ${FIND} ${STAGEDIR}${PREFIX}/lib/pd -name "*.pd_linux" | ${XARGS} \ ${STRIP_CMD} .include Copied and modified: head/audio/pd/files/patch-src_s__audio__alsa.c (from r408284, head/audio/pd/files/patch-src_s_audio_alsa.c) ============================================================================== --- head/audio/pd/files/patch-src_s_audio_alsa.c Sat Feb 6 08:16:10 2016 (r408284, copy source) +++ head/audio/pd/files/patch-src_s__audio__alsa.c Sat Feb 6 08:49:50 2016 (r408285) @@ -1,5 +1,5 @@ ---- src/s_audio_alsa.c.orig 2011-11-07 13:06:38.000000000 +0900 -+++ src/s_audio_alsa.c 2012-02-26 03:12:50.000000000 +0900 +--- src/s_audio_alsa.c.orig 2014-09-18 00:09:56 UTC ++++ src/s_audio_alsa.c @@ -25,7 +25,14 @@ #include #include Added: head/audio/pd/files/patch-src_s__loader.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/pd/files/patch-src_s__loader.c Sat Feb 6 08:49:50 2016 (r408285) @@ -0,0 +1,34 @@ +--- src/s_loader.c.orig 2014-08-18 00:35:53 UTC ++++ src/s_loader.c +@@ -2,7 +2,7 @@ + * For information on usage and redistribution, and for a DISCLAIMER OF ALL + * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +-#ifdef HAVE_LIBDL ++#if defined(HAVE_LIBDL) || defined(__FreeBSD__) + #include + #endif + #ifdef HAVE_UNISTD_H +@@ -37,11 +37,9 @@ objects. The specific name is the lette + darwin, or microsoft, followed by a more specific string, either "fat" for + a fat binary or an indication of the instruction set. */ + +-#ifdef __FreeBSD__ +-static char sys_dllextent[] = ".b_i386", sys_dllextent2[] = ".pd_freebsd"; +-#elif defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__) ++#if defined(__linux__) || defined(__FreeBSD__) || defined(__GNU__) || defined(__FreeBSD__) + static char sys_dllextent2[] = ".pd_linux"; +-# ifdef __x86_64__ ++# ifdef __amd64__ + static char sys_dllextent[] = ".l_ia64"; // this should be .l_x86_64 or .l_amd64 + # elif defined(__i386__) || defined(_M_IX86) + static char sys_dllextent[] = ".l_i386"; +@@ -216,7 +214,7 @@ gotone: + makeout = (t_xxx)GetProcAddress(ntdll, "setup"); + SetDllDirectory(NULL); /* reset DLL dir to nothing */ + } +-#elif defined HAVE_LIBDL ++#elif defined(HAVE_LIBDL) || defined(__FreeBSD__) + dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL); + if (!dlobj) + { Copied and modified: head/audio/pd/files/patch-src_s__main.c (from r408284, head/audio/pd/files/patch-src_s_main.c) ============================================================================== --- head/audio/pd/files/patch-src_s_main.c Sat Feb 6 08:16:10 2016 (r408284, copy source) +++ head/audio/pd/files/patch-src_s__main.c Sat Feb 6 08:49:50 2016 (r408285) @@ -1,6 +1,6 @@ ---- src/s_main.c.orig 2011-03-07 10:11:02.000000000 +0900 -+++ src/s_main.c 2011-04-06 19:30:04.000000000 +0900 -@@ -936,7 +940,11 @@ +--- src/s_main.c.orig 2015-09-09 23:08:21 UTC ++++ src/s_main.c +@@ -1137,7 +1137,11 @@ static void sys_afterargparse(void) /* add "doc/5.reference" library to helppath */ strncpy(sbuf, sys_libdir->s_name, MAXPDSTRING-30); sbuf[MAXPDSTRING-30] = 0;