summaryrefslogtreecommitdiff
path: root/devel/ucpp
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-05-24 16:23:23 +0000
committerobache <obache@pkgsrc.org>2007-05-24 16:23:23 +0000
commit58d6e415817948940e21e1ecc5fc355d122cb52c (patch)
tree0d43458c26e9a3aa697ef4e67356df8fb18fb470 /devel/ucpp
parentd03f3bc2b98010e9890c49363cc66321aebcdd9a (diff)
downloadpkgsrc-58d6e415817948940e21e1ecc5fc355d122cb52c.tar.gz
Import ucpp version 1.3.
Based on PR 31480 by Jeroen Ruigrok van der Werven, fixed manual page installation path. ucpp is a C preprocessor and lexer. It has the following goals: - Strict conformance to the C99 standard (with switches to disable some extensions and mimic C90 behaviour) - Low memory consumption - Possibility to use the code as a lexer (that outputs tokens directly)
Diffstat (limited to 'devel/ucpp')
-rw-r--r--devel/ucpp/DESCR7
-rw-r--r--devel/ucpp/Makefile18
-rw-r--r--devel/ucpp/PLIST3
-rw-r--r--devel/ucpp/distinfo6
-rw-r--r--devel/ucpp/patches/patch-aa24
5 files changed, 58 insertions, 0 deletions
diff --git a/devel/ucpp/DESCR b/devel/ucpp/DESCR
new file mode 100644
index 00000000000..992b93a3734
--- /dev/null
+++ b/devel/ucpp/DESCR
@@ -0,0 +1,7 @@
+ucpp is a C preprocessor and lexer. It has the following goals:
+
+ - Strict conformance to the C99 standard (with switches to
+ disable some extensions and mimic C90 behaviour)
+ - Low memory consumption
+ - Possibility to use the code as a lexer (that outputs tokens
+ directly)
diff --git a/devel/ucpp/Makefile b/devel/ucpp/Makefile
new file mode 100644
index 00000000000..53c34812dc8
--- /dev/null
+++ b/devel/ucpp/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/24 16:23:23 obache Exp $
+#
+
+DISTNAME= ucpp-1.3
+CATEGORIES= devel
+MASTER_SITES= http://pornin.nerim.net/ucpp/
+
+MAINTAINER= asmodai@in-nomine.org
+HOMEPAGE= http://pornin.nerim.net/ucpp/
+COMMENT= C preprocessor and lexer
+
+MAN1= ucpp.1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/ucpp ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ucpp/PLIST b/devel/ucpp/PLIST
new file mode 100644
index 00000000000..dd932068ecf
--- /dev/null
+++ b/devel/ucpp/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/24 16:23:23 obache Exp $
+bin/ucpp
+man/man1/ucpp.1
diff --git a/devel/ucpp/distinfo b/devel/ucpp/distinfo
new file mode 100644
index 00000000000..84e3ac5fc3f
--- /dev/null
+++ b/devel/ucpp/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/24 16:23:23 obache Exp $
+
+SHA1 (ucpp-1.3.tar.gz) = 48073c0a1ed661ea4056d393018250a34755bd01
+RMD160 (ucpp-1.3.tar.gz) = d9b1896cb84af12c7dac762099839af6ed644f19
+Size (ucpp-1.3.tar.gz) = 91537 bytes
+SHA1 (patch-aa) = 63765593c773212ae37da6b738e31b49cb98e181
diff --git a/devel/ucpp/patches/patch-aa b/devel/ucpp/patches/patch-aa
new file mode 100644
index 00000000000..549b57bc54f
--- /dev/null
+++ b/devel/ucpp/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/24 16:23:23 obache Exp $
+
+--- Makefile.orig Wed Jan 15 02:07:44 2003
++++ Makefile Sun Jul 27 14:51:51 2003
+@@ -56,8 +56,8 @@
+ #FLAGS = -O -m -DMEM_CHECK
+
+ # for gcc
+-CC = gcc
+-FLAGS = -g -W -Wall -ansi -DAUDIT -DMEM_DEBUG
++CC ?= gcc
++FLAGS = -ansi -DAUDIT -DMEM_DEBUG
+ #FLAGS = -O3 -mcpu=pentiumpro -fomit-frame-pointer -W -Wall -ansi -DMEM_CHECK
+ #FLAGS = -O -pg -W -Wall -ansi -DMEM_CHECK
+ #LDFLAGS = -pg
+@@ -80,7 +80,7 @@
+ # ----- nothing should be changed below this line -----
+
+ COBJ = mem.o nhash.o cpp.o lexer.o assert.o macro.o eval.o
+-CFLAGS = $(FLAGS) -DSTAND_ALONE
++CFLAGS += $(FLAGS) -DSTAND_ALONE
+
+ all: ucpp
+