Index: head/misc/gkrellweather2/Makefile =================================================================== --- head/misc/gkrellweather2/Makefile (revision 130134) +++ head/misc/gkrellweather2/Makefile (revision 130135) @@ -1,34 +1,40 @@ # New ports collection makefile for: gkrellweather2 # Date Created: 24 Nov 2002 # Whom: Jean-Yves Lefort # # $FreeBSD$ # PORTNAME= gkrellweather -PORTVERSION= 2.0.6 -PORTREVISION= 3 +PORTVERSION= 2.0.7 CATEGORIES= misc MASTER_SITES= http://kmlinux.fjfi.cvut.cz/~makovick/gkrellm/ EXTRACT_SUFX= .tgz MAINTAINER= pav@FreeBSD.org COMMENT= GKrellWeather is a weather plugin for GKrellM BUILD_DEPENDS= ${X11BASE}/include/gkrellm2/gkrellm.h:${PORTSDIR}/sysutils/gkrellm2 -RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 \ - ${X11BASE}/bin/GrabWeather:${PORTSDIR}/misc/wmweather +RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm2 USE_GMAKE= yes USE_X_PREFIX= yes ALL_TARGET= gkrellweather.so MAKE_ENV= enable_nls=1 PTHREAD_LIBS=${PTHREAD_LIBS} +.include + +# uses C99 builtin lrintf +.if ${OSVERSION} < 500000 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-lrintf +.endif + do-install: ${MKDIR} ${PREFIX}/libexec/gkrellm2/plugins ${INSTALL_DATA} ${WRKSRC}/gkrellweather.so ${PREFIX}/libexec/gkrellm2/plugins ${MKDIR} ${PREFIX}/share/locale/ru/ ${INSTALL_DATA} ${WRKSRC}/po/ru.mo ${PREFIX}/share/locale/ru/LC_MESSAGES/gkrellweather.mo + ${INSTALL_SCRIPT} ${WRKSRC}/GrabWeather ${PREFIX}/bin -.include +.include Property changes on: head/misc/gkrellweather2/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.8 \ No newline at end of property +1.9 \ No newline at end of property Index: head/misc/gkrellweather2/distinfo =================================================================== --- head/misc/gkrellweather2/distinfo (revision 130134) +++ head/misc/gkrellweather2/distinfo (revision 130135) @@ -1,2 +1,2 @@ -MD5 (gkrellweather-2.0.6.tgz) = 458125fe9276db3733a6c4b0e27eca86 -SIZE (gkrellweather-2.0.6.tgz) = 20399 +MD5 (gkrellweather-2.0.7.tgz) = 73f5ec4e950f933a5904317037d6add2 +SIZE (gkrellweather-2.0.7.tgz) = 19968 Property changes on: head/misc/gkrellweather2/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.4 \ No newline at end of property +1.5 \ No newline at end of property Index: head/misc/gkrellweather2/files/extra-patch-lrintf =================================================================== --- head/misc/gkrellweather2/files/extra-patch-lrintf (nonexistent) +++ head/misc/gkrellweather2/files/extra-patch-lrintf (revision 130135) @@ -0,0 +1,11 @@ +--- gkrellweather.c.orig Wed Mar 2 00:23:34 2005 ++++ gkrellweather.c Wed Mar 2 00:28:58 2005 +@@ -7,6 +7,8 @@ + #include + #include + ++#define lrintf(x) (int)rintf(x) ++ + #define DEFAULT_STATION_ID "YSSY" + + #define STYLE_NAME "weather" Property changes on: head/misc/gkrellweather2/files/extra-patch-lrintf ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/misc/gkrellweather2/files/patch-Makefile =================================================================== --- head/misc/gkrellweather2/files/patch-Makefile (revision 130134) +++ head/misc/gkrellweather2/files/patch-Makefile (revision 130135) @@ -1,23 +1,30 @@ ---- Makefile.orig Mon Mar 31 13:12:57 2003 -+++ Makefile Sun Jul 13 13:58:11 2003 +--- Makefile.orig Sun Feb 27 14:54:47 2005 ++++ Makefile Wed Mar 2 00:22:17 2005 @@ -1,9 +1,9 @@ PKGNAME = gkrellweather - VERSION = 2.0.6 --CFLAGS = -O2 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` + VERSION = 2.0.7 +-CFLAGS = -O2 -std=gnu99 -Wall -fPIC `pkg-config gtk+-2.0 --cflags` +CFLAGS += -Wall -fPIC `pkg-config gtk+-2.0 --cflags` LIBS = `pkg-config gtk+-2.0 --libs` LFLAGS = -shared -PREFIX = /usr/local +PREFIX ?= /usr/local LOCALEDIR := $(PREFIX)/share/locale -@@ -20,7 +20,7 @@ +@@ -14,13 +14,13 @@ + CFLAGS += -DPACKAGE="\"$(PKGNAME)\"" + export PKGNAME LOCALEDIR + +-CC = gcc ++CC ?= gcc + + OBJS = gkrellweather.o gkrellweather.so: $(OBJS) (cd po && ${MAKE} all ) - $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) -lpthread + $(CC) $(OBJS) -DVERSION=\"$(VERSION)\" -o gkrellweather.so $(LFLAGS) $(LIBS) ${PTHREAD_LIBS} clean: (cd po && ${MAKE} clean ) Property changes on: head/misc/gkrellweather2/files/patch-Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.3 \ No newline at end of property +1.4 \ No newline at end of property Index: head/misc/gkrellweather2/pkg-plist =================================================================== --- head/misc/gkrellweather2/pkg-plist (revision 130134) +++ head/misc/gkrellweather2/pkg-plist (revision 130135) @@ -1,2 +1,3 @@ +bin/GrabWeather libexec/gkrellm2/plugins/gkrellweather.so share/locale/ru/LC_MESSAGES/gkrellweather.mo Property changes on: head/misc/gkrellweather2/pkg-plist ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property