From 7097ee734af41d67f3f000beb0e5e0f4e1e7b5ee Mon Sep 17 00:00:00 2001 From: thierry Date: Sat, 19 Feb 2005 16:16:34 +0000 Subject: Fix for compilation on 5.x. PR: ports/76320 Submitted by: Johan van Selst --- security/tea-total/Makefile | 10 ++-------- security/tea-total/files/patch-Makefile | 6 ++---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/security/tea-total/Makefile b/security/tea-total/Makefile index ef56f0f9d67d..4bdcb869f9a3 100644 --- a/security/tea-total/Makefile +++ b/security/tea-total/Makefile @@ -7,7 +7,7 @@ PORTNAME= tea-total PORTVERSION= 0.4 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= http://www.alexholden.net/pub/${PORTNAME}/ @@ -20,10 +20,4 @@ ONLY_FOR_ARCHS= i386 USE_GMAKE= yes MAN1= teatotal.1 tea.1 untea.1 tea-kgen.1 -.include - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - -.include +.include diff --git a/security/tea-total/files/patch-Makefile b/security/tea-total/files/patch-Makefile index 2d8a941a7a9f..123b351cd29c 100644 --- a/security/tea-total/files/patch-Makefile +++ b/security/tea-total/files/patch-Makefile @@ -13,19 +13,17 @@ MKDIR = mkdir -p CMP = cmp -CFLAGS = -O2 -Wall -DARCH_$(ARCH) -+CFLAGS += -DARCH_$(ARCH) ++CFLAGS += -DARCH_FREEBSD LDFLAGS = BINDIR = $(PREFIX)/bin TEATOTAL = teatotal -@@ -26,6 +26,11 @@ +@@ -26,6 +26,9 @@ ifeq ($(ARCH), OPENBSD) MANDIR = $(PREFIX)/share/man/man1 RANDOM_DEVICE = \"/dev/srandom\" +else -+ifeq ($(ARCH), FREEBSD) +MANDIR = $(PREFIX)/man/man1 +RANDOM_DEVICE = \"/dev/random\" -+endif endif endif -- cgit