xforms stable port information

Package: xforms
Version: 1.0.90
Revision: 4
Source: http://savannah.nongnu.org/download/%n/%n-%v.tar.gz
Source-MD5: 558b600402430f207e671e2d0d725b6d
Depends: %N-shlibs (= %v-%r), %N-bin
Replaces: xforms-shlibs (<= 1.0-1), xforms-bin (<< 1.0.90-2)
BuildDependsOnly: true
BuildDepends: <<
autoconf2.6,
automake1.11,
libjpeg8,
libtool2,
fink (>= 0.24.12-1),
fink-package-precedence,
x11-dev
<<
PatchFile: %n.patch
PatchFile-MD5: d51d0bdb9f08aa45c1cfcaacd8c62c21
PatchScript: <<
%{default_script}
sed -i.bak '/^# libtool.m4/,$d' acinclude.m4
perl -pi -e 's/(AC_DEFUN\()([^[]+)(,)/\1\[\2]\3/' acinclude.m4
<<
ConfigureParams: --enable-gl --disable-static --x-includes=/usr/X11R6/include
CompileScript: <<
autoreconf -fi
./configure %c
make
fink-package-precedence --prohibit-bdep=%n .
<<
InstallScript: <<
make install DESTDIR=%d
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<< 0.99-1)
Depends: libjpeg8-shlibs, x11
Suggests: %N-bin
Files: lib/lib*.*.dylib
Shlibs: <<
%p/lib/libflimage.1.dylib 2.0.0 %n (>= 1.0.90-1)
%p/lib/libforms.1.dylib 2.0.0 %n (>= 1.0.90-1)
%p/lib/libformsGL.1.dylib 2.0.0 %n (>= 1.0.90-1)
<<
DocFiles: COPYING.LIB README NEWS
<<
SplitOff2: <<
Package: %N-bin
Replaces: %N (<< 0.99-1)
Depends: %N-shlibs (= %v-%r), x11
Files: bin share/man/man1
DocFiles: COPYING.LIB README NEWS
<<
DescPackaging: <<
Redo ancient autotools to get two-level and other darwin tricks
<<
Description: GUI toolkit based on Xlib
License: GPL
DocFiles: COPYING.LIB README NEWS
Maintainer: None
Homepage: http://www.nongnu.org/xforms/

xforms stable port .patch

diff -Nurd -x'*~' xforms-1.0.90.orig/configure.ac xforms-1.0.90/configure.ac
--- xforms-1.0.90.orig/configure.ac 2004-03-30 04:48:24.000000000 -0500
+++ xforms-1.0.90/configure.ac 2011-09-26 00:52:48.000000000 -0400
@@ -28,7 +28,6 @@
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-AC_PROG_RANLIB

### check for special systems
AC_ISC_POSIX
@@ -77,11 +76,20 @@
# Checks for header files.
AC_CHECK_HEADERS([sys/select.h])

-# Check whether we want to build the gl code
+# Check whether we want to build the gl code (headers may be with X11's)
+AC_PATH_XTRA
AC_ARG_ENABLE(gl,
[AC_HELP_STRING([--disable-gl], [Do not build GL support library])])
if test x$enable_gl != xno ; then
- AC_CHECK_HEADER([GL/glx.h],, [enable_gl=no])
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$X_CFLAGS $CPPFLAGS"
+ AC_CHECK_HEADER([GL/glx.h],, [
+ enable_gl=no
+ if test x$enable_gl != xyes ; then
+ AC_MSG_ERROR([GL requested but not available])
+ fi
+ ])
+ CPPFLAGS=$save_CPPFLAGS
fi
AM_CONDITIONAL(BUILD_GL, [test x$enable_gl != xno])

@@ -90,7 +98,6 @@
dnl AC_HEADER_DIRENT

# Check for X, XPM and JPEG
-AC_PATH_XTRA
XFORMS_PATH_XPM
XFORMS_CHECK_LIB_JPEG

diff -Nurd -x'*~' xforms-1.0.90.orig/fdesign/Makefile.am xforms-1.0.90/fdesign/Makefile.am
--- xforms-1.0.90.orig/fdesign/Makefile.am 2003-11-13 16:46:48.000000000 -0500
+++ xforms-1.0.90/fdesign/Makefile.am 2011-09-25 22:16:57.000000000 -0400
@@ -55,6 +55,3 @@
sp_xyplot.c \
xpm.h

-# viewforms.c \
-# viewforms.h \
-# viewforms_main.c \
diff -Nurd -x'*~' xforms-1.0.90.orig/gl/Makefile.am xforms-1.0.90/gl/Makefile.am
--- xforms-1.0.90.orig/gl/Makefile.am 2003-11-20 04:33:11.000000000 -0500
+++ xforms-1.0.90/gl/Makefile.am 2011-09-26 01:07:32.000000000 -0400
@@ -1,13 +1,14 @@
include $(top_srcdir)/config/common.am

# forms.h is a generated file
-INCLUDES = -DMAKING_FORMS -I../lib -I$(top_srcdir)/lib
+INCLUDES = -DMAKING_FORMS -I../lib -I$(top_srcdir)/lib $(X_CFLAGS)

include_HEADERS = glcanvas.h

lib_LTLIBRARIES = libformsGL.la

-libformsGL_la_LDFLAGS = -version-info 1:0:0
+libformsGL_la_LDFLAGS = -version-info 1:0:0 -no-undefined
+libformsGL_la_LIBADD = $(top_builddir)/lib/libforms.la $(X_LIBS) -lGL

libformsGL_la_SOURCES = \
glcanvas.c \
diff -Nurd -x'*~' xforms-1.0.90.orig/image/Makefile.am xforms-1.0.90/image/Makefile.am
--- xforms-1.0.90.orig/image/Makefile.am 2003-11-13 16:46:48.000000000 -0500
+++ xforms-1.0.90/image/Makefile.am 2011-09-26 01:04:11.000000000 -0400
@@ -7,7 +7,8 @@

lib_LTLIBRARIES = libflimage.la

-libflimage_la_LDFLAGS = -version-info 1:0:0
+libflimage_la_LDFLAGS = -version-info 1:0:0 -no-undefined
+libflimage_la_LIBADD = $(top_builddir)/lib/libforms.la $(JPEG_LIB)

libflimage_la_SOURCES = \
flimage.h \
diff -Nurd -x'*~' xforms-1.0.90.orig/lib/Makefile.am xforms-1.0.90/lib/Makefile.am
--- xforms-1.0.90.orig/lib/Makefile.am 2003-11-20 04:33:16.000000000 -0500
+++ xforms-1.0.90/lib/Makefile.am 2011-09-26 01:01:17.000000000 -0400
@@ -17,7 +17,8 @@

lib_LTLIBRARIES = libforms.la

-libforms_la_LDFLAGS = -version-info 1:0:0
+libforms_la_LDFLAGS = -version-info 1:0:0 -no-undefined
+libforms_la_LIBADD = $(X_LIBS) -lX11 -lXpm

libforms_la_SOURCES = \
align.c \
@@ -119,5 +120,3 @@
xtext.c \
xyplot.c

-# dirent_vms.h \
-# vms_readdir.c \

xforms _unstable_ port .patch