diff options
author | heinz <heinz@pkgsrc.org> | 2007-10-28 10:10:09 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2007-10-28 10:10:09 +0000 |
commit | 7a0a5e778d7e792148f2f0540f8cf1b0d427e798 (patch) | |
tree | e9a78a0ac1c4e79954ecddee4207baa9be4b9056 /sysutils/tree | |
parent | 386ee5bb8b9280f181fb2c59bffd591356224664 (diff) | |
download | pkgsrc-7a0a5e778d7e792148f2f0540f8cf1b0d427e798.tar.gz |
Made CFLAGS and LDFLAGS overridable through the pkgsrc Makefile.
Proposed by Christian Hattemer in PR pkg/37190.
Diffstat (limited to 'sysutils/tree')
-rw-r--r-- | sysutils/tree/Makefile | 4 | ||||
-rw-r--r-- | sysutils/tree/distinfo | 4 | ||||
-rw-r--r-- | sysutils/tree/patches/patch-ab | 24 |
3 files changed, 26 insertions, 6 deletions
diff --git a/sysutils/tree/Makefile b/sysutils/tree/Makefile index 9d005b31a5a..927070e07dd 100644 --- a/sysutils/tree/Makefile +++ b/sysutils/tree/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2007/10/25 08:51:30 heinz Exp $ +# $NetBSD: Makefile,v 1.4 2007/10/28 10:10:09 heinz Exp $ # DISTNAME= tree-1.5.1.1 @@ -14,6 +14,8 @@ COMMENT= Print a text or HTML tree diagram of a directory structure PKG_DESTDIR_SUPPORT= user-destdir MAKE_FLAGS+= PREFIX=${PREFIX:Q} +MAKE_FLAGS+= CFLAGS=${CFLAGS:Q} +MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q} MAKE_FLAGS+= MANSUBDIR=${PKGMANDIR:Q} MAKE_FLAGS+= INSTALL_PROGRAM_DIR=${INSTALL_PROGRAM_DIR:Q} MAKE_FLAGS+= INSTALL_PROGRAM=${INSTALL_PROGRAM:Q} diff --git a/sysutils/tree/distinfo b/sysutils/tree/distinfo index f97814bfc21..e6efe6e416e 100644 --- a/sysutils/tree/distinfo +++ b/sysutils/tree/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.3 2007/10/25 08:51:30 heinz Exp $ +$NetBSD: distinfo,v 1.4 2007/10/28 10:10:09 heinz Exp $ SHA1 (tree-1.5.1.1.tgz) = ca4145bf1d2957ff3f4e6af0f64ce92d102fd356 RMD160 (tree-1.5.1.1.tgz) = 7cc78b7a0103a7f81ec40c2c5e1ff2399fd7bb20 Size (tree-1.5.1.1.tgz) = 30792 bytes SHA1 (patch-aa) = 999de75f82c27034da470e28067c6b2956f3d231 -SHA1 (patch-ab) = 7105d8effd9313a15886a85371f6870eb66b32c3 +SHA1 (patch-ab) = 3d2ac13f762bccc0bd45990b3f2aae64b2e12669 diff --git a/sysutils/tree/patches/patch-ab b/sysutils/tree/patches/patch-ab index 527bc108f74..81cae3d96e9 100644 --- a/sysutils/tree/patches/patch-ab +++ b/sysutils/tree/patches/patch-ab @@ -1,8 +1,18 @@ -$NetBSD: patch-ab,v 1.2 2007/10/25 08:51:30 heinz Exp $ +$NetBSD: patch-ab,v 1.3 2007/10/28 10:10:10 heinz Exp $ --- Makefile.orig 2007-06-11 15:22:47.000000000 +0200 +++ Makefile -@@ -38,13 +38,18 @@ LDFLAGS=-s +@@ -8,7 +8,8 @@ + + CC=gcc + #CFLAGS=-ggdb -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +-CFLAGS=-O2 -Wall -fomit-frame-pointer -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++CDEFS=-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++CFLAGS=-O2 -Wall -fomit-frame-pointer + LDFLAGS=-s + + # Uncomment for FreeBSD: +@@ -38,13 +39,18 @@ LDFLAGS=-s #CFLAGS=-02 -Wall -fomit-frame-pointer -Zomf -Zsmall-conv #LDFLAGS=-s -Zomf -Zsmall-conv @@ -24,7 +34,15 @@ $NetBSD: patch-ab,v 1.2 2007/10/25 08:51:30 heinz Exp $ all: tree -@@ -59,12 +64,12 @@ clean: +@@ -52,6 +58,7 @@ tree: tree.o + $(CC) $(LDFLAGS) -o $(TREE_DEST) tree.o + + tree.o: tree.c ++ $(CC) -c $(CFLAGS) $(CDEFS) -o $@ $< + + clean: + if [ -x $(TREE_DEST) ]; then rm $(TREE_DEST); fi +@@ -59,12 +66,12 @@ clean: rm -f *~ install: |