mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Add recipes and patchsets for pnet and treecc
This commit is contained in:
32
dev-util/treecc/patches/treecc-0.3.10.patchset
Normal file
32
dev-util/treecc/patches/treecc-0.3.10.patchset
Normal file
@@ -0,0 +1,32 @@
|
||||
From e10460f3da6ea18be1bec76f732354abe65c8233 Mon Sep 17 00:00:00 2001
|
||||
From: Scott McCreary <scottmc2@gmail.com>
|
||||
Date: Wed, 14 Jan 2015 16:44:08 -0800
|
||||
Subject: Add haiku as beos platform, add AC_CONFIG_HEADERS in place of
|
||||
AM_CONFIG_HEADER
|
||||
|
||||
|
||||
diff --git a/configure.in b/configure.in
|
||||
index f8d2fc4..c80fefe 100644
|
||||
--- a/configure.in
|
||||
+++ b/configure.in
|
||||
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
||||
AC_INIT(input.h)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_INIT_AUTOMAKE(treecc, 0.3.10)
|
||||
-AM_CONFIG_HEADER(config.h)
|
||||
+AC_CONFIG_HEADERS(config.h)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
dnl Turn off the cygwin library if building for Win32.
|
||||
@@ -23,7 +23,7 @@ AC_MSG_RESULT($platform_win32)
|
||||
|
||||
AC_MSG_CHECKING([if building for BeOS platform])
|
||||
case "$host" in
|
||||
- *-*-beos*)
|
||||
+ *-*-beos*|*-*-haiku*)
|
||||
platform_beos=yes
|
||||
LDADD=""
|
||||
;;
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
57
dev-util/treecc/treecc-0.3.10.recipe
Normal file
57
dev-util/treecc/treecc-0.3.10.recipe
Normal file
@@ -0,0 +1,57 @@
|
||||
SUMMARY="A compiler-compiler tool for aspect-oriented programming"
|
||||
DESCRIPTION="\
|
||||
Tree Compiler-Compiler (treecc) is designed to assist in the development of \
|
||||
compilers and other language- based tools. It manages the generation of code \
|
||||
to handle abstract syntax trees and operations upon the trees. \
|
||||
"
|
||||
HOMEPAGE="http://www.gnu.org/software/dotgnu/treecc/treecc.html"
|
||||
SRC_URI="http://download.savannah.gnu.org/releases/dotgnu-pnet/treecc-0.3.10.tar.gz"
|
||||
CHECKSUM_SHA256="5e9d20a6938e0c6fedfed0cabc7e9e984024e4881b748d076e8c75f1aeb6efe7"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2003 Southern Storm Software, Pty Ltd
|
||||
2003 Free Software Foundation, Inc.
|
||||
"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PROVIDES="
|
||||
treecc = $portVersion
|
||||
cmd:treecc = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:awk
|
||||
cmd:bison
|
||||
cmd:libtoolize
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
"
|
||||
|
||||
PATCHES="treecc-0.3.10.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
sed -i "s/expr_c_LDADD = -lm/expr_c_LDADD = /" examples/Makefile*
|
||||
libtoolize -fci
|
||||
aclocal
|
||||
autoconf
|
||||
automake --add-missing
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
# mkdir -p $binDir
|
||||
# cp -a objects/projectx $binDir
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
? ylwrap
|
||||
Index: Makefile.am
|
||||
===================================================================
|
||||
RCS file: /sources/dotgnu-pnet/treecc/Makefile.am,v
|
||||
retrieving revision 1.12
|
||||
diff -u -p -r1.12 Makefile.am
|
||||
--- Makefile.am 4 Jun 2007 10:14:29 -0000 1.12
|
||||
+++ Makefile.am 26 Apr 2008 19:49:11 -0000
|
||||
@@ -47,8 +47,8 @@ SKELETON_FILES = $(top_srcdir)/etc/c_ske
|
||||
$(top_srcdir)/etc/cpp_gc_skel.h \
|
||||
$(top_srcdir)/etc/cpp_gc_skel.cc
|
||||
|
||||
-skels.c: $(SKELETON_FILES) mkskel-sh
|
||||
- $(SHELL) mkskel-sh $(SKELETON_FILES) >skels.c
|
||||
+skels.c: $(SKELETON_FILES) $(top_srcdir)/mkskel-sh
|
||||
+ $(SHELL) $(top_srcdir)/mkskel-sh $(SKELETON_FILES) >skels.c
|
||||
|
||||
CLEANFILES = skels.c
|
||||
|
||||
Index: configure.in
|
||||
===================================================================
|
||||
RCS file: /sources/dotgnu-pnet/treecc/configure.in,v
|
||||
retrieving revision 1.52
|
||||
diff -u -p -r1.52 configure.in
|
||||
--- configure.in 4 Jun 2007 18:45:48 -0000 1.52
|
||||
+++ configure.in 26 Apr 2008 19:49:11 -0000
|
||||
@@ -23,7 +23,7 @@ AC_MSG_RESULT($platform_win32)
|
||||
|
||||
AC_MSG_CHECKING([if building for BeOS platform])
|
||||
case "$host" in
|
||||
- *-*-beos*)
|
||||
+ *-*-beos*|*-*-haiku*)
|
||||
platform_beos=yes
|
||||
LDADD=""
|
||||
;;
|
||||
Reference in New Issue
Block a user