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