From a5bec496c62396740a8e011b7370e327432e1b0b Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Sat, 17 Mar 2007 17:21:18 +0000 Subject: [PATCH] Fix build on FreeBSD 7 by using one OS dependant Makefile for all versions of FreeBSD --- audio/rat30/Makefile | 4 ---- audio/rat30/files/patch-Makefile | 13 +++++++++++-- audio/rat30/files/patch-Makefile_FreeBSD_5 | 9 --------- audio/rat30/files/patch-Makefile_FreeBSD_6 | 9 --------- mbone/rat30/Makefile | 4 ---- mbone/rat30/files/patch-Makefile | 13 +++++++++++-- mbone/rat30/files/patch-Makefile_FreeBSD_5 | 9 --------- mbone/rat30/files/patch-Makefile_FreeBSD_6 | 9 --------- 8 files changed, 22 insertions(+), 48 deletions(-) delete mode 100644 audio/rat30/files/patch-Makefile_FreeBSD_5 delete mode 100644 audio/rat30/files/patch-Makefile_FreeBSD_6 delete mode 100644 mbone/rat30/files/patch-Makefile_FreeBSD_5 delete mode 100644 mbone/rat30/files/patch-Makefile_FreeBSD_6 diff --git a/audio/rat30/Makefile b/audio/rat30/Makefile index 4440a9b86c25..636213f08b19 100644 --- a/audio/rat30/Makefile +++ b/audio/rat30/Makefile @@ -27,10 +27,6 @@ LATEST_LINK= rat30 .include -.if ${OSVERSION} >= 700000 -BROKEN= Does not compile on FreeBSD 7.X -.endif - do-build: (cd ${WRKSRC};${SETENV} ${MAKE_ENV} MAKE=${GMAKE} ${SH} ./Build rat) diff --git a/audio/rat30/files/patch-Makefile b/audio/rat30/files/patch-Makefile index 1141401cb3de..b244344647c8 100644 --- a/audio/rat30/files/patch-Makefile +++ b/audio/rat30/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Tue Sep 14 03:39:00 1999 -+++ Makefile Sun Oct 20 14:06:27 2002 +--- Makefile.orig Tue Sep 14 12:39:00 1999 ++++ Makefile Sat Mar 17 18:16:04 2007 @@ -10,8 +10,8 @@ # -DDEBUG_RTP -DREPEAT @@ -11,6 +11,15 @@ LDFLAGS= LDLIBS= $(LDLIBS) -lm RANLIB = ranlib +@@ -19,7 +19,7 @@ + + GSMFLAGS = -DSASR -DFAST -DUSE_FLOAT_MUL + +-include Makefile_$(OSTYPE)_$(OSMVER) ++include Makefile_$(OSTYPE)_4 + + BINDIR = bin/$(USER) + SRCDIR = src @@ -82,6 +82,7 @@ $(BINDIR)/rat-$(OSTYPE)-$(OSVERS): $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS) rm -f $(BINDIR)/rat-$(OSTYPE)-$(OSVERS) diff --git a/audio/rat30/files/patch-Makefile_FreeBSD_5 b/audio/rat30/files/patch-Makefile_FreeBSD_5 deleted file mode 100644 index 2118d537d70a..000000000000 --- a/audio/rat30/files/patch-Makefile_FreeBSD_5 +++ /dev/null @@ -1,9 +0,0 @@ ---- Makefile_FreeBSD_5.orig Sun Oct 20 14:03:11 2002 -+++ Makefile_FreeBSD_5 Sun Oct 20 14:03:06 2002 -@@ -0,0 +1,6 @@ -+TCL_INC = ${LOCALBASE}/include/tcl8.2 -+TK_INC = ${LOCALBASE}/include/tk8.2 -+INCS = -I${X11BASE}/include \ -+ -I$(TCL_INC)/generic -I$(TK_INC)/generic -+LDLIBS = -L${LOCALBASE}/lib \ -+ -L${X11BASE}/lib -ltk82 -ltcl82 -lXext -lX11 -lm diff --git a/audio/rat30/files/patch-Makefile_FreeBSD_6 b/audio/rat30/files/patch-Makefile_FreeBSD_6 deleted file mode 100644 index d609f4e44245..000000000000 --- a/audio/rat30/files/patch-Makefile_FreeBSD_6 +++ /dev/null @@ -1,9 +0,0 @@ ---- /dev/null Thu Nov 30 19:11:00 2006 -+++ Makefile_FreeBSD_6 Thu Nov 30 19:12:50 2006 -@@ -0,0 +1,6 @@ -+TCL_INC = ${LOCALBASE}/include/tcl8.2 -+TK_INC = ${LOCALBASE}/include/tk8.2 -+INCS = -I${X11BASE}/include \ -+ -I$(TCL_INC)/generic -I$(TK_INC)/generic -+LDLIBS = -L${LOCALBASE}/lib \ -+ -L${X11BASE}/lib -ltk82 -ltcl82 -lXext -lX11 -lm diff --git a/mbone/rat30/Makefile b/mbone/rat30/Makefile index 4440a9b86c25..636213f08b19 100644 --- a/mbone/rat30/Makefile +++ b/mbone/rat30/Makefile @@ -27,10 +27,6 @@ LATEST_LINK= rat30 .include -.if ${OSVERSION} >= 700000 -BROKEN= Does not compile on FreeBSD 7.X -.endif - do-build: (cd ${WRKSRC};${SETENV} ${MAKE_ENV} MAKE=${GMAKE} ${SH} ./Build rat) diff --git a/mbone/rat30/files/patch-Makefile b/mbone/rat30/files/patch-Makefile index 1141401cb3de..b244344647c8 100644 --- a/mbone/rat30/files/patch-Makefile +++ b/mbone/rat30/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Tue Sep 14 03:39:00 1999 -+++ Makefile Sun Oct 20 14:06:27 2002 +--- Makefile.orig Tue Sep 14 12:39:00 1999 ++++ Makefile Sat Mar 17 18:16:04 2007 @@ -10,8 +10,8 @@ # -DDEBUG_RTP -DREPEAT @@ -11,6 +11,15 @@ LDFLAGS= LDLIBS= $(LDLIBS) -lm RANLIB = ranlib +@@ -19,7 +19,7 @@ + + GSMFLAGS = -DSASR -DFAST -DUSE_FLOAT_MUL + +-include Makefile_$(OSTYPE)_$(OSMVER) ++include Makefile_$(OSTYPE)_4 + + BINDIR = bin/$(USER) + SRCDIR = src @@ -82,6 +82,7 @@ $(BINDIR)/rat-$(OSTYPE)-$(OSVERS): $(OBJS) $(GSMOBJS) $(CRYPTOBJS) $(RATOBJS) rm -f $(BINDIR)/rat-$(OSTYPE)-$(OSVERS) diff --git a/mbone/rat30/files/patch-Makefile_FreeBSD_5 b/mbone/rat30/files/patch-Makefile_FreeBSD_5 deleted file mode 100644 index 2118d537d70a..000000000000 --- a/mbone/rat30/files/patch-Makefile_FreeBSD_5 +++ /dev/null @@ -1,9 +0,0 @@ ---- Makefile_FreeBSD_5.orig Sun Oct 20 14:03:11 2002 -+++ Makefile_FreeBSD_5 Sun Oct 20 14:03:06 2002 -@@ -0,0 +1,6 @@ -+TCL_INC = ${LOCALBASE}/include/tcl8.2 -+TK_INC = ${LOCALBASE}/include/tk8.2 -+INCS = -I${X11BASE}/include \ -+ -I$(TCL_INC)/generic -I$(TK_INC)/generic -+LDLIBS = -L${LOCALBASE}/lib \ -+ -L${X11BASE}/lib -ltk82 -ltcl82 -lXext -lX11 -lm diff --git a/mbone/rat30/files/patch-Makefile_FreeBSD_6 b/mbone/rat30/files/patch-Makefile_FreeBSD_6 deleted file mode 100644 index d609f4e44245..000000000000 --- a/mbone/rat30/files/patch-Makefile_FreeBSD_6 +++ /dev/null @@ -1,9 +0,0 @@ ---- /dev/null Thu Nov 30 19:11:00 2006 -+++ Makefile_FreeBSD_6 Thu Nov 30 19:12:50 2006 -@@ -0,0 +1,6 @@ -+TCL_INC = ${LOCALBASE}/include/tcl8.2 -+TK_INC = ${LOCALBASE}/include/tk8.2 -+INCS = -I${X11BASE}/include \ -+ -I$(TCL_INC)/generic -I$(TK_INC)/generic -+LDLIBS = -L${LOCALBASE}/lib \ -+ -L${X11BASE}/lib -ltk82 -ltcl82 -lXext -lX11 -lm