summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-06-28 02:55:40 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-06-28 02:55:40 +0000
commitd7e3ca045a91666928283622ceebf7a1fb041057 (patch)
tree0b046d2ecc5629768e52e1e544668b7ae84dabea /astro
parentActually install the man page. (diff)
First import of port version 0.3 for a moon clock plugin for Gkrellm
PR: 28429 Submitted by: Patrick Li <pat@databits.net>
Notes
Notes: svn path=/head/; revision=44516
Diffstat (limited to 'astro')
-rw-r--r--astro/Makefile1
-rw-r--r--astro/gkrellmoon/Makefile32
-rw-r--r--astro/gkrellmoon/distinfo1
-rw-r--r--astro/gkrellmoon/files/patch-Makefile32
-rw-r--r--astro/gkrellmoon/pkg-comment1
-rw-r--r--astro/gkrellmoon/pkg-descr7
-rw-r--r--astro/gkrellmoon/pkg-plist3
7 files changed, 77 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index 7d468d001112..5482f3358820 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -4,6 +4,7 @@
SUBDIR += SETIsupport
SUBDIR += dgpsip
SUBDIR += ephem
+ SUBDIR += gkrellmoon
SUBDIR += glunarclock
SUBDIR += jday
SUBDIR += ksetiwatch
diff --git a/astro/gkrellmoon/Makefile b/astro/gkrellmoon/Makefile
new file mode 100644
index 000000000000..39ab02b89b5e
--- /dev/null
+++ b/astro/gkrellmoon/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: gkrellmoon
+# Date Created: Tue Jun 26 18:04:37 EDT 2001
+# Whom: Patrick Li <pat@databits.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gkrellmoon
+PORTVERSION= 0.3
+CATEGORIES= astro
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gkrellmoon
+
+MAINTAINER= pat@databits.net
+
+BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm
+RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm
+
+USE_X_PREFIX= yes
+USE_IMLIB= yes
+MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ THREAD_CFLAGS="${PTHREAD_CFLAGS}"
+ALL_TARGET= ${PORTNAME}.so
+
+post-install:
+.ifndef(NOPORTDOCS)
+ @${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
+ ${PREFIX}/share/doc/${PORTNAME}
+ @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}
+.endif #NOPORTDOCS
+
+.include <bsd.port.mk>
diff --git a/astro/gkrellmoon/distinfo b/astro/gkrellmoon/distinfo
new file mode 100644
index 000000000000..f77ba6ff5032
--- /dev/null
+++ b/astro/gkrellmoon/distinfo
@@ -0,0 +1 @@
+MD5 (gkrellmoon-0.3.tar.gz) = a9b9a66c01178c63f1ec180ca87d0c61
diff --git a/astro/gkrellmoon/files/patch-Makefile b/astro/gkrellmoon/files/patch-Makefile
new file mode 100644
index 000000000000..a6f25443410a
--- /dev/null
+++ b/astro/gkrellmoon/files/patch-Makefile
@@ -0,0 +1,32 @@
+--- Makefile.orig Wed Apr 11 19:46:01 2001
++++ Makefile Wed Jun 27 23:46:30 2001
+@@ -1,17 +1,16 @@
+-GTK_INCLUDE = `gtk-config --cflags`
+-GTK_LIB = `gtk-config --libs`
++GTK_INCLUDE = `$(GTK_CONFIG) --cflags`
++GTK_LIB = `$(GTK_CONFIG) --libs`
+
+ IMLIB_INCLUDE = `imlib-config --cflags-gdk`
+ IMLIB_LIB = `imlib-config --libs-gdk`
+-THREAD_LIB = -lpthread
+-INSTALLDIR = /usr/share/gkrellm/plugins
++INSTALLDIR = $(PREFIX)/libexec/gkrellm/plugins
+
+
+-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE)
+-LIBS = $(GTK_LIB) $(IMLIB_LIB) $(THREAD_LIB)
++FLAGS = -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) ${PTHREAD_CFLAGS}
++LIBS = $(GTK_LIB) $(IMLIB_LIB) ${PTHREAD_LIBS}
+ LFLAGS = -shared
+
+-CC = gcc $(CFLAGS) $(FLAGS)
++CC += $(CFLAGS) $(FLAGS)
+
+ OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o
+
+@@ -26,4 +25,4 @@
+ # %.o: %.c
+
+ install: gkrellmoon.so
+- sudo install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)
++ $(BSD_INSTALL_DATA) gkrellmoon.so $(INSTALLDIR)
diff --git a/astro/gkrellmoon/pkg-comment b/astro/gkrellmoon/pkg-comment
new file mode 100644
index 000000000000..2c52d4fcbde7
--- /dev/null
+++ b/astro/gkrellmoon/pkg-comment
@@ -0,0 +1 @@
+A moon clock plugin for Gkrellm
diff --git a/astro/gkrellmoon/pkg-descr b/astro/gkrellmoon/pkg-descr
new file mode 100644
index 000000000000..f11420fcb56e
--- /dev/null
+++ b/astro/gkrellmoon/pkg-descr
@@ -0,0 +1,7 @@
+gkrellmoon is a moon clock plugin for Gkrellm. This plugin is based
+upon the glunarclock and wmMoonClock applications.
+
+WWW: http://gkrellmoon.sourceforge.net/
+Author: Dale P. Smith <dsmith@altustech.com>
+
+- Patrick Li <pat@databits.net>
diff --git a/astro/gkrellmoon/pkg-plist b/astro/gkrellmoon/pkg-plist
new file mode 100644
index 000000000000..e0b3e8dd4274
--- /dev/null
+++ b/astro/gkrellmoon/pkg-plist
@@ -0,0 +1,3 @@
+libexec/gkrellm/plugins/gkrellmoon.so
+%%PORTDOCS%%share/doc/gkrellmoon/README
+%%PORTDOCS%%@dirrm share/doc/gkrellmoon