diff --git a/astro/phoon/Makefile b/astro/phoon/Makefile index 5e1fe3c0fdeb..14c441aff443 100644 --- a/astro/phoon/Makefile +++ b/astro/phoon/Makefile @@ -1,20 +1,19 @@ PORTNAME= phoon PORTVERSION= 2014 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= http://www.acme.com/software/phoon/ PKGNAMESUFFIX= _14Aug DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}${PORTVERSION} MAINTAINER= xride@FreeBSD.org COMMENT= Displays the phase of the moon WWW= https://www.acme.com/software/phoon/ -WRKSRC= ${WRKDIR}/${PORTNAME} +LICENSE= BSD2CLAUSE -PLIST_FILES= bin/phoon man/man1/phoon.1.gz +WRKSRC= ${WRKDIR}/${PORTNAME} -pre-patch: - @${REINPLACE_CMD} -e 's|gmtoff = !!!;||g' \ - ${WRKSRC}/date_parse.c +PLIST_FILES= bin/phoon share/man/man1/phoon.1.gz .include diff --git a/astro/phoon/files/patch-Makefile b/astro/phoon/files/patch-Makefile index 86cbfe277088..0512ee432699 100644 --- a/astro/phoon/files/patch-Makefile +++ b/astro/phoon/files/patch-Makefile @@ -1,33 +1,33 @@ --- Makefile.orig 2014-08-11 19:14:07 UTC +++ Makefile @@ -1,17 +1,14 @@ # Makefile for phoon -BINDIR = /usr/local/bin -MANDIR = /usr/local/man/man1 +BINDIR = $(DESTDIR)$(PREFIX)/bin -+MANDIR = $(DESTDIR)$(MANPREFIX)/man/man1 ++MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1 DEFINES = -DOS_BSD #DEFINES = -DOS_SYSV -CC = cc -CFLAGS = -O $(DEFINES) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long +CC ?= cc +CFLAGS += $(DEFINES) -ansi -pedantic -Wall -Wno-long-long -Wmissing-prototypes -Wstrict-prototypes -LDFLAGS = -s - - all: phoon phoon: phoon.o date_parse.o astro.o -@@ -24,7 +21,7 @@ date_parse.o: date_parse.h +@@ -24,7 +21,7 @@ install: all astro.o: astro.h install: all - rm -f $(BINDIR)/phoon + strip phoon cp phoon $(BINDIR) rm -f $(MANDIR)/phoon.1 cp phoon.1 $(MANDIR)