pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ucpp Make ucpp actually buildable.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b49ad6aff1d
branches:  trunk
changeset: 556658:9b49ad6aff1d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Mar 26 17:14:32 2009 +0000

description:
Make ucpp actually buildable.

diffstat:

 devel/ucpp/Makefile         |   7 ++++++-
 devel/ucpp/distinfo         |   4 ++--
 devel/ucpp/patches/patch-aa |  31 +++++++++++++++++++------------
 3 files changed, 27 insertions(+), 15 deletions(-)

diffs (78 lines):

diff -r db9786331fc1 -r 9b49ad6aff1d devel/ucpp/Makefile
--- a/devel/ucpp/Makefile       Thu Mar 26 16:49:45 2009 +0000
+++ b/devel/ucpp/Makefile       Thu Mar 26 17:14:32 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/03/21 16:41:06 darcy Exp $
+# $NetBSD: Makefile,v 1.6 2009/03/26 17:14:32 joerg Exp $
 #
 
 DISTNAME=      ucpp-1.3
@@ -14,6 +14,11 @@
 
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
+.include "../../mk/bsd.prefs.mk"
+
+CFLAGS+=       -DSTD_MACROS=NULL -DSTD_ASSERT=NULL
+MAKE_FLAGS+=   FLAGS=${CFLAGS:Q}
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/ucpp ${DESTDIR}${PREFIX}/bin
        ${INSTALL_MAN} ${WRKSRC}/ucpp.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
diff -r db9786331fc1 -r 9b49ad6aff1d devel/ucpp/distinfo
--- a/devel/ucpp/distinfo       Thu Mar 26 16:49:45 2009 +0000
+++ b/devel/ucpp/distinfo       Thu Mar 26 17:14:32 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2009/03/21 16:41:06 darcy Exp $
+$NetBSD: distinfo,v 1.3 2009/03/26 17:14:32 joerg Exp $
 
 SHA1 (ucpp-1.3.tar.bz2) = 12caf535986e3919d58c47ca35ae9ed4efaa1cf0
 RMD160 (ucpp-1.3.tar.bz2) = 08f9ef1ada15c7451b7966733fb0a63bbe6b179a
 Size (ucpp-1.3.tar.bz2) = 73958 bytes
-SHA1 (patch-aa) = 9059b1f9c1ed58c99414dda920ee07b7d3c7e530
+SHA1 (patch-aa) = 120c4f63cbd44e6831c3ca8dee0bca885debd99d
diff -r db9786331fc1 -r 9b49ad6aff1d devel/ucpp/patches/patch-aa
--- a/devel/ucpp/patches/patch-aa       Thu Mar 26 16:49:45 2009 +0000
+++ b/devel/ucpp/patches/patch-aa       Thu Mar 26 17:14:32 2009 +0000
@@ -1,22 +1,29 @@
-$NetBSD: patch-aa,v 1.2 2009/03/21 16:41:07 darcy Exp $
+$NetBSD: patch-aa,v 1.3 2009/03/26 17:14:32 joerg Exp $
 
---- Makefile.orig      2008-10-01 13:15:41.000000000 -0400
+--- Makefile.orig      2008-10-01 19:15:41.000000000 +0200
 +++ Makefile
-@@ -56,7 +56,7 @@
- #FLAGS = -O -m -DMEM_CHECK
+@@ -80,14 +80,10 @@ LIBS =
  
- # for gcc
--CC = gcc
-+CC ?= gcc
- FLAGS = -O3 -W -Wall -ansi
- #FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
- #FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -W -Wall -ansi -DMEM_CHECK
-@@ -87,7 +87,7 @@ endif
+ #STAND_ALONE = -DSTAND_ALONE
+ 
+-ifdef STAND_ALONE
+-      FINAL_STEP = $(CC) $(LDFLAGS) -o ucpp $(COBJ) $(LIBS)
+-endif
+-
  # ----- nothing should be changed below this line -----
  
  COBJ = mem.o nhash.o cpp.o lexer.o assert.o macro.o eval.o
 -CFLAGS = $(FLAGS) $(STAND_ALONE)
-+CFLAGS += $(FLAGS) $(STAND_ALONE)
++CFLAGS = $(FLAGS) -DSTAND_ALONE
  
  all: ucpp
        @ar cq libucpp.a *.o
+@@ -96,7 +92,7 @@ clean:
+       @rm -f *.o ucpp core *.a
+ 
+ ucpp: $(COBJ)
+-      @$(FINAL_STEP)
++      $(CC) $(LDFLAGS) -o ucpp $(COBJ) $(LIBS)
+ 
+ assert.o: tune.h ucppi.h cpp.h nhash.h mem.h
+       @$(CC) $(CFLAGS) -c assert.c



Home | Main Index | Thread Index | Old Index