[csw-devel] SF.net SVN: gar:[10542] csw/mgar/pkg
theferret at users.sourceforge.net
theferret at users.sourceforge.net
Mon Jul 19 18:18:20 CEST 2010
Revision: 10542
http://gar.svn.sourceforge.net/gar/?rev=10542&view=rev
Author: theferret
Date: 2010-07-19 16:18:20 +0000 (Mon, 19 Jul 2010)
Log Message:
-----------
gtk_chtheme: new package
Added Paths:
-----------
csw/mgar/pkg/gtk_chtheme/
csw/mgar/pkg/gtk_chtheme/Makefile
csw/mgar/pkg/gtk_chtheme/trunk/
csw/mgar/pkg/gtk_chtheme/trunk/Makefile
csw/mgar/pkg/gtk_chtheme/trunk/copyright
csw/mgar/pkg/gtk_chtheme/trunk/depend
csw/mgar/pkg/gtk_chtheme/trunk/patchfile.preconf
csw/mgar/pkg/gtk_chtheme/trunk/pkginfo
csw/mgar/pkg/gtk_chtheme/trunk/prototype
Added: csw/mgar/pkg/gtk_chtheme/Makefile
===================================================================
--- csw/mgar/pkg/gtk_chtheme/Makefile (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/Makefile 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,15 @@
+
+# This is somewhat of a "stub" Makefile, for
+# directories managed by the "createpkg" TEMPLATES.
+#
+# Not all of targets listed here may actualy be supported by
+# the subdir in question. But they are a goal
+
+DEFAULT_DIR=trunk
+
+
+# The -C means you must use gmake, unfortunately.
+
+all package build garchive extract configure clean distclean reallyclean :
+ @echo Going to make $@ in $(DEFAULT_DIR)
+ $(MAKE) -C $(DEFAULT_DIR) $@
Property changes on: csw/mgar/pkg/gtk_chtheme/trunk
___________________________________________________________________
Added: svn:ignore
+ cookies
download
work
cswstage
build
Added: csw/mgar/pkg/gtk_chtheme/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/Makefile (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/Makefile 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,161 @@
+# 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
+ARCHIVENAME ?= gtk-chtheme-0.3.1.tar.bz2
+EXTRACTPROG ?= /usr/sfw/bin/gtar jfx
+
+# Only use ONE here. The name is used for compat with 'gar'.
+MASTER_SITES ?= http://plasmasturm.org/code/gtk-chtheme
+
+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 -xO2
+CXXFLAGS_COMMON ?= -mt -norunpath -xO2
+CFLAGS_sparc ?= -xarch=v8
+CFLAGS_i386 ?= -xarch=386
+
+
+CREATEPKG=createpkg -b `pwd`/build/*/cswstage/opt/csw
+
+
+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
+ echo There is no ./configure for this program
+ if test -f patchfile.postconf ; then \
+ gpatch -d $(SRCDIR) -p0 <patchfile.postconf ; fi
+ touch $@
+
+
+# I guess gtk should really set the -R for this. but for now.. hack it
+build/.build-$(ARCH)-32.done:
+ @echo handling $@ target
+ LD_OPTIONS='-R$$ORIGIN -R$$ORIGIN/../lib ' $(MAKE) -C $(SRCDIR) $(MFLAGS)
+ touch $@
+
+
+PATH := /opt/csw/gnu:$(PATH)
+
+## 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 -m)
+ (cd $(SRCDIR); cp COPYING cswstage/opt/csw)
+ @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 'f none share/doc/gtk_chtheme/COPYING=COPYING 0644 root bin' >>prototype
Added: csw/mgar/pkg/gtk_chtheme/trunk/copyright
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/copyright (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/copyright 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,3 @@
+Please see /opt/csw/share/doc/gtk_chtheme/COPYING for full copyright
+notice (GPL 2)
+
Added: csw/mgar/pkg/gtk_chtheme/trunk/depend
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/depend (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/depend 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,8 @@
+P CSWfconfig
+P CSWftype2
+P CSWggettextrt
+P CSWglib2
+P CSWgtk2
+P CSWlibatk
+P CSWlibcairo
+P CSWpango
Added: csw/mgar/pkg/gtk_chtheme/trunk/patchfile.preconf
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/patchfile.preconf (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/patchfile.preconf 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,29 @@
+diff --git Makefile Makefile
+index 0113972..e400b89 100644
+--- Makefile
++++ Makefile
+@@ -3,8 +3,10 @@ include Metadata
+ CFLAGS := $(if $(RPM_OPT_FLAGS), $(RPM_OPT_FLAGS), $(CFLAGS))
+
+ LDFLAGS = $(shell pkg-config --libs gtk+-2.0)
+-CFLAGS += -Wall
+-CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
++CFLAGS +=
++CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
++# Using these, makes it not even compile? why are they in here?!?
++#-DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
+ CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"'
+ CPPFLAGS =
+ CXXFLAGS =
+diff --git Metadata Metadata
+index f53ec09..e5510cc 100644
+--- Metadata
++++ Metadata
+@@ -11,6 +11,6 @@ The aim is to make theme preview and selection as slick as possible. Themes\
+ installed on the system are presented for selection and previewed on the fly.\
+ A large variety of widgets provides a comprehensive demonstration.
+
+-PREFIX = /usr
++PREFIX = /opt/csw
+ BINDIR = $(PREFIX)/bin
+ MANDIR = $(PREFIX)/share/man
Added: csw/mgar/pkg/gtk_chtheme/trunk/pkginfo
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/pkginfo (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/pkginfo 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,8 @@
+PKG=CSWgtkchtheme
+NAME=gtk_chtheme - pure GTK2 based theme changer
+VERSION=0.3.1,REV=YYYY.MM.DD
+CATEGORY=application
+VENDOR=http://plasmasturm.org/code/gtk-chtheme/ packaged for CSW by Philip Brown
+HOTLINE=http://www.opencsw.org/bugtrack/
+EMAIL=phil at opencsw.org
+OPENCSW_REPOSITORY=https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/pkg/gtk_chtheme/trunk
Added: csw/mgar/pkg/gtk_chtheme/trunk/prototype
===================================================================
--- csw/mgar/pkg/gtk_chtheme/trunk/prototype (rev 0)
+++ csw/mgar/pkg/gtk_chtheme/trunk/prototype 2010-07-19 16:18:20 UTC (rev 10542)
@@ -0,0 +1,10 @@
+i pkginfo
+i copyright
+i depend
+d none bin 0755 root bin
+f none bin/gtk-chtheme 0755 root bin
+d none share 0755 root bin
+d none share/man 0755 root bin
+d none share/man/man1 0755 root bin
+f none share/man/man1/gtk-chtheme.1 0755 root bin
+f none share/doc/gtk_chtheme/COPYING=COPYING 0644 root bin
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