summaryrefslogtreecommitdiffstats
path: root/misc/amanda-perl-wrapper/Makefile
blob: 15f571ebffce695be2fed06c39afadb60ff9b94c (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
# New ports collection makefile for:	amanda-perl-wrapper
# Date created:		1 Nov 2010
# Whom:			Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	amanda-perl-wrapper
PORTVERSION=	1.01
CATEGORIES=	misc perl5
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Perl wrapper to use with Amanda (with libthr.so.* linked)

USES=		perl5
USE_PERL5=	run
SUB_FILES=	perl-amanda.c
SUB_LIST=	PREFIX=${LOCALBASE}
PLIST_FILES=	bin/perl-amanda
WRKSRC=		${WRKDIR}

do-fetch:
	@${DO_NADA}

pre-build: apply-slist

do-build:
	cd ${WRKSRC} && ${CC} -o perl-amanda perl-amanda.c

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/perl-amanda ${PREFIX}/bin/

.include <bsd.port.pre.mk>

LIBTHR!=	${LS} /lib/libthr.so.* | ${TAIL} -1
SUB_LIST+=	LIBTHR=${LIBTHR}

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