summaryrefslogtreecommitdiffstats
path: root/mail/gubby/Makefile
blob: eec918fd9ec3988ae37d862b98cfe7f9b8955f83 (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
39
40
41
42
43
44
45
46
47
48
49
# Created by: mich@freebsdcluster.org
# $FreeBSD$

PORTNAME=	gubby
PORTVERSION=	0.5.5
CATEGORIES=	mail
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	mich@FreeBSD.org
COMMENT=	Program showing where new mail has been placed

LDFLAGS+=	-lncurses
CFLAGS+=	-fno-exceptions -fno-rtti

OPTIONS_DEFINE=	DOCS

do-build:
	cd ${WRKSRC} && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/curswin.o src/curswin.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/die.o src/die.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/exists.o src/exists.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/filechange.o src/filechange.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/folder.o src/folder.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/folders.o src/folders.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/getopts.o src/getopts.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/grep.o src/grep.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/gubby.o src/gubby.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/gubbycfg.o src/gubbycfg.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/gubbyopts.o src/gubbyopts.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/guess.o src/guess.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/initcurs.o src/initcurs.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/keys.o src/keys.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/runscreen.o src/runscreen.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/screens.o src/screens.cpp && \
	${CXX} -c ${CFLAGS} -Iinclude/ -o src/versioninfo.o src/versioninfo.cpp && \
	${CXX} -s ${CFLAGS} src/curswin.o src/die.o src/exists.o src/filechange.o src/folder.o \
	src/folders.o src/getopts.o src/grep.o src/gubby.o src/gubbycfg.o src/gubbyopts.o \
	src/guess.o src/initcurs.o src/keys.o src/runscreen.o src/screens.o src/versioninfo.o \
	${LDFLAGS} -o ${PORTNAME}

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

post-install:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.TXT ${STAGEDIR}${DOCSDIR}/README

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