View | Details | Raw Unified | Return to bug 285912
Collapse All | Expand All

(-)b/audio/freealut/Makefile (-15 / +15 lines)
Lines 1-26 Link Here
1
PORTNAME=	freealut
1
PORTNAME=	freealut
2
PORTVERSION=	1.1.0
2
DISTVERSION=	1.1.0.20240801
3
PORTREVISION=	4
3
PORTEPOCH=	1
4
CATEGORIES=	audio
4
CATEGORIES=	audio
5
MASTER_SITES=	DEBIAN_POOL
6
DISTNAME=	freealut_${PORTVERSION}.orig
7
5
8
MAINTAINER=	oliver@FreeBSD.org
6
MAINTAINER=	oliver@FreeBSD.org
9
COMMENT=	The OpenAL Utility Toolkit
7
COMMENT=	The OpenAL Utility Toolkit
10
WWW=		http://connect.creativelabs.com/openal/default.aspx
8
WWW=		https://github.com/vancegroup/freealut
11
9
12
GNU_CONFIGURE=	yes
10
LICENSE=	GPLv2
13
CPPFLAGS+=	-I${LOCALBASE}/include
11
LICENSE_FILE=	${WRKSRC}/COPYING
14
LDFLAGS+=	-L${LOCALBASE}/lib
12
15
USES=		gmake libtool openal:al pathfix pkgconfig
13
USES=		cmake localbase:ldflags openal pathfix
16
USE_LDCONFIG=	yes
14
USE_LDCONFIG=	yes
15
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	vancegroup
18
GH_TAGNAME=	8abb420
19
17
LDFLAGS_i386=	-Wl,-znotext
20
LDFLAGS_i386=	-Wl,-znotext
18
INSTALL_TARGET=	install-strip
19
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
21
21
post-patch:
22
CMAKE_OFF=	BUILD_EXAMPLES \
22
	@${REINPLACE_CMD} -e 's/@CFLAGS@/& -lopenal -lpthread/g' \
23
		BUILD_OPTIMIZATION \
23
		${WRKSRC}/examples/Makefile.in \
24
		BUILD_TESTS
24
		${WRKSRC}/test_suite/Makefile.in
25
25
26
.include <bsd.port.mk>
26
.include <bsd.port.mk>
(-)b/audio/freealut/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (freealut_1.1.0.orig.tar.gz) = 60d1ea8779471bb851b89b49ce44eecb78e46265be1a6e9320a28b100c8df44f
1
TIMESTAMP = 1743902077
2
SIZE (freealut_1.1.0.orig.tar.gz) = 461830
2
SHA256 (vancegroup-freealut-1.1.0.20240801-8abb420_GH0.tar.gz) = 229f33367404c61fb6341398c5a7e74dbecea886b4acc3d59d42a09c669b83fe
3
SIZE (vancegroup-freealut-1.1.0.20240801-8abb420_GH0.tar.gz) = 147898
(-)a/audio/freealut/files/patch-src_alutInit.c (-15 lines)
Removed Link Here
1
--- src/alutInit.c.orig	2006-05-08 09:28:07 UTC
2
+++ src/alutInit.c
3
@@ -147,11 +147,7 @@ alutExit (void)
4
       return AL_FALSE;
5
     }
6
 
7
-  if (!alcCloseDevice (device))
8
-    {
9
-      _alutSetError (ALUT_ERROR_CLOSE_DEVICE);
10
-      return AL_FALSE;
11
-    }
12
+  alcCloseDevice (device);
13
 
14
   initialisationState = Unintialized;
15
   return AL_TRUE;
(-)a/audio/freealut/files/patch-src_alutInternal.h (-27 lines)
Removed Link Here
1
--- src/alutInternal.h.orig	2006-05-08 09:28:07 UTC
2
+++ src/alutInternal.h
3
@@ -13,23 +13,8 @@
4
 
5
 #if HAVE_STDINT_H
6
 #include <stdint.h>
7
-#elif _MSC_VER < 1300
8
-typedef char int8_t;
9
-typedef unsigned char uint8_t;
10
-typedef short int16_t;
11
-typedef unsigned short uint16_t;
12
-typedef int int32_t;
13
-typedef unsigned int uint32_t;
14
-#elif HAVE_BASETSD_H
15
-#include <basetsd.h>
16
-typedef INT8 int8_t;
17
-typedef UINT8 uint8_t;
18
-typedef INT16 int16_t;
19
-typedef UINT16 uint16_t;
20
-typedef INT32 int32_t;
21
-typedef UINT32 uint32_t;
22
 #else
23
-#error Do not know sized types on this platform
24
+#include <inttypes.h>
25
 #endif
26
 
27
 typedef int16_t Int16BigEndian;
(-)a/audio/freealut/files/patch-src_alutLoader.c (-11 lines)
Removed Link Here
1
--- src/alutLoader.c.orig	2006-05-08 09:28:07 UTC
2
+++ src/alutLoader.c
3
@@ -474,7 +474,7 @@ alutLoadWAVMemory (ALbyte *buffer, ALenu
4
 
5
   /* ToDo: Can we do something less insane than passing 0x7FFFFFFF? */
6
   stream = _alutInputStreamConstructFromMemory (buffer, 0x7FFFFFFF);
7
-  _alutLoadMemoryFromInputStream (stream, format, size, &freq);
8
+  *data = _alutLoadMemoryFromInputStream (stream, format, size, &freq);
9
   if (*data == NULL)
10
     {
11
       return;
(-)a/audio/freealut/files/patch-src_alutUtil.c (-10 lines)
Removed Link Here
1
--- src/alutUtil.c.orig	2006-05-08 09:28:07 UTC
2
+++ src/alutUtil.c
3
@@ -2,6 +2,7 @@
4
 
5
 #if HAVE_NANOSLEEP && HAVE_TIME_H
6
 #include <time.h>
7
+#include <sys/time.h>
8
 #include <errno.h>
9
 #elif HAVE_USLEEP && HAVE_UNISTD_H
10
 #include <unistd.h>
(-)b/audio/freealut/pkg-plist (-1 lines)
Lines 1-7 Link Here
1
bin/freealut-config
1
bin/freealut-config
2
include/AL/alut.h
2
include/AL/alut.h
3
libdata/pkgconfig/freealut.pc
3
libdata/pkgconfig/freealut.pc
4
lib/libalut.a
5
lib/libalut.so
4
lib/libalut.so
6
lib/libalut.so.0
5
lib/libalut.so.0
7
lib/libalut.so.0.1.0
6
lib/libalut.so.0.1.0

Return to bug 285912