Add (WIP?) recipe for libIDL

Untested on gcc2
This commit is contained in:
Chris Roberts
2013-12-09 18:41:29 -07:00
parent d92f20609c
commit 9e9208b805
2 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
SUMMARY="Library for creating CORBA Interface Definition Language files"
DESCRIPTION="
libIDL is a library for creating trees of CORBA Interface Definition Language \
(IDL) files, which is a specification for defining portable interfaces. libIDL \
was initially written for ORBit (the ORB from the GNOME project, and the \
primary means of libIDL distribution). However, the functionality was designed \
to be as reusable and portable as possible.
"
HOMEPAGE="http://andrewtv.org/libIDL/"
SRC_URI="http://andrewtv.org/libIDL/libIDL-0.6.8.tar.gz"
CHECKSUM_MD5="97e2da9229cdb0445719b6cf802c1782"
COPYRIGHT="1998-1999 Andrew T. Veliath"
LICENSE="GNU LGPL v2"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
PROVIDES="
libidl$secondaryArchSuffix = $portVersion
lib:libIDL$secondaryArchSuffix = $portVersion compat = 0.4.4
lib:libIDL_0.6$secondaryArchSuffix = $portVersion compat = 0.4.4
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libglib
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libglib$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:libtoolize
cmd:autoconf
cmd:flex
cmd:bison
"
PROVIDES_devel="
libidl${secondaryArchSuffix}_devel = $portVersion
cmd:libIDL_config = $portVersion
devel:libIDL$secondaryArchSuffix = $portVersion
devel:libIDL_0.6$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libidl$secondaryArchSuffix == $portVersion
"
SOURCE_DIR="libIDL-$portVersion"
PATCHES="libidl-0.6.8.patchset"
BUILD()
{
libtoolize -fci
aclocal
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libIDL libIDL-0.6
fixDevelopLibDirReferences $binDir/libIDL-config \
$libDir/libIDLConf.sh
packageEntries devel \
$developDir $binDir \
$dataDir $infoDir \
$libDir/libIDLConf.sh
}

View File

@@ -0,0 +1,51 @@
From 5b768320419c034d19d2f4646365c3e3f2b93ff8 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 9 Dec 2013 18:27:26 -0700
Subject: Attempt to bring libIDL into the modern age
diff --git a/acinclude.m4 b/acinclude.m4
index 0481a2f..0fc8e87 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1,4 +1,15 @@
dnl Autoconf extension macros for libIDL
+# GLIB_AC_DIVERT_BEFORE_HELP(STUFF)
+# ---------------------------------
+# Put STUFF early enough so that they are available for $ac_help expansion.
+# Handle both classic (<= v2.13) and modern autoconf
+AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
+[ifdef([m4_divert_text], [m4_divert_text([NOTICE],[$1])],
+ [ifdef([AC_DIVERT], [AC_DIVERT([NOTICE],[$1])],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
+$1
+AC_DIVERT_POP()])])])
+
AC_DEFUN(AC_CPP_ACCEPT_IDL,
[AC_CACHE_CHECK([if C preprocessor likes IDL],
ac_cv_cpp_accept_idl,
diff --git a/configure.in b/configure.in
index 3b32bbe..a4af53d 100644
--- a/configure.in
+++ b/configure.in
@@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT(IDL.h.new.in)
-AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
+GLIB_AC_DIVERT_BEFORE_HELP([
#
# Making releases:
# LIBIDL_MICRO_VERSION += 1;
@@ -20,7 +20,7 @@ LIBIDL_INTERFACE_AGE=4
LIBIDL_BINARY_AGE=8
LIBIDL_LIBRARY_VERSION=$LIBIDL_MAJOR_VERSION.$LIBIDL_MINOR_VERSION.$LIBIDL_MICRO_VERSION
GLIB_VERSION_REQUIRED=1.2.0
-AC_DIVERT_POP()dnl
+])
AC_SUBST(LIBIDL_MAJOR_VERSION)
AC_SUBST(LIBIDL_MINOR_VERSION)
--
1.8.3.4