mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
update to 0.9a.
PR: 24229 Submitted by: maintainer honor CFLAGS.
This commit is contained in:
parent
3337237bb4
commit
9e765544dd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37739
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= ftrace
|
||||
PORTVERSION= 0.9
|
||||
PORTVERSION= 0.9a
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://software.senko.net/pub/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
@ -15,4 +15,6 @@ MAINTAINER= greid@ukug.uk.freebsd.org
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (ftrace_0.9.tar.gz) = b2a479f2eec86ec24fd02a6723afe303
|
||||
MD5 (ftrace_0.9a.tar.gz) = 850a9344b87d94a3d52c46479591b9c8
|
||||
|
@ -1,16 +1,15 @@
|
||||
--- Makefile.orig Fri Jan 5 18:40:20 2001
|
||||
+++ Makefile Sat Jan 6 14:11:10 2001
|
||||
@@ -1,11 +1,10 @@
|
||||
-PREFIX = /usr/local
|
||||
BINDIR = $(PREFIX)/bin
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
--- configure.orig Wed Jan 10 17:34:44 2001
|
||||
+++ configure Wed Jan 10 17:35:26 2001
|
||||
@@ -632,6 +632,12 @@
|
||||
program_prefix=${target_alias}-
|
||||
|
||||
CC = gcc
|
||||
LD = ld
|
||||
-CFLAGS = -Wall -O3 -DPIC -fPIC -D_REENTRANT
|
||||
-LDFLAGS = -shared -ldl
|
||||
+CFLAGS += -Wall -O3 -DPIC -fPIC -D_REENTRANT
|
||||
+LDFLAGS = -shared
|
||||
OBJS = ftrace.o
|
||||
|
||||
.PHONY: all clean install
|
||||
case "$host" in
|
||||
+ *-freebsd*)
|
||||
+ cat >> confdefs.h <<\EOF
|
||||
+#define LINUX_GLIBC 1
|
||||
+EOF
|
||||
+ LDSHARED=-shared
|
||||
+ ;;
|
||||
*-linux*)
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define LINUX_GLIBC 1
|
||||
|
@ -1,8 +1,13 @@
|
||||
--- ftrace.orig Sat Jan 6 14:11:37 2001
|
||||
+++ ftrace Sat Jan 6 14:11:24 2001
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
--- ftrace.c.orig Wed Jan 10 17:38:16 2001
|
||||
+++ ftrace.c Wed Jan 10 17:36:28 2001
|
||||
@@ -10,9 +10,10 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
if [ "$1" = "-i" ]; then
|
||||
export FTRACEIGNOREME=1
|
||||
#ifdef LINUX_GLIBC
|
||||
-typedef __off64_t off64_t;
|
||||
+typedef off_t off64_t;
|
||||
#define _GNU_SOURCE
|
||||
#endif /* LINUX_GLIBC */
|
||||
|
32
sysutils/ftrace/files/patch-ac
Normal file
32
sysutils/ftrace/files/patch-ac
Normal file
@ -0,0 +1,32 @@
|
||||
--- Makefile.in.orig Wed Jan 10 09:10:45 2001
|
||||
+++ Makefile.in Mon Jan 29 13:18:13 2001
|
||||
@@ -1,12 +1,12 @@
|
||||
BINDIR = @prefix@/bin
|
||||
LIBDIR = @prefix@/lib
|
||||
-DOCDIR = @prefix@/doc/ftrace
|
||||
+DOCDIR = @prefix@/share/doc/ftrace
|
||||
|
||||
CC = @CC@
|
||||
LD = @LD@
|
||||
INSTALL = @INSTALL@
|
||||
-CFLAGS = -Wall -O2 -DPIC -fPIC -D_REENTRANT -I.
|
||||
-LDFLAGS = @LDSHARED@ -ldl
|
||||
+CFLAGS += -Wall -DPIC -fPIC -D_REENTRANT -I.
|
||||
+LDFLAGS = @LDSHARED@
|
||||
OBJS = ftrace.o
|
||||
|
||||
.PHONY: all clean install distclean
|
||||
@@ -20,10 +20,10 @@
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
install: libftrace.so
|
||||
- $(INSTALL) -m 755 ftrace $(BINDIR)
|
||||
- $(INSTALL) -m 755 libftrace.so $(LIBDIR)
|
||||
+ $(INSTALL) -m 555 ftrace $(BINDIR)
|
||||
+ $(INSTALL) -m 555 libftrace.so $(LIBDIR)
|
||||
$(INSTALL) -d $(DOCDIR)
|
||||
- $(INSTALL) COPYING README TODO ChangeLog $(DOCDIR)
|
||||
+ $(INSTALL) -m 444 COPYING README TODO ChangeLog $(DOCDIR)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *.bak *~
|
@ -1,2 +1,7 @@
|
||||
bin/ftrace
|
||||
lib/libftrace.so
|
||||
share/doc/ftrace/COPYING
|
||||
share/doc/ftrace/README
|
||||
share/doc/ftrace/TODO
|
||||
share/doc/ftrace/ChangeLog
|
||||
@dirrm share/doc/ftrace
|
||||
|
Loading…
Reference in New Issue
Block a user