SHARED_LIBS and USE_LIBTOOL

This commit is contained in:
steven 2006-01-06 07:57:01 +00:00
parent 7c872f8aff
commit b2f0140638
4 changed files with 6 additions and 82 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.18 2005/07/03 21:35:23 jolan Exp $
# $OpenBSD: Makefile,v 1.19 2006/01/06 07:57:01 steven Exp $
COMMENT= "mpeg video player library with sound support"
DISTNAME= smpeg-0.4.4
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
SHARED_LIBS= smpeg 1.3
CATEGORIES= devel graphics
HOMEPAGE= http://www.lokigames.com/development/smpeg.php3
@ -23,6 +24,7 @@ MASTER_SITES= ftp://ftp.lokigames.com/pub/open-source/smpeg/ \
LIB_DEPENDS= SDL::devel/sdl
USE_X11= Yes
USE_LIBTOOL= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu

View File

@ -1,34 +0,0 @@
$OpenBSD: patch-ltconfig,v 1.3 2001/08/07 05:35:45 pvalchev Exp $
--- ltconfig.orig Tue May 22 15:43:04 2001
+++ ltconfig Mon Aug 6 23:25:38 2001
@@ -1449,9 +1449,9 @@ else
*)
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
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
;;
esac
;;
@@ -2077,6 +2077,17 @@ netbsd*)
openbsd*)
version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ file_magic_cmd=/usr/bin/file
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ shlibpath_overrides_runpath=no
+ else
+ deplibs_check_method='file_magic OpenBSD.* shared library'
+ shlibpath_overrides_runpath=yes
+ fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH

View File

@ -1,44 +0,0 @@
$OpenBSD: patch-ltmain_sh,v 1.3 2001/08/07 05:35:45 pvalchev Exp $
--- ltmain.sh.orig Tue May 22 15:43:04 2001
+++ ltmain.sh Mon Aug 6 23:25:48 2001
@@ -3585,40 +3585,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

@ -1,2 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.3 2004/09/14 23:44:01 espie Exp $
@lib lib/libsmpeg.so.1.3
@comment $OpenBSD: PFRAG.shared,v 1.4 2006/01/06 07:57:02 steven Exp $
@lib lib/libsmpeg.so.${LIBsmpeg_VERSION}