aboutsummaryrefslogtreecommitdiff
path: root/x11/fireflies
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-05-07 17:47:32 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-05-07 17:47:32 +0000
commit1dd678973ec1785e7da0ef0d1b05a76272d7f272 (patch)
treea4bfcc725e98dc4f63ab3822fb9abc4a86f9096d /x11/fireflies
parent780ce9b801617e0c1215422763f3478725db2927 (diff)
downloadports-1dd678973ec1785e7da0ef0d1b05a76272d7f272.tar.gz
ports-1dd678973ec1785e7da0ef0d1b05a76272d7f272.zip
Notes
Diffstat (limited to 'x11/fireflies')
-rw-r--r--x11/fireflies/Makefile29
-rw-r--r--x11/fireflies/distinfo3
-rw-r--r--x11/fireflies/files/patch-Make.include.in13
-rw-r--r--x11/fireflies/files/patch-Makefile25
-rw-r--r--x11/fireflies/files/patch-src-main.cc22
-rw-r--r--x11/fireflies/pkg-descr3
-rw-r--r--x11/fireflies/pkg-plist5
7 files changed, 100 insertions, 0 deletions
diff --git a/x11/fireflies/Makefile b/x11/fireflies/Makefile
new file mode 100644
index 000000000000..64e411acd01c
--- /dev/null
+++ b/x11/fireflies/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: fireflies
+# Date created: 11 Feb 2006
+# Whom: UMENO Takashi <umeno@rr.iij4u.or.jp>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fireflies
+PORTVERSION= 2.07
+CATEGORIES= x11
+MASTER_SITES= http://somewhere.fscked.org/fireflies/
+
+MAINTAINER= umeno@rr.iij4u.or.jp
+COMMENT= Fireflies is a extention of xscreensaver
+
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_GL= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include/GL" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+CONFIGURE_ARGS= --with-bindir=${X11BASE}/bin/xscreensaver-hacks --with-confdir=${X11BASE}/share/xscreensaver/config
+PLIST_SUB= VERSION=${PORTVERSION}
+
+post-extract:
+ (cd ${WRKSRC}; ${TAR} zxvpf libgfx-1.0.1.tar.gz)
+
+.include <bsd.port.mk>
diff --git a/x11/fireflies/distinfo b/x11/fireflies/distinfo
new file mode 100644
index 000000000000..a46dd1ad8b20
--- /dev/null
+++ b/x11/fireflies/distinfo
@@ -0,0 +1,3 @@
+MD5 (fireflies-2.07.tar.gz) = 212b644a939f37db3bc92daea7957c5a
+SHA256 (fireflies-2.07.tar.gz) = e215d5306340aed25a103bd6af34b6d3ef0d9f2628c56d3a67b2eb4a9f19a648
+SIZE (fireflies-2.07.tar.gz) = 199917
diff --git a/x11/fireflies/files/patch-Make.include.in b/x11/fireflies/files/patch-Make.include.in
new file mode 100644
index 000000000000..9369f93aefad
--- /dev/null
+++ b/x11/fireflies/files/patch-Make.include.in
@@ -0,0 +1,13 @@
+--- Make.include.in.orig Thu Apr 17 14:02:52 2003
++++ Make.include.in Sat Feb 11 15:17:29 2006
+@@ -5,8 +5,8 @@
+ GL_LIBS = @GL_LIBS@
+ OPT_LIBS = @OPT_LIBS@
+
+-CFLAGS = -Wall -I../libgfx/include/ $(SDL_CFLAGS) @CFLAGS@
+-LIBS = ../libgfx/src/libgfx.a $(GL_LIBS) $(SDL_LIBS) $(OPT_LIBS) @LIBS@
++CFLAGS = -Wall -I$(X11BASE)/include -I../libgfx/include/ $(SDL_CFLAGS) @CFLAGS@
++LIBS = ../libgfx/src/libgfx.a $(SDL_LIBS) $(OPT_LIBS) -L$(X11BASE)/lib $(GL_LIBS) @LIBS@
+
+ OBJECTS = arrow.o bait.o firefly.o scene.o tail.o utils.o modes.o @OPT_OBJS@
+ PROGRAM = @PROGRAM@
diff --git a/x11/fireflies/files/patch-Makefile b/x11/fireflies/files/patch-Makefile
new file mode 100644
index 000000000000..91be8db140be
--- /dev/null
+++ b/x11/fireflies/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile.orig Tue May 6 16:00:40 2003
++++ Makefile Sat Feb 11 14:38:36 2006
+@@ -21,18 +21,17 @@
+ win32/
+
+ all: libgfx/src/libgfx.a
+- cd src && make
++ cd src && ${MAKE}
+
+ libgfx/src/libgfx.a:
+- gunzip -c libgfx-1.0.1.tar.gz | tar x
+- cd libgfx && ./configure && cd src && make
++ cd libgfx && ./configure && cd src && ${MAKE}
+
+ install: all
+ sh ./installit $(DESTDIR)
+
+ clean:
+- make -C src clean
+- make -C win32 clean
++ ${MAKE} -C src clean
++ ${MAKE} -C win32 clean
+
+ dist:
+ rm -rf fireflies-$(VERSION)
diff --git a/x11/fireflies/files/patch-src-main.cc b/x11/fireflies/files/patch-src-main.cc
new file mode 100644
index 000000000000..ac5a0404043b
--- /dev/null
+++ b/x11/fireflies/files/patch-src-main.cc
@@ -0,0 +1,22 @@
+--- src/main.cc.orig Tue Jun 24 05:55:04 2003
++++ src/main.cc Wed Feb 15 02:32:39 2006
+@@ -15,8 +15,10 @@
+ #ifdef WIN32
+ #include <windows.h>
+ #else
++#ifdef HAVE_ARGP_H
+ #include <argp.h>
+ #endif
++#endif
+
+ CanvasBase *canvas;
+ Scene scene;
+@@ -26,7 +28,7 @@
+ int mspf = 1000/30;
+ bool full_screen = false;
+
+-#ifdef WIN32
++#if defined(WIN32) || !defined (HAVE_ARGP_H)
+ // mingw doesn't have argp. implement half-assed version
+
+ #define OPTION_HIDDEN 1
diff --git a/x11/fireflies/pkg-descr b/x11/fireflies/pkg-descr
new file mode 100644
index 000000000000..2c67d97a6fbc
--- /dev/null
+++ b/x11/fireflies/pkg-descr
@@ -0,0 +1,3 @@
+fireflies is a extention of xscreensaver.
+
+WWW: http://somewhere.fscked.org/fireflies/
diff --git a/x11/fireflies/pkg-plist b/x11/fireflies/pkg-plist
new file mode 100644
index 000000000000..731f65616508
--- /dev/null
+++ b/x11/fireflies/pkg-plist
@@ -0,0 +1,5 @@
+bin/xscreensaver-hacks/fireflies
+share/xscreensaver/config/fireflies.xml
+@dirrmtry share/xscreensaver/config
+@dirrmtry share/xscreensaver
+@dirrmtry bin/xscreensaver-hacks