summaryrefslogtreecommitdiffstats
path: root/sysutils/tty-clock/Makefile
blob: 252eaa9fcd31286a6e3f226718e3ad773aef2ac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Eric Freeman <freebsdports@chillibear.com>
# $FreeBSD$

PORTNAME=	tty-clock
PORTVERSION=	2.0.0
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	GHL

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Terminal based clock

LICENSE=	BSD3CLAUSE

USE_GITHUB=	yes
GH_ACCOUNT=	xorg62
GH_TAGNAME=	${GH_COMMIT}
GH_COMMIT=	a82fd71

USES=		ncurses
ALL_TARGET=	tty-clock

PLIST_FILES=	bin/tty-clock

post-patch:
	@${REINPLACE_CMD} -e \
		'/^CC/s| =| ?=| ; \
		 s|/usr/local|$${PREFIX}| ; \
		 /^CFLAGS/s| =| +=| ; \
		 s|-Wall -g|-Wall| ; \
		 /^LDFLAGS/s| =| +=| ; \
		 /@echo /s|^|#| ; \
		 s|@$${CC} |$${CC} | ; \
		 s|@cp |$${BSD_INSTALL_PROGRAM} | ; \
		 s| $${INSTALLPATH}| $${DESTDIR}$${INSTALLPATH}| ; \
		 /@chmod /s|^|#|' ${WRKSRC}/Makefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud