mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
audio/gramofile: Jettison byteswap/endian hacks
- Pet portclippy
This commit is contained in:
parent
17233191c8
commit
27f5f3f846
@ -12,14 +12,19 @@ MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Audio recording and tick/scratch reduction for e.g. vinyl records
|
||||
WWW= http://www.opensourcepartners.nl/~costar/gramofile/
|
||||
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
LIB_DEPENDS= libfftw.so:math/fftw
|
||||
|
||||
ALL_TARGET= gramofile
|
||||
USES= alias gmake ncurses perl5
|
||||
USE_CSTD= gnu89
|
||||
|
||||
MAKE_ARGS= CC="${CC}" \
|
||||
CXX="${CXX}" \
|
||||
PERLCOREDIR=${PERLCOREDIR}
|
||||
ALL_TARGET= gramofile
|
||||
|
||||
CFLAGS+= -D_WANT_SEMUN
|
||||
|
||||
PERLCOREDIR= ${LOCALBASE}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE
|
||||
|
@ -1,32 +0,0 @@
|
||||
Index: bplaysrc/bplay.c
|
||||
@@ -33,23 +33,30 @@
|
||||
/* Needed for BYTE_ORDER and BIG/LITTLE_ENDIAN macros. */
|
||||
#ifndef _BSD_SOURCE
|
||||
# define _BSD_SOURCE
|
||||
-# include <endian.h>
|
||||
+# include <sys/endian.h>
|
||||
# undef _BSD_SOURCE
|
||||
#else
|
||||
# include <endian.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
+#ifndef __FreeBSD__
|
||||
#include <byteswap.h>
|
||||
+#endif
|
||||
|
||||
/* Adapted from the byteorder macros in the Linux kernel. */
|
||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||
#define cpu_to_le32(x) (x)
|
||||
#define cpu_to_le16(x) (x)
|
||||
#else
|
||||
+#ifdef __FreeBSD__
|
||||
+#define cpu_to_le32(x) bswap32((x))
|
||||
+#define cpu_to_le16(x) bswap16((x))
|
||||
+#else
|
||||
#define cpu_to_le32(x) bswap_32((x))
|
||||
#define cpu_to_le16(x) bswap_16((x))
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
#define le32_to_cpu(x) cpu_to_le32((x))
|
Loading…
Reference in New Issue
Block a user