From 5acf7425dcd3e8f620aba540f86aaf1ece40a931 Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Sat, 2 Jul 2005 14:56:54 +0000 Subject: Fix build on 4-stable. --- sysutils/dd_rescue/Makefile | 3 ++- sysutils/dd_rescue/files/patch-Makefile | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'sysutils/dd_rescue') diff --git a/sysutils/dd_rescue/Makefile b/sysutils/dd_rescue/Makefile index 2b4e5098f74b..4efe951fc3f8 100644 --- a/sysutils/dd_rescue/Makefile +++ b/sysutils/dd_rescue/Makefile @@ -13,13 +13,14 @@ MASTER_SITES= http://www.garloff.de/kurt/linux/ddrescue/ MAINTAINER= nobutaka@freebsd.org COMMENT= A dd tool suitable for rescuing data from a medium with errors +USE_GETOPT_LONG=yes WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= default .include .if ${OSVERSION} < 500000 -BROKEN= "Does not compile on FreeBSD 4.x" +MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib -lgnugetopt" .endif do-install: diff --git a/sysutils/dd_rescue/files/patch-Makefile b/sysutils/dd_rescue/files/patch-Makefile index be2e34499e79..d88779faa2df 100644 --- a/sysutils/dd_rescue/files/patch-Makefile +++ b/sysutils/dd_rescue/files/patch-Makefile @@ -1,12 +1,21 @@ --- Makefile.orig Fri Oct 22 16:38:03 2004 -+++ Makefile Tue Mar 15 01:00:23 2005 -@@ -6,9 +6,7 @@ ++++ Makefile Sat Jul 2 23:40:24 2005 +@@ -6,9 +6,6 @@ DESTDIR = -CC = gcc - RPM_OPT_FLAGS = -O2 -Wall -g +-RPM_OPT_FLAGS = -O2 -Wall -g -CFLAGS = $(RPM_OPT_FLAGS) $(EXTRA_CFLAGS) DEFINES = -DVERSION=\"$(VERSION)\" INSTALL = install INSTALLFLAGS = -s +@@ -25,7 +22,7 @@ + default: $(TARGETS) + + dd_rescue: dd_rescue.c +- $(CC) $(CFLAGS) $(DEFINES) $< -o $@ ++ $(CC) $(CFLAGS) $(DEFINES) $(LIBS) $< -o $@ + + clean: + rm -f $(TARGETS) $(OBJECTS) core -- cgit v1.2.3