[csw-devel] SF.net SVN: gar:[18438] csw/mgar/pkg/libgnet/trunk
pfelecan at users.sourceforge.net
pfelecan at users.sourceforge.net
Sat Jun 16 15:14:17 CEST 2012
Revision: 18438
http://gar.svn.sourceforge.net/gar/?rev=18438&view=rev
Author: pfelecan
Date: 2012-06-16 13:14:17 +0000 (Sat, 16 Jun 2012)
Log Message:
-----------
- documentation adjustments
- finished splitting in multiple packages
- overrides verified and validated
Modified Paths:
--------------
csw/mgar/pkg/libgnet/trunk/Makefile
Added Paths:
-----------
csw/mgar/pkg/libgnet/trunk/files/GNUMakefile
Modified: csw/mgar/pkg/libgnet/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libgnet/trunk/Makefile 2012-06-16 11:14:21 UTC (rev 18437)
+++ csw/mgar/pkg/libgnet/trunk/Makefile 2012-06-16 13:14:17 UTC (rev 18438)
@@ -12,8 +12,9 @@
endef
DISTNAME = gnet-$(VERSION)
-MASTER_SITES = http://ftp.gnome.org/pub/GNOME/sources/gnet/2.0/
-DISTFILES = $(DISTNAME).tar.gz
+MASTER_SITES = http://ftp.gnome.org/pub/GNOME/sources/gnet/2.0/
+DISTFILES = $(DISTNAME).tar.gz
+DISTFILES += GNUMakefile
# until the glib development package is installed on Solaris 9 we
# limit the scope:
@@ -23,40 +24,50 @@
BUILD_DEP_PKGS += CSWlibglib2-dev
BUILD_DEP_PKGS += CSWlibiconv-dev
-RUNTIME_DEP_PKGS += CSWlibgcc-s1
-RUNTIME_DEP_PKGS += CSWlibglib2-0-0
-RUNTIME_DEP_PKGS += CSWlibgthread2-0-0
-RUNTIME_DEP_PKGS += CSWlibiconv2
-RUNTIME_DEP_PKGS += CSWlibintl8
-
CONFIGURE_ARGS = $(DIRPATHS)
GARCOMPILER = GNU
+INSTALL_ARGS += TARGET_DIR=$(docdir)/$(NAME)2_doc/html
+
PACKAGES += CSWlibgnet2-doc
SPKG_DESC_CSWlibgnet2-doc = $(DESCRIPTION), documentation
OBSOLETED_BY_CSWlibgnet2-doc= CSWlibgnet2doc
CATALOGNAME_CSWlibgnet2doc = libgnet2_doc_stub
ARCHALL_CSWlibgnet2-doc = 1
-PACKAGES += CSWlibgnet2-0-0
-CATALOGNAME_CSWlibgnet2-0-0 = libgnet2_0_0
-PKGFILES_CSWlibgnet2-0-0 += $(call baseisadirs,$(libdir),libgnet-2\.0\.so\.0\.8\.0)
-PKGFILES_CSWlibgnet2-0-0 += $(call baseisadirs,$(libdir),libgnet-2\.0\.so\.0(\.\d+)*)
-SPKG_DESC_CSWlibgnet2-0-0 = $(DESCRIPTION), libgnet-2.0.so.0
-OBSOLETED_BY_CSWlibgnet2-0-0= CSWlibgnet2rt
-CATALOGNAME_CSWlibgnet2rt = libgnet2_rt_stub
+PACKAGES += CSWlibgnet2-0-0
+CATALOGNAME_CSWlibgnet2-0-0 = libgnet2_0_0
+PKGFILES_CSWlibgnet2-0-0 += $(call baseisadirs,$(libdir),libgnet-2\.0\.so\.0\.8\.0)
+PKGFILES_CSWlibgnet2-0-0 += $(call baseisadirs,$(libdir),libgnet-2\.0\.so\.0(\.\d+)*)
+SPKG_DESC_CSWlibgnet2-0-0 = $(DESCRIPTION), libgnet-2.0.so.0
+OBSOLETED_BY_CSWlibgnet2-0-0 = CSWlibgnet2rt
+CATALOGNAME_CSWlibgnet2rt = libgnet2_rt_stub
+RUNTIME_DEP_PKGS_CSWlibgnet2-0-0 += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWlibgnet2-0-0 += CSWlibglib2-0-0
+RUNTIME_DEP_PKGS_CSWlibgnet2-0-0 += CSWlibgthread2-0-0
+RUNTIME_DEP_PKGS_CSWlibgnet2-0-0 += CSWlibiconv2
+RUNTIME_DEP_PKGS_CSWlibgnet2-0-0 += CSWlibintl8
-PACKAGES += CSWlibgnet2-dev
-SPKG_DESC_CSWlibgnet2-dev = $(DESCRIPTION), development files
-PKGFILES_CSWlibgnet2-dev += /opt/csw/lib/libgnet-2.0.so
-PKGFILES_CSWlibgnet2-dev += $(PKGFILES_DEVEL)
-OBSOLETED_BY_CSWlibgnet2-dev= CSWlibgnet2
-CATALOGNAME_CSWlibgnet2 = libgnet2_stub
-ARCHALL_CSWlibgnet2-dev = 1
+PACKAGES += CSWlibgnet2-dev
+SPKG_DESC_CSWlibgnet2-dev = $(DESCRIPTION), development files
+PKGFILES_CSWlibgnet2-dev += /opt/csw/lib/libgnet-2.0.so
+PKGFILES_CSWlibgnet2-dev += $(PKGFILES_DEVEL)
+PKGFILES_CSWlibgnet2-dev += /opt/csw/lib/gnet-2.0/include/gnetconfig.h
+OBSOLETED_BY_CSWlibgnet2-dev = CSWlibgnet2
+CATALOGNAME_CSWlibgnet2 = libgnet2_stub
+ARCHALL_CSWlibgnet2-dev = 1
+RUNTIME_DEP_PKGS_CSWlibgnet2-dev += CSWlibgnet2-0-0
+
include gar/category.mk
+post-install-modulated:
+ ginstall --directory $(DESTDIR)$(docdir)/$(NAME)2_doc/examples
+ cd $(WORKSRC)/examples && ginstall --preserve-timestamps --mode=u=rw,go=r *.c $(DESTDIR)$(docdir)/$(NAME)2_doc/examples
+ ginstall --preserve-timestamps --mode=u=rw,go=r $(WORKDIR)/GNUMakefile $(DESTDIR)$(docdir)/$(NAME)2_doc/examples
+ $(MAKECOOKIE)
+
# this is private and not available publicly
mydependencies:
$(HOME)/bin/ocswdeplist --package $(NAME)
Added: csw/mgar/pkg/libgnet/trunk/files/GNUMakefile
===================================================================
--- csw/mgar/pkg/libgnet/trunk/files/GNUMakefile (rev 0)
+++ csw/mgar/pkg/libgnet/trunk/files/GNUMakefile 2012-06-16 13:14:17 UTC (rev 18438)
@@ -0,0 +1,74 @@
+# $Id$
+# provided by CSW
+# Caveat: uses GNU make extensions
+
+ CC = gcc
+export PKG_CONFIG_PATH = /opt/csw/lib/pkgconfig
+ buildFlags = $(shell pkg-config gnet-2.0 --cflags --libs)
+
+ifeq ($(strip $(buildFlags)),)
+ $(error "unknown build flags!")
+endif
+
+all: \
+ dnslookup \
+ echoclient-async \
+ echoclient-gconn \
+ echoclient-udp \
+ echoclient-unix \
+ echoclient \
+ echoserver-async \
+ echoserver-gserver \
+ echoserver-udp \
+ echoserver-unix \
+ echoserver \
+ hash \
+ hfetch \
+ hostinfo \
+ sdr
+ : $@ done
+
+dnslookup: dnslookup.c
+ $(CC) dnslookup.c $(buildFlags) -o dnslookup
+
+echoclient-async: echoclient-async.c
+ $(CC) echoclient-async.c $(buildFlags) -o echoclient-async
+
+echoclient-gconn: echoclient-gconn.c
+ $(CC) echoclient-gconn.c $(buildFlags) -o echoclient-gconn
+
+echoclient-udp: echoclient-udp.c
+ $(CC) echoclient-udp.c $(buildFlags) -o echoclient-udp
+
+echoclient-unix: echoclient-unix.c
+ $(CC) echoclient-unix.c $(buildFlags) -o echoclient-unix
+
+echoclient: echoclient.c
+ $(CC) echoclient.c $(buildFlags) -o echoclient
+
+echoserver-async: echoserver-async.c
+ $(CC) echoserver-async.c $(buildFlags) -o echoserver-async
+
+echoserver-gserver: echoserver-gserver.c
+ $(CC) echoserver-gserver.c $(buildFlags) -o echoserver-gserver
+
+echoserver-udp: echoserver-udp.c
+ $(CC) echoserver-udp.c $(buildFlags) -o echoserver-udp
+
+echoserver-unix: echoserver-unix.c
+ $(CC) echoserver-unix.c $(buildFlags) -o echoserver-unix
+
+echoserver: echoserver.c
+ $(CC) echoserver.c $(buildFlags) -o echoserver
+
+hash: hash.c
+ $(CC) hash.c $(buildFlags) -o hash
+
+hfetch: hfetch.c
+ $(CC) hfetch.c $(buildFlags) -o hfetch
+
+hostinfo: hostinfo.c
+ $(CC) hostinfo.c $(buildFlags) -o hostinfo
+
+sdr: sdr.c
+ $(CC) sdr.c $(buildFlags) -o sdr
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list