aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pspg/Makefile
blob: f11219e625bdad8b7366964656d99fc3a4cc3965 (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
# $FreeBSD$

PORTNAME=   pspg
DISTVERSION=    1.0.0
CATEGORIES= databases

MAINTAINER= dg@syrec.org
COMMENT=    Tabular data pager designed to be used with psql

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

USES=       autoreconf ncurses pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= okbob
GNU_CONFIGURE=  yes

CFLAGS+=    -D_WITH_GETLINE # enable the getline prototype
PLIST_FILES=    bin/pspg
PORTDOCS=   README.md

SUB_FILES=  pkg-message

OPTIONS_DEFINE= DOCS

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pspg

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>