svn commit: r426382 - in head/audio/gramofile: . files
John Marino
marino at FreeBSD.org
Sat Nov 19 15:56:55 UTC 2016
Author: marino
Date: Sat Nov 19 15:56:53 2016
New Revision: 426382
URL: https://svnweb.freebsd.org/changeset/ports/426382
Log:
audio/gramofile: Document ncurses requirement and honor CFLAGS
While here, add DragonFly support
Added:
head/audio/gramofile/files/patch-bplaysrc_shmbuf.c (contents, props changed)
Modified:
head/audio/gramofile/Makefile
Modified: head/audio/gramofile/Makefile
==============================================================================
--- head/audio/gramofile/Makefile Sat Nov 19 15:11:28 2016 (r426381)
+++ head/audio/gramofile/Makefile Sat Nov 19 15:56:53 2016 (r426382)
@@ -17,7 +17,7 @@ COMMENT= Audio recording and tick/scratc
LIB_DEPENDS= libfftw.so:math/fftw
ALL_TARGET= gramofile
-USES= gmake perl5
+USES= alias gmake ncurses perl5
USE_CSTD= gnu89
MAKE_ARGS= CC="${CC}" \
CXX="${CXX}" \
@@ -35,11 +35,12 @@ post-patch:
for i in `${LS} ${FILESDIR}/post-patch-* |${SED} /.orig$$/d`; do \
${PATCH} -d ${WRKSRC} --forward --quiet <$$i ;\
done
-.for file in bplay.c sndfunc.c
- @${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \
- ${WRKSRC}/bplaysrc/${file} > ${WRKSRC}/bplaysrc/${file}.new
- @${MV} ${WRKSRC}/bplaysrc/${file}.new ${WRKSRC}/bplaysrc/${file}
-.endfor
+ ${REINPLACE_CMD} -e "s at -lncurses@-L${LOCALBASE}/lib -lncurses at g" \
+ -e "s|CFLAGS =|CFLAGS +=|" \
+ ${WRKSRC}/bplaysrc/Makefile
+ ${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
+ ${WRKSRC}/bplaysrc/bplay.c \
+ ${WRKSRC}/bplaysrc/sndfunc.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gramofile ${WRKSRC}/bplay_gramo \
Added: head/audio/gramofile/files/patch-bplaysrc_shmbuf.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/gramofile/files/patch-bplaysrc_shmbuf.c Sat Nov 19 15:56:53 2016 (r426382)
@@ -0,0 +1,18 @@
+--- bplaysrc/shmbuf.c.orig 2000-03-27 21:38:56 UTC
++++ bplaysrc/shmbuf.c
+@@ -142,6 +142,7 @@ void init_shm(void)
+ if(shmctl(shmid2, IPC_RMID, NULL))
+ ErrDie("shmctl");
+
++#ifndef __DragonFly__
+ #if USEBUFFLOCK
+ /* Ok, go root to lock the buffers down */
+ if(setreuid(geteuid(), getuid()) == -1)
+@@ -173,6 +174,7 @@ void init_shm(void)
+ }
+
+ #endif
++#endif
+ /* Set up the appropriate number of semaphore blocks */
+ numsemblks = numbuffs/SEMMSL;
+ if((numsemblks * SEMMSL) < numbuffs)
More information about the svn-ports-head
mailing list