SHARED_LIBS and USE_LIBTOOL
This commit is contained in:
parent
31e629d956
commit
4848596692
@ -1,12 +1,13 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2004/07/19 10:58:17 pvalchev Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2006/01/06 09:07:58 steven Exp $
|
||||
|
||||
COMMENT= "C++ wrapper for the Simple DirectMedia Layer"
|
||||
COMMENT-docs= "SDLmm documentation"
|
||||
|
||||
VERSION= 0.1.8
|
||||
DISTNAME= SDLmm-${VERSION}
|
||||
PKGNAME= ${DISTNAME:L}
|
||||
PKGNAME= ${DISTNAME:L}p0
|
||||
PKGNAME-docs= ${PKGNAME:S,-,-docs-,}
|
||||
SHARED_LIBS= SDLmm 8.0
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://sdlmm.sourceforge.net/
|
||||
@ -30,6 +31,7 @@ PKG_ARCH= *
|
||||
.endif
|
||||
|
||||
USE_X11= Yes
|
||||
USE_LIBTOOL= Yes
|
||||
|
||||
post-install:
|
||||
@(cd ${WRKSRC}/docs/html && \
|
||||
|
@ -1,57 +0,0 @@
|
||||
$OpenBSD: patch-ltconfig,v 1.2 2001/08/07 06:41:01 pvalchev Exp $
|
||||
--- ltconfig.orig Tue Apr 24 18:55:05 2001
|
||||
+++ ltconfig Mon Aug 6 23:37:05 2001
|
||||
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
|
||||
with_gnu_ld=no
|
||||
fi
|
||||
;;
|
||||
+openbsd*)
|
||||
+ with_gnu_ld=no
|
||||
+ ;;
|
||||
|
||||
esac
|
||||
|
||||
@@ -1403,10 +1406,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 test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
||||
+ export_dynamic_flag_spec='${wl}-E'
|
||||
+ fi
|
||||
+ ;;
|
||||
+ esac
|
||||
;;
|
||||
|
||||
os2*)
|
||||
@@ -2030,9 +2044,16 @@ netbsd*)
|
||||
|
||||
openbsd*)
|
||||
version_type=sunos
|
||||
- if test "$with_gnu_ld" = yes; then
|
||||
- need_lib_prefix=no
|
||||
- need_version=no
|
||||
+ 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'
|
@ -1,44 +0,0 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.2 2001/09/02 03:41:30 pvalchev Exp $
|
||||
--- ltmain.sh.orig Tue Jun 12 13:29:07 2001
|
||||
+++ ltmain.sh Sat Sep 1 21:30:53 2001
|
||||
@@ -4416,40 +4416,6 @@ relink_command=\"$relink_command\""
|
||||
# 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 the \`-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
|
||||
;;
|
||||
|
@ -1,2 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.3 2004/09/14 23:44:01 espie Exp $
|
||||
@lib lib/libSDLmm.so.8.0
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.4 2006/01/06 09:07:59 steven Exp $
|
||||
@lib lib/libSDLmm.so.${LIBSDLmm_VERSION}
|
||||
|
Loading…
Reference in New Issue
Block a user