[csw-devel] SF.net SVN: gar:[10461] csw/mgar/pkg/glib

theferret at users.sourceforge.net theferret at users.sourceforge.net
Tue Jul 6 21:00:35 CEST 2010


Revision: 10461
          http://gar.svn.sourceforge.net/gar/?rev=10461&view=rev
Author:   theferret
Date:     2010-07-06 19:00:34 +0000 (Tue, 06 Jul 2010)

Log Message:
-----------
glib: added simple branch dir for quick rebuild without libtool files

Added Paths:
-----------
    csw/mgar/pkg/glib/branch-c/
    csw/mgar/pkg/glib/branch-c/Makefile
    csw/mgar/pkg/glib/branch-c/copyright
    csw/mgar/pkg/glib/branch-c/pkginfo
    csw/mgar/pkg/glib/branch-c/prototype


Property changes on: csw/mgar/pkg/glib/branch-c
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work
cswstage
build


Added: csw/mgar/pkg/glib/branch-c/Makefile
===================================================================
--- csw/mgar/pkg/glib/branch-c/Makefile	                        (rev 0)
+++ csw/mgar/pkg/glib/branch-c/Makefile	2010-07-06 19:00:34 UTC (rev 10461)
@@ -0,0 +1,172 @@
+# This file is from TEMPLATES/createpkg/Makefile.lib32
+# You MUST build this with gnu make, unfortunately.
+# Mainly just because of the ARCH expansion, but also for "?="
+
+# Customize your prototype file(s) as needed
+
+# Organization: variable defintions up top,
+# targets in second half.
+# Note that assignments with "?=" mean "assign if not already assigned.
+
+# Where do we keep local downloads of software src files
+ARCHIVEDIR ?= /home/src
+
+# We only have this lib for legacy purposes, really.
+# existing deps need "libglib-1.2.so.0"
+ARCHIVENAME ?= glib-1.2.10.tar.gz 
+EXTRACTPROG ?= /usr/sfw/bin/gtar zfx
+
+# Only use ONE here. The name is used for compat with 'gar'.
+MASTER_SITES ?= http://ftp.gnome.org/pub/gnome/sources/glib/1.2
+
+ARCH := $(shell /bin/uname -p)
+
+LDFLAGS_COMMON :=
+
+SRCDIR= build/*
+
+# DO NOT specify the arch-64 stuff such as -m64 here.
+# the individual targets will do that.
+
+CFLAGS_COMMON   ?= -mt -xnorunpath -xO3
+CXXFLAGS_COMMON ?= -mt -norunpath  -xO3
+CFLAGS_sparc    ?= -xarch=v8
+CFLAGS_i386     ?= -xarch=386
+
+# Keep this arch-neutral if possible. add arch-specific tweaks
+# to arch-specific target
+CONFIGURE=./configure --prefix=/opt/csw --enable-static=no
+
+
+
+CREATEPKG=createpkg -r `pwd`/build/*/cswstage
+
+
+all:	$(ARCH)-32
+#all:	$(ARCH)-32 package
+
+# ARCH-XX handles configure, build, and stage for its own combo
+# 
+
+EXTRACTPROG ?= /bin/echo ERROR: need to set EXTRACTPROG ; exit 1 ;
+
+
+
+extract:	build/.extract.done
+
+build/.extract.done:
+	test -d build || mkdir build
+	@if test -f  $(ARCHIVEDIR)/$(ARCHIVENAME) ; then \
+		echo Extracting $(ARCHIVENAME) under build dir... ;\
+		( cd build && $(EXTRACTPROG) $(ARCHIVEDIR)/$(ARCHIVENAME) ) ; \
+	else echo Cannot extract - $(ARCHIVEDIR)/$(ARCHIVENAME) does not exist ;\
+		exit 1; \
+	fi
+	touch build/.extract.done
+	
+
+clean distclean:
+	@echo Calling $@ in $(SRCDIR)
+	$(MAKE) -C $(SRCDIR) $@
+
+
+reallyclean:	distclean
+	@echo Removing any milestone files in build as well...
+	@rm -f build/.??*
+	@echo '(However, leaving src tree intact, with any patches in it)'
+	@echo '(If you want, you could rm -r build, then make extract once more)'
+
+garchive:
+	@echo Call the fetch target instead: it does the same thing.
+
+
+# Downloads the source code to the common ARCHIVEDIR
+fetch:	$(ARCHIVEDIR)/$(ARCHIVENAME)
+	@echo fetch done
+
+$(ARCHIVEDIR)/$(ARCHIVENAME):
+	wget -P $(ARCHIVEDIR) $(MASTER_SITES)/$(ARCHIVENAME)
+
+patch:
+	@echo patch: patching is handled automatically as part of the configure phase.
+
+stage-preserved:
+	@if test -f preserve-$(ARCH).tar ; then \
+		echo Copying preserved arch-specific files; \
+		cat preserve-$(ARCH).tar |(cd $(SRCDIR)/cswstage && tar xvf -);\
+	fi
+	@if test -f preserve.tar ; then \
+		echo Copying preserved arch-neutral files; \
+		cat preserve.tar |(cd $(SRCDIR)/cswstage && tar xvf -);\
+	fi
+		
+package:	stage-preserved
+	$(CREATEPKG)
+
+
+# split out generic $(ARCH) sections to platform-specific sections if needed.
+# but it usually should not be neccessary
+
+
+$(ARCH)-32 ::   configure-$(ARCH)-32 build-$(ARCH)-32 stage-$(ARCH)-32
+	@echo Completed $(ARCH)-32 configure, build and stage
+	touch build/.$(ARCH)-32.done
+
+
+
+build/.$(ARCH)-32.done:	$(ARCH)-32
+
+# Since we share the same src tree, we should only need to
+# pre-configure patching one time for all.
+build/.patch-preconf.done:	build/.extract.done
+	if test -f patchfile.preconf ; then \
+	 gpatch -d $(SRCDIR) -p0  <patchfile.preconf ; fi
+	touch $@
+
+
+#Note: I WANT to use LDFLAGS=-R$$ORIGIN, but stupid libtool
+# wont allow it! so force it at build time
+build/.configure-$(ARCH)-32.done:	build/.patch-preconf.done
+	@echo handling $@ target
+	(cd $(SRCDIR) ; \
+	  CFLAGS="$(CFLAGS_COMMON) $(CFLAGS_$(ARCH))" \
+	  CXXFLAGS="$(CXXFLAGS_COMMON)" \
+	  LDFLAGS='-R/opt/csw/lib -L/opt/csw/lib' \
+	  $(CONFIGURE) )
+	if test -f patchfile.postconf ; then \
+	 gpatch -d $(SRCDIR) -p0  <patchfile.postconf ; fi
+	touch $@
+
+
+# See note about LDFLAGS and ORIGIN, higher up	
+build/.build-$(ARCH)-32.done:
+	@echo handling $@ target
+	LD_OPTIONS='-R$$ORIGIN' $(MAKE) -C $(SRCDIR) $(MFLAGS)
+	touch $@
+
+
+
+## NOTE: This is a DESTRUCTIVE target build!!
+## 'stagepkg'  will destroy any prior "cswstage" directory!!!
+## So, we remove all 64bit milestones
+build/.stage-$(ARCH)-32.done:
+	@echo Handling stage of $(ARCH)-32
+	(cd $(SRCDIR) ; MAKE=gmake stagepkg)
+	(cd $(SRCDIR); cp COPYING cswstage/.)
+	@rm -f build/.*64.done
+	touch $@
+
+
+
+#These are the easy-to-type targets. They just trigger the real ones.
+configure-$(ARCH)-32:	build/.configure-$(ARCH)-32.done
+	@echo $@ done
+build-$(ARCH)-32:	build/.build-$(ARCH)-32.done
+	@echo $@ done
+stage-$(ARCH)-32:	build/.stage-$(ARCH)-32.done
+	@echo $@ done
+
+# manual targets
+pkgproto:
+	cat $(SRCDIR)/cswstage/prototype | sed 's/root root$$/root bin/'>prototype
+	@echo Dont forget to add a COPYING line !!

