Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2006 21:54:30 GMT
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        frank@dynamical-systems.org, thierry@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, thierry@FreeBSD.org
Subject:   Re: ports/93972: Update port: astro/xmoontool to 3.0.3
Message-ID:  <200603222154.k2MLsUZJ038943@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: Update port: astro/xmoontool to 3.0.3

State-Changed-From-To: open->feedback
State-Changed-By: thierry
State-Changed-When: Wed Mar 22 21:50:17 UTC 2006
State-Changed-Why: 

This port does not respect CFLAGS, CC nor PREFIX; what about the
following patch? (Since I'm there, reorganize Makefile)

--- xmoontool.diff begins here ---
diff -urN astro/xmoontool.orig/Makefile astro/xmoontool/Makefile
--- astro/xmoontool.orig/Makefile	Tue Jan 31 20:44:26 2006
+++ astro/xmoontool/Makefile	Wed Mar 22 22:33:50 2006
@@ -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
 
@@ -22,6 +21,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)
diff -urN astro/xmoontool.orig/distinfo astro/xmoontool/distinfo
--- astro/xmoontool.orig/distinfo	Tue Jan 31 20:44:26 2006
+++ astro/xmoontool/distinfo	Wed Mar 22 22:29:21 2006
@@ -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 -urN astro/xmoontool.orig/files/patch-Makefile astro/xmoontool/files/patch-Makefile
--- astro/xmoontool.orig/files/patch-Makefile	Thu Jan  1 01:00:00 1970
+++ astro/xmoontool/files/patch-Makefile	Wed Mar 22 22:42:12 2006
@@ -0,0 +1,22 @@
+--- Makefile.orig	Fri Feb 24 23:00:24 2006
++++ Makefile	Wed Mar 22 22:41:40 2006
+@@ -8,14 +8,14 @@
+ 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
+ 
+-bindir= 	$(X11BASE)/bin
+-mandir= 	$(X11BASE)/man
++bindir= 	$(PREFIX)/bin
++mandir= 	$(PREFIX)/man
+ mandir1= 	$(mandir)/man1
+ catdir1= 	$(mandir)/cat1
+ 
--- xmoontool.diff ends here ---



Responsible-Changed-From-To: freebsd-ports-bugs->thierry
Responsible-Changed-By: thierry
Responsible-Changed-When: Wed Mar 22 21:50:17 UTC 2006
Responsible-Changed-Why: 

Take it.


http://www.freebsd.org/cgi/query-pr.cgi?pr=93972



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603222154.k2MLsUZJ038943>