aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/scdoc/Makefile
blob: b39423befbe422271f30102e35d31c2b1f5b9df6 (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
# $FreeBSD$

PORTNAME=   scdoc
DISTVERSION=    1.10.0
CATEGORIES= textproc
MASTER_SITES=   https://git.sr.ht/~sircmpwn/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/

MAINTAINER= jbeich@FreeBSD.org
COMMENT=    Simple man page generator for POSIX systems written in C99

LICENSE=    MIT
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       gmake
MAKE_ENV=   MANDIR='$$(_INSTDIR)/man' \
        PCDIR='$$(_INSTDIR)/libdata/pkgconfig'
TEST_TARGET=    check
PLIST_FILES=    bin/${PORTNAME} \
        libdata/pkgconfig/${PORTNAME}.pc \
        man/man1/${PORTNAME}.1.gz \
        man/man5/${PORTNAME}.5.gz

post-patch:
    @${REINPLACE_CMD} '/-static/d' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -i '' -e 's,--date=,-jf "%F %T" ,' \
        ${WRKSRC}/test/preamble

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

.include <bsd.port.mk>