aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/hardlink/Makefile
blob: 98f5f7f10bba1651c0c5ab2ea6ea1bfa00f36366 (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: Douglas Thrift
# $FreeBSD$

PORTNAME=   hardlink
PORTVERSION=    0.2.0
CATEGORIES= sysutils
MASTER_SITES=   http://jak-linux.org/projects/hardlink/ \
        DEBIAN
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= douglas@douglasthrift.net
COMMENT=    Replace file copies using hardlinks

LICENSE=    MIT

USES=       pkgconfig

PLIST_FILES=    bin/hardlink \
        man/man1/hardlink.1.gz
WRKSRC=     ${WRKDIR}/${DISTNAME:S/_/-/}

OPTIONS_DEFINE= PCRE

OPTIONS_DEFAULT=PCRE

PORTSCOUT=  limit:(?<!~rc[0-9])$$

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=   libpcreposix.so:${PORTSDIR}/devel/pcre
.else
MAKE_ENV+=  ENABLE=
.endif

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

.include <bsd.port.mk>