aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-03-24 10:04:52 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-03-24 10:04:52 +0000
commit29da4dcb633d45734587439a145c0f1c0a41f3d5 (patch)
tree4fc84281cfdf9a1ca408ff594a7a4026c2936b4c /astro
parentc693baa62106ba33a9226d9e96ad2df389779458 (diff)
downloadports-29da4dcb633d45734587439a145c0f1c0a41f3d5.tar.gz
ports-29da4dcb633d45734587439a145c0f1c0a41f3d5.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/xmoontool/Makefile18
-rw-r--r--astro/xmoontool/distinfo6
-rw-r--r--astro/xmoontool/files/patch-Makefile15
3 files changed, 34 insertions, 5 deletions
diff --git a/astro/xmoontool/Makefile b/astro/xmoontool/Makefile
index 4b18da3d16d9..e5e9a9a94379 100644
--- a/astro/xmoontool/Makefile
+++ b/astro/xmoontool/Makefile
@@ -6,14 +6,13 @@
#
PORTNAME= xmoontool
-PORTVERSION= 3.0.2
+PORTVERSION= 3.0.3
CATEGORIES= astro
MASTER_SITES= http://www.senax.net/xmoontool/
MAINTAINER= frank@dynamical-systems.org
COMMENT= A version of John Walker's classical moontool for X11/Motif
-USE_REINPLACE= yes
USE_MOTIF= yes
USE_X_PREFIX= yes
@@ -23,6 +22,21 @@ PLIST_FILES= bin/xmoontool
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 503000 # libnova currently not available here!
+WITHOUT_LIBNOVA= yes
+.endif
+
+.if defined(WITHOUT_LIBNOVA)
+MAKE_ENV+= WITHOUT_LIBNOVA=yes
+.else
+LIB_DEPENDS+= nova:${PORTSDIR}/astro/libnova
+.endif
+
+pre-everything::
+.if !defined(WITHOUT_LIBNOVA)
+ @${ECHO_MSG} "You can disable libnova support by defining WITHOUT_LIBNOVA"
+.endif
+
pre-configure:
.if !defined(WITHOUT_DEFAULT_COLOR)
@${ECHO_MSG} "For use with monochrome displays try to set WITHOUT_DEFAULT_COLOR"
diff --git a/astro/xmoontool/distinfo b/astro/xmoontool/distinfo
index ad1314081ed6..37f04e2fe4bd 100644
--- a/astro/xmoontool/distinfo
+++ b/astro/xmoontool/distinfo
@@ -1,3 +1,3 @@
-MD5 (xmoontool-3.0.2.tar.gz) = 5556d08574f25a6098858343b702d343
-SHA256 (xmoontool-3.0.2.tar.gz) = eb5eeb4da988e62dfadcbf7189e072cb9c83b62e005130e84621a5ad487b2c8b
-SIZE (xmoontool-3.0.2.tar.gz) = 20394
+MD5 (xmoontool-3.0.3.tar.gz) = 1688d1176d197c1c4f28711e410a28e3
+SHA256 (xmoontool-3.0.3.tar.gz) = eda8312eedf86116e2b8289ce7c7e3e93ea45f621b1c13a187aa2d3885704d32
+SIZE (xmoontool-3.0.3.tar.gz) = 24354
diff --git a/astro/xmoontool/files/patch-Makefile b/astro/xmoontool/files/patch-Makefile
new file mode 100644
index 000000000000..df09066bdc47
--- /dev/null
+++ b/astro/xmoontool/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- ./Makefile.orig Fri Feb 24 23:00:24 2006
++++ ./Makefile Fri Mar 24 10:55:01 2006
+@@ -8,9 +8,9 @@
+ LOCALBASE?= /usr/local
+ X11BASE?= /usr/X11R6
+
+-CC= gcc
+-CFLAGS= -O2 -Wall
+-LDFLAGS= -lXm -lXt -lX11 -lm
++#CC= gcc
++#CFLAGS= -O2 -Wall
++LDFLAGS+= -lXm -lXt -lX11 -lm
+ DEFINES?= -DDEFAULT_COLOR
+ ALL_CFLAGS= $(CFLAGS) $(DEFINES) -I$(X11BASE)/include -L$(X11BASE)/lib
+