diff options
author | grant <grant@pkgsrc.org> | 2005-07-29 06:06:33 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2005-07-29 06:06:33 +0000 |
commit | bdabb8248bac083881f30823d3222e67cd6c33c5 (patch) | |
tree | 43aad4ba077705a11ab8630b61d5fdd86ad54f92 | |
parent | e6da590fdd1f74ddcf2a7ce7a8dfd0e860b955ab (diff) | |
download | pkgsrc-bdabb8248bac083881f30823d3222e67cd6c33c5.tar.gz |
fix build on Solaris:
- sunpro wants 'inline' to inline functions, not '__inline'
- patch away a rogue ;
-rw-r--r-- | audio/xmms-flac/Makefile | 9 | ||||
-rw-r--r-- | audio/xmms-flac/distinfo | 3 | ||||
-rw-r--r-- | audio/xmms-flac/patches/patch-aa | 13 |
3 files changed, 23 insertions, 2 deletions
diff --git a/audio/xmms-flac/Makefile b/audio/xmms-flac/Makefile index 06d02f2623f..56d18978731 100644 --- a/audio/xmms-flac/Makefile +++ b/audio/xmms-flac/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2005/05/22 20:07:39 jlam Exp $ +# $NetBSD: Makefile,v 1.15 2005/07/29 06:06:33 grant Exp $ # DISTNAME= flac-1.1.2 @@ -21,6 +21,13 @@ XMMS_WRKSRC= ${WRKSRC}/src/plugin_xmms # previous name of the package CONFLICTS= flac-xmms-[0-9]* +.include "../../mk/compiler.mk" + +# SunPro does not support __inline +.if !empty(PKGSRC_COMPILER:Msunpro) +CFLAGS+= -D__inline=inline +.endif + #do-build: # @cd ${XMMS_WRKSRC}/../plugin_common && ${SETENV} ${MAKE_ENV} \ # ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKEFILE} ${BUILD_TARGET} diff --git a/audio/xmms-flac/distinfo b/audio/xmms-flac/distinfo index a30b57cf816..5e4461bee06 100644 --- a/audio/xmms-flac/distinfo +++ b/audio/xmms-flac/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.7 2005/03/03 15:29:52 wiz Exp $ +$NetBSD: distinfo,v 1.8 2005/07/29 06:06:33 grant Exp $ SHA1 (flac-1.1.2.tar.gz) = 65501f3547df99b153951edb2ee7bfc13dd56946 RMD160 (flac-1.1.2.tar.gz) = 58656837b02e211eaed5010d84c4ed59841c82d3 Size (flac-1.1.2.tar.gz) = 1516235 bytes +SHA1 (patch-aa) = 48833d0f6f79e47c5796b96ea497b29636e4ed88 diff --git a/audio/xmms-flac/patches/patch-aa b/audio/xmms-flac/patches/patch-aa new file mode 100644 index 00000000000..25aee743100 --- /dev/null +++ b/audio/xmms-flac/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.3 2005/07/29 06:06:33 grant Exp $ + +--- src/libFLAC/format.c.orig 2005-02-04 17:54:49.000000000 +1100 ++++ src/libFLAC/format.c +@@ -63,7 +63,7 @@ FLAC_API const char *FLAC__VENDOR_STRING + + FLAC_API const FLAC__byte FLAC__STREAM_SYNC_STRING[4] = { 'f','L','a','C' }; + FLAC_API const unsigned FLAC__STREAM_SYNC = 0x664C6143; +-FLAC_API const unsigned FLAC__STREAM_SYNC_LEN = 32; /* bits */; ++FLAC_API const unsigned FLAC__STREAM_SYNC_LEN = 32; /* bits */ + + FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MIN_BLOCK_SIZE_LEN = 16; /* bits */ + FLAC_API const unsigned FLAC__STREAM_METADATA_STREAMINFO_MAX_BLOCK_SIZE_LEN = 16; /* bits */ |