Object Activation Framework for GNOME

This commit is contained in:
todd 2001-09-13 20:23:11 +00:00
parent 5b10ebfbe9
commit 0d5de276aa
9 changed files with 344 additions and 0 deletions

33
x11/gnome/oaf/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/09/13 20:23:11 todd Exp $
COMMENT= "Object Activation Framework for GNOME"
V= 0.6.5
DISTNAME= oaf-${V}
CATEGORIES= devel
NEED_VERSION= 1.384
HOMEPAGE= http://www.gnome.org
MAINTAINER= Nils Nordman <nino@nforced.com>
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= unstable/sources/oaf
LIB_DEPENDS= ORBit.5::devel/ORBit \
xml.9::textproc/libxml1 \
popt::devel/popt
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
cp -r ${PREFIX}/../../etc/* ${PREFIX}/share/oaf/
.include <bsd.port.mk>

3
x11/gnome/oaf/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (oaf-0.6.5.tar.gz) = 23bfa9046d8d745d7cd17ad75fb08aed
RMD160 (oaf-0.6.5.tar.gz) = c6f3145700e7d6b42be900073be10b7ea7b8614b
SHA1 (oaf-0.6.5.tar.gz) = 50a78e04ceedb16591cb4f03ee63ee28c53a5b1c

View File

@ -0,0 +1,51 @@
--- ltconfig.orig Sun Oct 3 15:17:34 1999
+++ ltconfig Tue Feb 20 17:11:31 2001
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1391,10 +1394,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)
@@ -1955,13 +1969,10 @@ netbsd*)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)

View File

@ -0,0 +1,83 @@
--- ltmain.sh.orig Sun Oct 3 15:17:34 1999
+++ ltmain.sh Tue Feb 20 17:12:45 2001
@@ -1073,7 +1073,18 @@ compiler."
# These systems don't actually have c library (as such)
continue
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ continue
+ ;;
esac
+ elif test "$arg" = "-lc_r"; then
+ case "$host" in
+ *-*-openbsd*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
elif test "$arg" = "-lm"; then
case "$host" in
*-*-cygwin* | *-*-beos*)
@@ -1085,6 +1096,10 @@ compiler."
deplibs="$deplibs $arg"
;;
+ -?thread)
+ deplibs="$deplibs $arg"
+ ;;
+
-module)
module=yes
continue
@@ -1789,6 +1804,9 @@ compiler."
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
+ *-*-openbsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
@@ -3522,40 +3540,6 @@ libdir='$install_libdir'\
# Exit here if they wanted silent mode.
test "$show" = : && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,24 @@
#!/bin/sh
#
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/09/13 20:23:11 todd Exp $
#
echo
echo "*=================[ $1"
echo "* To really remove $1 from your system you should also"
echo "* remove the configuration files from the /etc directory."
echo "* If you are planning on installing $1 again in the future"
echo "* you can leave it as it is."
echo "*"
echo "* FYI, the following configuration files belongs to this package:"
echo "*"
for f in \
oaf-config.xml \
oaf-config.xml.sample
do
echo "* /etc/$f"
done
echo "*================= $1 ]"
echo
exit 0

12
x11/gnome/oaf/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
OAF is the new Object Activation Framework for GNOME. OAF has a
similar purpose to gnorba, the GNOME 1.x CORBA activation library, and
will replace it for GNOME 2.0.
It allows you to do much more powerful activation queries than gnorba.
Each server is described by an XML file that defines its
attributes. When querying or activating, one may specify complex
requirements using the OAF query language.
For more information about the GNOME project, visit:
WWW: http://www.gnome.org

78
x11/gnome/oaf/pkg/INSTALL Normal file
View File

@ -0,0 +1,78 @@
#!/bin/sh
#
# $OpenBSD: INSTALL,v 1.1.1.1 2001/09/13 20:23:11 todd Exp $
PREFIX=${PKG_PREFIX:-/usr/local}
PKGNAME=oaf
DEST_PFX=/etc
SOURCE_PFX=${PREFIX}/share/${PKGNAME}
do_post() {
echo
echo "*=================[ ${PKGNAME}"
install -d /etc/oaf
# install or take note of existing config files
for f in \
oaf/oaf-config.xml \
oaf/oaf-config.xml.sample
do
if [ -f "${DEST_PFX}/$f" ]; then
OLD_CONFS="${OLD_CONFS} $f"
else
if ! install -m 644 ${SOURCE_PFX}/$f ${DEST_PFX}/$f; then
echo "* ERROR: The following file could not be installed, exiting: ${DEST_PFX}/$f"
exit 1
fi
NEW_CONFS="${NEW_CONFS} $f"
fi
done
# print status report
if [ -n "${NEW_CONFS}" ]; then
echo "* The following NEW configuration files have been installed:"
echo "*"
for f in ${NEW_CONFS}; do
echo "* ${DEST_PFX}/$f"
done
fi
if [ -n "${OLD_CONFS}" ]; then
if [ -n "${NEW_CONFS}" ]; then
echo "*"
fi
echo "* The following OLD configuration files was found and have NOT been overwritten:"
echo "* You should however manually compare it to it's equivalent in ${SOURCE_PFX}"
echo "* and update your configuration if needed."
echo "*"
for f in ${OLD_CONFS}; do
echo "* ${DEST_PFX}/$f"
done
fi
echo "*================= ${PKGNAME} ]"
echo
}
# verify proper execution
#
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
# Verify/process the command
#
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_post
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/09/13 20:23:11 todd Exp $
lib/liboaf.so.0.0
DYNLIBDIR(%D/lib)

57
x11/gnome/oaf/pkg/PLIST Normal file
View File

@ -0,0 +1,57 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/09/13 20:23:11 todd Exp $
bin/oaf-client
bin/oaf-config
bin/oaf-run-query
bin/oaf-slay
bin/oaf-sysconf
bin/oafd
include/liboaf/liboaf-version.h
include/liboaf/liboaf.h
include/liboaf/oaf-actid.h
include/liboaf/oaf-activate.h
include/liboaf/oaf-async.h
include/liboaf/oaf-factory-suppress.h
include/liboaf/oaf-factory.h
include/liboaf/oaf-mainloop.h
include/liboaf/oaf-plugin.h
include/liboaf/oaf-registration.h
include/liboaf/oaf-servreg.h
include/liboaf/oaf-util.h
include/liboaf/oaf.h
lib/liboaf.la
lib/locale/da/LC_MESSAGES/oaf.mo
lib/locale/de/LC_MESSAGES/oaf.mo
lib/locale/es/LC_MESSAGES/oaf.mo
lib/locale/fi/LC_MESSAGES/oaf.mo
lib/locale/fr/LC_MESSAGES/oaf.mo
lib/locale/ga/LC_MESSAGES/oaf.mo
lib/locale/gl/LC_MESSAGES/oaf.mo
lib/locale/hu/LC_MESSAGES/oaf.mo
lib/locale/it/LC_MESSAGES/oaf.mo
lib/locale/ja/LC_MESSAGES/oaf.mo
lib/locale/ko/LC_MESSAGES/oaf.mo
lib/locale/no/LC_MESSAGES/oaf.mo
lib/locale/pl/LC_MESSAGES/oaf.mo
lib/locale/pt_BR/LC_MESSAGES/oaf.mo
lib/locale/ro/LC_MESSAGES/oaf.mo
lib/locale/ru/LC_MESSAGES/oaf.mo
lib/locale/sk/LC_MESSAGES/oaf.mo
lib/locale/sl/LC_MESSAGES/oaf.mo
lib/locale/sv/LC_MESSAGES/oaf.mo
lib/locale/tr/LC_MESSAGES/oaf.mo
lib/locale/uk/LC_MESSAGES/oaf.mo
lib/oafConf.sh
share/aclocal/oaf.m4
share/idl/oaf-factory.idl
share/idl/oaf.idl
share/oaf/OAF_naming-service.oaf
share/oaf/empty.oafinfo
share/oaf/oaf/oaf-config.xml
share/oaf/oaf/oaf-config.xml.sample
%%SHARED%%
@exec mkdir -p %D/share/oaf/html/liboaf
@dirrm share/oaf/html/liboaf
@dirrm share/oaf/html
@dirrm share/oaf/oaf
@dirrm share/oaf
@dirrm include/liboaf