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

(-)/home/samy/tmp/vpb2/Makefile (-4 / +5 lines)
Lines 1-4 Link Here
1
# Generated automatically from Makefile.in by configure.
2
# New ports collection makefile for:	vpb2
1
# New ports collection makefile for:	vpb2
3
# Date created:				07 Sept 2000
2
# Date created:				07 Sept 2000
4
# Whom:					David Sugar <dyfet@gnu.org>
3
# Whom:					David Sugar <dyfet@gnu.org>
Lines 14-31 Link Here
14
MAINTAINER=	dyfet@gnu.org
13
MAINTAINER=	dyfet@gnu.org
15
COMMENT=	User mode API for Voicetronix 4 port analog DSP telephony cards
14
COMMENT=	User mode API for Voicetronix 4 port analog DSP telephony cards
16
15
17
BROKEN=		"Installs file into /etc"
18
19
USE_GMAKE=	yes
16
USE_GMAKE=	yes
20
USE_LIBTOOL=	yes
17
USE_LIBTOOL=	yes
21
USE_AUTOCONF=	yes
18
USE_AUTOCONF=	yes
22
USE_REINPLACE=	yes
19
USE_REINPLACE=	yes
23
INSTALLS_SHLIB=	yes
20
INSTALLS_SHLIB=	yes
24
21
25
CONFIGURE_ENV=	CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
22
CONFIGURE_ENV=	CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib \
23
		LDFLAGS=${PTHREAD_LIBS}
26
24
27
post-extract:
25
post-extract:
28
	@${FIND} ${WRKSRC} -name "Makefile.in" | \
26
	@${FIND} ${WRKSRC} -name "Makefile.in" | \
29
		${XARGS} ${REINPLACE_CMD} -e 's|-release \$$\(LT_RELEASE\)||g'
27
		${XARGS} ${REINPLACE_CMD} -e 's|-release \$$\(LT_RELEASE\)||g'
28
29
post-patch:
30
	${REINPLACE_CMD} -e "s|PREFIX|${PREFIX}|" ${WRKSRC}/vpbreg.cpp
30
31
31
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)/home/samy/tmp/vpb2/files/patch-Makefile.in (+11 lines)
Line 0 Link Here
1
--- Makefile.in.orig	Sun Dec 28 11:51:29 2003
2
+++ Makefile.in	Sun Dec 28 11:51:38 2003
3
@@ -119,7 +119,7 @@
4
 mtisa_SOURCES = mtisa.cpp
5
 mtisa_LDADD = libvpb2.la
6
 
7
-etc_prefix = /
8
+etc_prefix = $(prefix)
9
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
10
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
11
 CONFIG_HEADER = config.h
(-)/home/samy/tmp/vpb2/files/patch-configure.in (+27 lines)
Line 0 Link Here
1
--- configure.in.orig	Sun Dec 28 11:55:40 2003
2
+++ configure.in	Sun Dec 28 11:55:52 2003
3
@@ -23,24 +23,6 @@
4
 OST_MAINTAINER_MODE
5
 OST_CXX_PROGRAMMING
6
 
7
-AC_CACHE_CHECK(whether ${CC-cc} accepts -pthread,
8
-	ost_cv_prog_cc_pthread,
9
-	[echo 'void f(){}' >conftest.c
10
-	if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then
11
-		ost_cv_prog_cc_pthread=yes
12
-	else
13
-		ost_cv_prog_cc_pthread=no
14
-	fi
15
-	rm -f conftest*
16
-	])
17
-if test $ost_cv_prog_cc_pthread = yes ; then
18
-	LIBS="$LIBS -pthread"
19
-else
20
-	AC_CHECK_LIB(c_r, pthread_self,
21
-		LIBS="$LIBS -lc_r",
22
-		AC_CHECK_LIB(pthread, pthread_self,
23
-			LIBS="$LIBS -lpthread"))
24
-fi
25
 
26
 AC_SUBST(LT_RELEASE)
27
 AC_OUTPUT(Makefile vpb2.spec freebsd/Makefile)
(-)/home/samy/tmp/vpb2/files/patch-genericfreebsd.cpp (+10 lines)
Line 0 Link Here
1
--- genericfreebsd.cpp.orig	Sun Dec 28 10:54:45 2003
2
+++ genericfreebsd.cpp	Sun Dec 28 10:55:01 2003
3
@@ -28,6 +28,7 @@
4
 \*---------------------------------------------------------------------------*/
5
 
6
 #include "config.h"
7
+#include "contypes.h"
8
 
9
 #include <assert.h>
10
 #include <pthread.h>
(-)/home/samy/tmp/vpb2/files/patch-playrec.cpp (+10 lines)
Line 0 Link Here
1
--- playrec.cpp.orig	Sun Dec 28 10:53:19 2003
2
+++ playrec.cpp	Sun Dec 28 10:53:25 2003
3
@@ -41,7 +41,6 @@
4
 #include "generic.h"
5
 
6
 #include <assert.h>
7
-#include <memory>
8
 #include <stdlib.h>
9
 #include <stdio.h>
10
 #include <fcntl.h>
(-)/home/samy/tmp/vpb2/files/patch-vpbreg.cpp (+11 lines)
Line 0 Link Here
1
--- vpbreg.cpp.orig	Sun Dec 28 11:07:43 2003
2
+++ vpbreg.cpp	Sun Dec 28 11:08:25 2003
3
@@ -57,7 +57,7 @@
4
 
5
 #define	NUM_CARDS		1                  // number of VPBs in PC
6
 #define BASE                    0x300              // ISA card base address
7
-#define FIRMWARE_FILE	        "/etc/vpbmain.out"	
8
+#define FIRMWARE_FILE	        "PREFIX/etc/vpbmain.out"	
9
 
10
 /*-------------------------------------------------------------------------*\
11
 
(-)/home/samy/tmp/vpb2/pkg-plist (-4 / +4 lines)
Lines 1-8 Link Here
1
bin/mtisa
2
bin/tload
3
bin/tvpb
4
etc/vpbmain.out
1
include/vpbapi.h
5
include/vpbapi.h
2
lib/libvpb2.a
6
lib/libvpb2.a
3
lib/libvpb2.so
7
lib/libvpb2.so
4
lib/libvpb2.so.0
8
lib/libvpb2.so.0
5
bin/tvpb
6
bin/tload
7
bin/mtisa
8

Return to bug 60680