sdl-net-1.2.0 import
-- This is a small sample cross-platform networking library, with a sample chat client and server application. The chat client uses the GUIlib GUI framework library.
This commit is contained in:
parent
ba288d1d99
commit
988e5f020d
32
devel/sdl-net/Makefile
Normal file
32
devel/sdl-net/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/05/07 04:10:07 obecian Exp $
|
||||
|
||||
COMMENT= "SDL cross-platform networking library"
|
||||
|
||||
VER= 1.2.0
|
||||
PROJ= SDL_net
|
||||
DISTNAME= ${PROJ}-${VER}
|
||||
PKGNAME= sdl-net-${VER}
|
||||
CATEGORIES= devel net
|
||||
NEED_VERSION= 1.364
|
||||
MASTER_SITES= http://www.libsdl.org/projects/${PROJ}/release/
|
||||
|
||||
HOMEPAGE= http://www.libsdl.org/
|
||||
|
||||
MAINTAINER= Mark Grimes <obecian@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= SDL.:sdl-*-!no_x11:devel/sdl \
|
||||
GUI.::devel/guilib
|
||||
|
||||
USE_X11= Yes
|
||||
|
||||
SEPARATE_BUILD= concurrent
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
|
||||
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/sdl-net/files/md5
Normal file
3
devel/sdl-net/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (SDL_net-1.2.0.tar.gz) = c8d4452f58c457b6f3dd6ca04bf3f071
|
||||
RMD160 (SDL_net-1.2.0.tar.gz) = 94c99bea132d6c2a7f8a3a5ec662c3bbc96f6317
|
||||
SHA1 (SDL_net-1.2.0.tar.gz) = 69c43246c365a1f418cd86d8cc4fd7127976dc0b
|
10
devel/sdl-net/patches/patch-Makefile_am
Normal file
10
devel/sdl-net/patches/patch-Makefile_am
Normal file
@ -0,0 +1,10 @@
|
||||
--- Makefile.am.orig Sun May 6 16:10:45 2001
|
||||
+++ Makefile.am Sun May 6 16:11:40 2001
|
||||
@@ -25,7 +25,6 @@ EXTRA_DIST = \
|
||||
|
||||
libSDL_net_la_LIBADD = @INETLIB@
|
||||
libSDL_net_la_LDFLAGS = \
|
||||
- -release $(LT_RELEASE) \
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
|
||||
if HAVE_GUI_LIB
|
11
devel/sdl-net/patches/patch-Makefile_in
Normal file
11
devel/sdl-net/patches/patch-Makefile_in
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in.orig Sun May 6 16:10:49 2001
|
||||
+++ Makefile.in Sun May 6 16:12:13 2001
|
||||
@@ -100,7 +100,7 @@ EXTRA_DIST = CHANGES autogen.sh V
|
||||
|
||||
|
||||
libSDL_net_la_LIBADD = @INETLIB@
|
||||
-libSDL_net_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
+libSDL_net_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
||||
|
||||
@HAVE_GUI_LIB_TRUE@EXAMPLES = chat chatd
|
||||
@HAVE_GUI_LIB_FALSE@EXAMPLES =
|
14
devel/sdl-net/patches/patch-SDLnetsys_h
Normal file
14
devel/sdl-net/patches/patch-SDLnetsys_h
Normal file
@ -0,0 +1,14 @@
|
||||
--- SDLnetsys.h.orig Sun Apr 15 21:43:16 2001
|
||||
+++ SDLnetsys.h Sun Apr 15 21:45:42 2001
|
||||
@@ -48,6 +48,11 @@
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#ifndef __BEOS__
|
||||
+#ifdef __OpenBSD__
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
+#endif /* OpenBSD */
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#include <netinet/in.h>
|
51
devel/sdl-net/patches/patch-ltconfig
Normal file
51
devel/sdl-net/patches/patch-ltconfig
Normal file
@ -0,0 +1,51 @@
|
||||
--- ltconfig.orig Sun May 6 16:10:56 2001
|
||||
+++ ltconfig Sun May 6 16:14:02 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 [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
|
||||
+ export_dynamic_flag_spec='${wl}-E'
|
||||
+ fi
|
||||
+ ;;
|
||||
+ esac
|
||||
;;
|
||||
|
||||
os2*)
|
||||
@@ -2029,13 +2043,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*)
|
53
devel/sdl-net/patches/patch-ltmain_sh
Normal file
53
devel/sdl-net/patches/patch-ltmain_sh
Normal file
@ -0,0 +1,53 @@
|
||||
--- ltmain.sh.orig Sun May 6 16:11:01 2001
|
||||
+++ ltmain.sh Sun May 6 16:15:05 2001
|
||||
@@ -1799,6 +1799,9 @@ compiler."
|
||||
# rhapsody is a little odd...
|
||||
deplibs="$deplibs -framework System"
|
||||
;;
|
||||
+ *-*-openbsd*)
|
||||
+ # do not include libc due to us having libc/libc_r.
|
||||
+ ;;
|
||||
*)
|
||||
# Add libc to deplibs on all other systems.
|
||||
deplibs="$deplibs -lc"
|
||||
@@ -3567,40 +3570,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
|
||||
;;
|
||||
|
5
devel/sdl-net/pkg/DESCR
Normal file
5
devel/sdl-net/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
This is a small sample cross-platform networking library, with a sample chat
|
||||
client and server application. The chat client uses the GUIlib GUI framework
|
||||
library.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
3
devel/sdl-net/pkg/PFRAG.shared
Normal file
3
devel/sdl-net/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2001/05/07 04:10:08 obecian Exp $
|
||||
lib/libSDL_net.so.0.0
|
||||
DYNLIBDIR(%B)
|
6
devel/sdl-net/pkg/PLIST
Normal file
6
devel/sdl-net/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/05/07 04:10:08 obecian Exp $
|
||||
include/SDL/SDL_net.h
|
||||
lib/libSDL_net.a
|
||||
lib/libSDL_net.la
|
||||
%%SHARED%%
|
||||
@dirrm include/SDL
|
Loading…
Reference in New Issue
Block a user