aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ods2/Makefile
blob: c07b7b6e0daf87cf2141c1a3e43741ae172de69d (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
# Created by: Thierry Dussuet <dussuett@wigwam.ethz.ch>
# $FreeBSD$

PORTNAME=   ods2
PORTVERSION=    1.3
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   http://www.lugs.ch/~dussuett/
DISTNAME=   ods2

MAINTAINER= pzn.unixbsd@gmail.com
COMMENT=    Utility for manipulating ODS-2 filesystems

USES=       zip
NO_WRKSUBDIR=   yes
MAKEFILE=   makefile.unix
MAKE_ARGS=  CCFLAGS="${CFLAGS}"

PLIST_FILES=    sbin/ods2
PORTDOCS=   aareadme.too aareadme.txt

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|cc |${CC} |; /-oods2/ s|vmstime\.o|& -lcompat|' \
        ${WRKSRC}/${MAKEFILE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ods2 ${STAGEDIR}${PREFIX}/sbin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>