aboutsummaryrefslogtreecommitdiffstats
path: root/audio/grip
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2001-07-19 15:08:33 +0800
committermarkp <markp@FreeBSD.org>2001-07-19 15:08:33 +0800
commit3ba2209de961dd89bc02b518d24abf069485be8d (patch)
tree61855914a1c0079458df671726dcbd0093c02d2f /audio/grip
parent5c416ded5d89f939c12dedef792db725ca798f83 (diff)
downloadfreebsd-ports-gnome-3ba2209de961dd89bc02b518d24abf069485be8d.tar.gz
freebsd-ports-gnome-3ba2209de961dd89bc02b518d24abf069485be8d.tar.zst
freebsd-ports-gnome-3ba2209de961dd89bc02b518d24abf069485be8d.zip
Fix pthreads build problem
PR: 28874
Diffstat (limited to 'audio/grip')
-rw-r--r--audio/grip/Makefile4
-rw-r--r--audio/grip/files/patch-aa14
2 files changed, 12 insertions, 6 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile
index 07c922d11dc7..10b9a7ecca98 100644
--- a/audio/grip/Makefile
+++ b/audio/grip/Makefile
@@ -15,11 +15,11 @@ MAINTAINER= ports@FreeBSD.org
USE_GMAKE= yes
USE_GTK= yes
-
ALL_TARGET= gripnopar gcd
-
MAN1= grip.1
MLINKS= grip.1 gcd.1
+MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/*.c
diff --git a/audio/grip/files/patch-aa b/audio/grip/files/patch-aa
index b02145a186e2..e2c2c0077cb2 100644
--- a/audio/grip/files/patch-aa
+++ b/audio/grip/files/patch-aa
@@ -1,6 +1,6 @@
---- Makefile.orig Thu Oct 19 04:12:53 2000
-+++ Makefile Fri Oct 20 20:33:10 2000
-@@ -4,24 +4,24 @@
+--- Makefile.orig Thu Oct 19 04:42:53 2000
++++ Makefile Thu Jul 19 16:32:12 2001
+@@ -4,29 +4,29 @@
OS=$(shell uname -s)
# Compiler
@@ -21,7 +21,7 @@
# Compiler flags
-CFLAGS= -Wall `gtk-config --cflags` -DAUXDIR=\"$(AUXDIR)\" \
-+CFLAGS+= `$(GTK_CONFIG) --cflags gthread` -DAUXDIR=\"$(AUXDIR)\" \
++CFLAGS+= $(PTHREAD_CFLAGS) `$(GTK_CONFIG) --cflags gthread` -DAUXDIR=\"$(AUXDIR)\" \
-DINSTALLDIR=\"$(INSTALLDIR)\" -D_REENTRANT
# Link libraries
@@ -30,3 +30,9 @@
ifeq ($(OS), Linux)
LIBS+= -lpthread
endif
+ ifeq ($(OS), FreeBSD)
+-LIBS+= -pthread
++LIBS+= $(PTHREAD_LIBS)
+ endif
+ PARLIBS= cdparanoia/interface/libcdda_interface.a \
+ cdparanoia/paranoia/libcdda_paranoia.a