Added: csw/mgar/pkg/glib/branch-c/copyright
===================================================================
--- csw/mgar/pkg/glib/branch-c/copyright	                        (rev 0)
+++ csw/mgar/pkg/glib/branch-c/copyright	2010-07-06 19:00:34 UTC (rev 10461)
@@ -0,0 +1 @@
+See /opt/csw/share/doc/glib/COPYING for full license (LGPL2)

Added: csw/mgar/pkg/glib/branch-c/pkginfo
===================================================================
--- csw/mgar/pkg/glib/branch-c/pkginfo	                        (rev 0)
+++ csw/mgar/pkg/glib/branch-c/pkginfo	2010-07-06 19:00:34 UTC (rev 10461)
@@ -0,0 +1,7 @@
+PKG=CSWglib
+NAME=glib - utility library commonly associated with GNOME programs
+VERSION=1.2.10,REV=YYYY.MM.DD
+CATEGORY=application
+VENDOR=http://www.gnome.org/ packaged for CSW by Philip Brown
+HOTLINE=http://www.opencsw.org/bugtrack/
+EMAIL=phil at opencsw.org

Added: csw/mgar/pkg/glib/branch-c/prototype
===================================================================
--- csw/mgar/pkg/glib/branch-c/prototype	                        (rev 0)
+++ csw/mgar/pkg/glib/branch-c/prototype	2010-07-06 19:00:34 UTC (rev 10461)
@@ -0,0 +1,36 @@
+i pkginfo
+i copyright
+d none /opt/csw/include 0755 root bin
+d none /opt/csw/include/glib-1.2 0755 root bin
+f none /opt/csw/include/glib-1.2/glib.h 0644 root bin
+f none /opt/csw/include/glib-1.2/gmodule.h 0644 root bin
+d none /opt/csw/share 0755 root bin
+d none /opt/csw/share/info 0755 root bin
+f none /opt/csw/share/info/glib.info 0644 root bin
+d none /opt/csw/share/man 0755 root bin
+d none /opt/csw/share/man/man1 0755 root bin
+f none /opt/csw/share/man/man1/glib-config.1 0644 root bin
+d none /opt/csw/share/aclocal 0755 root bin
+f none /opt/csw/share/aclocal/glib.m4 0644 root bin
+d none /opt/csw/share/doc 0755 root bin
+d none /opt/csw/share/doc/glib 0755 root bin
+f none /opt/csw/share/doc/glib/COPYING=COPYING 0644 root bin
+d none /opt/csw/bin 0755 root bin
+f none /opt/csw/bin/glib-config 0755 root bin
+d none /opt/csw/lib 0755 root bin
+s none /opt/csw/lib/libglib.so=libglib-1.2.so.0.0.10
+d none /opt/csw/lib/pkgconfig 0755 root bin
+f none /opt/csw/lib/pkgconfig/glib.pc 0644 root bin
+f none /opt/csw/lib/pkgconfig/gmodule.pc 0644 root bin
+f none /opt/csw/lib/pkgconfig/gthread.pc 0644 root bin
+s none /opt/csw/lib/libgthread.so=libgthread-1.2.so.0.0.10
+f none /opt/csw/lib/libglib-1.2.so.0.0.10 0755 root bin
+s none /opt/csw/lib/libgmodule.so=libgmodule-1.2.so.0.0.10
+d none /opt/csw/lib/glib 0755 root bin
+d none /opt/csw/lib/glib/include 0755 root bin
+f none /opt/csw/lib/glib/include/glibconfig.h 0644 root bin
+s none /opt/csw/lib/libglib-1.2.so.0=libglib-1.2.so.0.0.10
+s none /opt/csw/lib/libgthread-1.2.so.0=libgthread-1.2.so.0.0.10
+f none /opt/csw/lib/libgmodule-1.2.so.0.0.10 0755 root bin
+f none /opt/csw/lib/libgthread-1.2.so.0.0.10 0755 root bin
+s none /opt/csw/lib/libgmodule-1.2.so.0=libgmodule-1.2.so.0.0.10


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