aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2005-07-02 22:56:54 +0800
committernobutaka <nobutaka@FreeBSD.org>2005-07-02 22:56:54 +0800
commit1571f6a67a23326d55f2f4608a0a30a7a84c8aa8 (patch)
tree73704dfedbd50d1cf8268c207cadc6a6bfaf1a39 /sysutils
parent7cb52670eed5552a8676ad276edc733dc8181392 (diff)
downloadfreebsd-ports-gnome-1571f6a67a23326d55f2f4608a0a30a7a84c8aa8.tar.gz
freebsd-ports-gnome-1571f6a67a23326d55f2f4608a0a30a7a84c8aa8.tar.zst
freebsd-ports-gnome-1571f6a67a23326d55f2f4608a0a30a7a84c8aa8.zip
Fix build on 4-stable.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/dd_rescue/Makefile3
-rw-r--r--sysutils/dd_rescue/files/patch-Makefile15
2 files changed, 14 insertions, 4 deletions
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 <bsd.port.pre.mk>
.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