Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Feb 2014 21:42:19 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r344020 - in head/astro/phoon: . files
Message-ID:  <201402122142.s1CLgJ1n004208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Wed Feb 12 21:42:19 2014
New Revision: 344020
URL: http://svnweb.freebsd.org/changeset/ports/344020
QAT: https://qat.redports.org/buildarchive/r344020/

Log:
  - Support staging
  - Repect CC
  - Respect CFLAGS
  - Strip binary

Added:
  head/astro/phoon/files/patch-Makefile   (contents, props changed)
Modified:
  head/astro/phoon/Makefile
  head/astro/phoon/files/patch-astro.h
  head/astro/phoon/files/patch-phoon.c

Modified: head/astro/phoon/Makefile
==============================================================================
--- head/astro/phoon/Makefile	Wed Feb 12 21:35:41 2014	(r344019)
+++ head/astro/phoon/Makefile	Wed Feb 12 21:42:19 2014	(r344020)
@@ -13,13 +13,7 @@ COMMENT=	Displays the phase of the moon
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}" \
-		BINDIR=${LOCALBASE}/bin \
-		MANDIR=${MANPREFIX}/man/man1
-
-NO_STAGE=	yes
-MAN1=		phoon.1
-PLIST_FILES=	bin/phoon
+PLIST_FILES=	bin/phoon man/man1/phoon.1.gz
 
 pre-patch:
 	@${REINPLACE_CMD} -e 's|gmtoff = !!!;||g' \

Added: head/astro/phoon/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/phoon/files/patch-Makefile	Wed Feb 12 21:42:19 2014	(r344020)
@@ -0,0 +1,32 @@
+--- ./Makefile.orig	2003-01-21 04:04:36.000000000 +0100
++++ ./Makefile	2014-02-12 22:39:19.404018490 +0100
+@@ -1,15 +1,15 @@
+ # Makefile for phoon
+ 
+-BINDIR =	/usr/local/bin
+-MANDIR =	/usr/local/man/man1
++BINDIR =	$(DESTDIR)$(PREFIX)/bin
++MANDIR =	$(DESTDIR)$(MANPREFIX)/man/man1
+ 
+ DEFINES =	-DOS_BSD
+ #DEFINES =	-DOS_SYSV
+ 
+-CC =		gcc
+-CFLAGS =	-O $(DEFINES)
++CC ?=		gcc
++CFLAGS +=	$(DEFINES)
+ 
+-LDFLAGS =	-s
++#LDFLAGS =	-s
+ 
+ 
+ all:		phoon
+@@ -24,7 +24,7 @@
+ astro.o:	astro.h
+ 
+ install:	all
+-	rm -f $(BINDIR)/phoon
++	strip phoon
+ 	cp phoon $(BINDIR)
+ 	rm -f $(MANDIR)/phoon.1
+ 	cp phoon.1 $(MANDIR)

Modified: head/astro/phoon/files/patch-astro.h
==============================================================================
--- head/astro/phoon/files/patch-astro.h	Wed Feb 12 21:35:41 2014	(r344019)
+++ head/astro/phoon/files/patch-astro.h	Wed Feb 12 21:42:19 2014	(r344020)
@@ -1,5 +1,5 @@
---- astro.h.orig	Sun Mar  6 22:43:59 2005
-+++ astro.h	Sun Mar  6 22:44:05 2005
+--- ./astro.h.orig	2003-01-28 01:55:32.000000000 +0100
++++ ./astro.h	2014-02-12 22:38:52.437019902 +0100
 @@ -43,4 +43,4 @@
   */
  extern double phase( double pdate, double* pphase, double* mage, double* dist, double* angdia, double* sudist, double* suangdia );

Modified: head/astro/phoon/files/patch-phoon.c
==============================================================================
--- head/astro/phoon/files/patch-phoon.c	Wed Feb 12 21:35:41 2014	(r344019)
+++ head/astro/phoon/files/patch-phoon.c	Wed Feb 12 21:42:19 2014	(r344020)
@@ -1,5 +1,5 @@
---- phoon.c.orig	Sun Mar  6 22:33:22 2005
-+++ phoon.c	Sun Mar  6 22:33:45 2005
+--- ./phoon.c.orig	2005-05-20 21:10:24.000000000 +0200
++++ ./phoon.c	2014-02-12 22:38:52.438019914 +0100
 @@ -354,7 +354,7 @@
      struct tm* tmP;
      double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;



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