summaryrefslogtreecommitdiff
path: root/sysutils/tty-clock/Makefile
blob: b1697314ea07d0d1ae59ce9bdd95145466bb26c9 (plain) (blame)
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
# Created by: Eric Freeman <freebsdports@chillibear.com>
# $FreeBSD$

PORTNAME=		tty-clock
PORTVERSION=		2.0.0
PORTREVISION=		1
CATEGORIES=		sysutils
MASTER_SITES=		http://github.com/xorg62/${PORTNAME}/tarball/
DISTNAME=		a82fd71
EXTRACT_SUFX=		# none

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

FETCH_ARGS=		-pRr
WRKSRC=			"${WRKDIR}/xorg62-${PORTNAME}-${DISTNAME}"
PLIST_FILES=		bin/tty-clock

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS \+=|' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|LDFLAGS =|LDFLAGS \+=|' ${WRKSRC}/Makefile

do-build:
	cd ${WRKSRC} && ${MAKE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tty-clock ${PREFIX}/bin

.include <bsd.port.mk>