aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ddate/Makefile
blob: d79e3d98173a184d82f1fc7e35e270a9e3a4eaec (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
32
33
34
35
36
37
38
39
40
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$

PORTNAME=   ddate
PORTVERSION=    0.2.1.2016062701
DISTVERSIONPREFIX=  v
PORTEPOCH=  2
CATEGORIES= misc

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Command to print the date in Discordian date format

LICENSE=    GPLv2

USE_GITHUB= yes
GH_ACCOUNT= bo0ts
GH_TAGNAME= 899ca66

OPTIONS_DEFINE= USFORMAT PRAISEBOB KILLBOB

USFORMAT_DESC=  US time format
PRAISEBOB_DESC= SubGenius slogans
KILLBOB_DESC=   Countdown to X-Day

OPTIONS_DEFAULT=KILLBOB

USFORMAT_CFLAGS=    -DUS_FORMAT=\"1\"
PRAISEBOB_CFLAGS=   -DPRAISE_BOB=\"13013\"
KILLBOB_CFLAGS=     -DKILL_BOB=\"13013\"

PLIST_FILES=    bin/ddate man/man1/ddate.1.gz

do-build:
    ${CC} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

.include <bsd.port.mk>