mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Fix build on 4-stable.
This commit is contained in:
parent
2951a5883b
commit
5acf7425dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138343
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user