diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-07 11:25:51 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-07 11:25:51 +0800 |
commit | 4650875e146075391d9843c89b80b6e84fa502dc (patch) | |
tree | 6a341838b27cebdd26f2b38d3a76c281be039571 /x11-toolkits | |
parent | 1de358a4a7134a3bed8082f2031d3b09d99e7fa1 (diff) | |
download | marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar.gz marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar.bz2 marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar.lz marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar.xz marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.tar.zst marcuscom-ports-4650875e146075391d9843c89b80b6e84fa502dc.zip |
Fix the build with GNOME 2.26.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12223 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/gai/Makefile | 55 | ||||
-rw-r--r-- | x11-toolkits/gai/distinfo | 3 | ||||
-rw-r--r-- | x11-toolkits/gai/files/patch-gai_Makefile.in | 32 | ||||
-rw-r--r-- | x11-toolkits/gai/files/patch-po_Makefile.in | 11 | ||||
-rw-r--r-- | x11-toolkits/gai/pkg-descr | 24 |
5 files changed, 125 insertions, 0 deletions
diff --git a/x11-toolkits/gai/Makefile b/x11-toolkits/gai/Makefile new file mode 100644 index 000000000..06c4e6f38 --- /dev/null +++ b/x11-toolkits/gai/Makefile @@ -0,0 +1,55 @@ +# ex:ts=8 +# Ports collection makefile for: gai +# Date created: Feb 16, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= gai +PORTVERSION= 0.5.10 +PORTREVISION= 7 +CATEGORIES= x11-toolkits gnome +MASTER_SITES= SF + +MAINTAINER= lx@redundancy.redundancy.org +COMMENT= General Applet Interface Library + +LIB_DEPENDS= gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext + +USE_BZIP2= yes +USE_GL= gl +USE_SDL= sdl +USE_GNOME= gnomepanel +GNU_CONFIGURE= yes +CONFIGURE_ENV= SDLCONF=${SDL_CONFIG} \ + CPPFLAGS="`pkg-config --cflags libgnomeui-2.0`" + +PLIST_FILES= include/gai/gai.h lib/libgai.so.${PORTVERSION} \ + lib/libgai.so.0 lib/libgai.so libdata/pkgconfig/gai.pc \ + share/locale/de/LC_MESSAGES/gai.mo +PLIST_DIRS= include/gai +PORTDOCS= * +USE_LDCONFIG= yes + +post-patch: + @${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \ + s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/configure + +post-install: +.if !defined(NOPORTDOCS) + cd ${WRKSRC}/docs && \ + ${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \ + ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \; +.endif +.for dir in docking examples templates + cd ${WRKSRC} && \ + ${FIND} ${dir} -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \ + ${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \; +.endfor + @${FIND} ${EXAMPLESDIR} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \ + ${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/x11-toolkits/gai/distinfo b/x11-toolkits/gai/distinfo new file mode 100644 index 000000000..0b4a46930 --- /dev/null +++ b/x11-toolkits/gai/distinfo @@ -0,0 +1,3 @@ +MD5 (gai-0.5.10.tar.bz2) = 1c9cf2fb24ae6c95412c60f256dc3513 +SHA256 (gai-0.5.10.tar.bz2) = ea40cc897637a2dd67e4fe263bd8a280818b21f45516e899359cb3a26283821a +SIZE (gai-0.5.10.tar.bz2) = 288291 diff --git a/x11-toolkits/gai/files/patch-gai_Makefile.in b/x11-toolkits/gai/files/patch-gai_Makefile.in new file mode 100644 index 000000000..047c61c98 --- /dev/null +++ b/x11-toolkits/gai/files/patch-gai_Makefile.in @@ -0,0 +1,32 @@ +--- gai/Makefile.in.orig Thu Oct 27 15:00:22 2005 ++++ gai/Makefile.in Thu Oct 27 15:02:47 2005 +@@ -1,9 +1,9 @@ + + # Makefile for the General Applet Interface Library + +-CFLAGS += -Wall -O2 -I.. @GTK_CFLAGS@ @SDL_CFLAGS@ @GNOME_CFLAGS@ @GL_CFLAGS@ ++CFLAGS += -Wall -fPIC -I.. @GTK_CFLAGS@ @SDL_CFLAGS@ @GNOME_CFLAGS@ @GL_CFLAGS@ @CPPFLAGS@ + +-LDFLAGS += -g -fPIC -L/usr/X11R6/lib -lX11 @SYSTEM_SPECIFIC_LIBS@ @GTK_LIBS@ @GTHREAD_CFLAGS@ @PANGO_CFLAGS@ ++LDFLAGS += -fPIC -L$(LOCALBASE)/lib -lX11 @SYSTEM_SPECIFIC_LIBS@ @GTK_LIBS@ @GTHREAD_CFLAGS@ @PANGO_CFLAGS@ + LDFLAGS += @GNOME_LIBS@ @GL_LIBS@ @SDL_LIBS@ @GTHREAD_LIBS@ @PANGO_LIBS@ + + CC = @CC@ +@@ -23,13 +23,13 @@ + + install: libgai@LIB_END@ + mkdir -p $(DESTDIR)$(PREFIX)/include/gai +- cp gai.h $(DESTDIR)$(PREFIX)/include/gai/ ++ $(BSD_INSTALL_DATA) gai.h $(DESTDIR)$(PREFIX)/include/gai/ + mkdir -p $(DESTDIR)$(LIBDIR) +- cp libgai@LIB_END@ $(DESTDIR)$(LIBDIR)/libgai@LIB_START@.@GAI_MAJOR@.@GAI_MINOR@.@GAI_MICRO@@LIB_DARWIN@ ++ $(BSD_INSTALL_PROGRAM) libgai@LIB_END@ $(DESTDIR)$(LIBDIR)/libgai@LIB_START@.@GAI_MAJOR@.@GAI_MINOR@.@GAI_MICRO@@LIB_DARWIN@ + ln -sf libgai@LIB_START@.@GAI_MAJOR@.@GAI_MINOR@.@GAI_MICRO@@LIB_DARWIN@ $(DESTDIR)$(LIBDIR)/libgai@LIB_START@.@GAI_MAJOR@@LIB_DARWIN@ + ln -sf libgai@LIB_START@.@GAI_MAJOR@@LIB_DARWIN@ $(DESTDIR)$(LIBDIR)/libgai@LIB_END@ +- mkdir -p $(DESTDIR)$(LIBDIR)/pkgconfig +- cp ../gai.pc $(DESTDIR)$(LIBDIR)/pkgconfig/ ++ mkdir -p $(DESTDIR)$(PREFIX)/libdata/pkgconfig ++ $(BSD_INSTALL_DATA) ../gai.pc $(DESTDIR)$(PREFIX)/libdata/pkgconfig/ + uninstall: + rm -f $(DESTDIR)$(PREFIX)/include/gai/gai.h + rmdir $(DESTDIR)$(PREFIX)/include/gai diff --git a/x11-toolkits/gai/files/patch-po_Makefile.in b/x11-toolkits/gai/files/patch-po_Makefile.in new file mode 100644 index 000000000..afb7b9c46 --- /dev/null +++ b/x11-toolkits/gai/files/patch-po_Makefile.in @@ -0,0 +1,11 @@ +--- po/Makefile.in.orig Thu Oct 27 15:35:03 2005 ++++ po/Makefile.in Thu Oct 27 15:35:11 2005 +@@ -20,7 +20,7 @@ + + install: + for LANG in $(LINGUAS); do $(MSGFMT) $$LANG.po --output-file=$$LANG.mo; done +- for LANG in $(LINGUAS); do mkdir -p $(LOCALE_PREFIX)/$$LANG/LC_MESSAGES && cp $$LANG.mo $(LOCALE_PREFIX)/$$LANG/LC_MESSAGES/$(GETTEXT_PACKAGE).mo;done ++ for LANG in $(LINGUAS); do mkdir -p $(LOCALE_PREFIX)/$$LANG/LC_MESSAGES && $(BSD_INSTALL_DATA) $$LANG.mo $(LOCALE_PREFIX)/$$LANG/LC_MESSAGES/$(GETTEXT_PACKAGE).mo;done + + uninstall: + for LANG in $(LINGUAS); do rm $(LOCALE_PREFIX)/$$LANG/LC_MESSAGES/$$LANG.mo; done diff --git a/x11-toolkits/gai/pkg-descr b/x11-toolkits/gai/pkg-descr new file mode 100644 index 000000000..1b2a81e4f --- /dev/null +++ b/x11-toolkits/gai/pkg-descr @@ -0,0 +1,24 @@ +This library is intended to simplify the development and use of Dockapps, ROX +panel applets and Gnome 2 Panel Applets. With this library the programmer can +focus on what the applet shall do, not on the interface. + +What this library provides: + - Dockapp support. + - Gnome 2 Panel support. + - ROX panel support. + - Handling of all sizes of the Gnome Panel. + - Handle Gnome Panel rotation. + - Simple image file handeling via gdk_pixbuf. + - Loading and storing of configuration values and strings. + - A simple structual way of making preferences window. + - Generates images from ascii text based upon fonts. + - Support for both Gnome 2 Panel Applets, ROX panel applets and + Dockaps/wmapplets. + - Support for OpenGL applets. + - Simple interface to connect events, like mouse button clicks, joystick + events and so on. + - Easy to add support for other panels. + - Nice configure and makefile scripts that generates the needed files + for ROX and Gnome. + +WWW: http://gai.sourceforge.net/ |