summaryrefslogtreecommitdiffstats
path: root/print/envelope/Makefile
blob: 388c04bd74d76918ef2a3244d6a6a6243ad5ad30 (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
41
42
43
44
45
46
47
# ex:ts=8
#
# New ports collection makefile for:	envelope
# Date created:		2002/03/24
# Whom:			Alan Eldridge ports@geeksrus.net
#
# $FreeBSD$
#

PORTNAME=	envelope
PORTVERSION=	1.0.0
CATEGORIES=	print
MASTER_SITES=	http://freefall.homeip.net/code/envelope/
DISTNAME=	${PORTNAME}_${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@geeksrus.net

USE_REINPLACE=	yes
NO_BUILD=	yes
USE_PERL5=	yes
NO_WRKSUBDIR=	yes

PLIST_SUB+=	DOCSDIR=${DOCSDIR:S@^${PREFIX}/@@}
PLIST_SUB+=	EXAMPLESDIR=${EXAMPLESDIR:S@^${PREFIX}/@@}

post-patch:
	@${REINPLACE_CMD} -e 's@/usr/bin/perl@${PERL}@' ${WRKDIR}/envelope

do-install:
	@${INSTALL_SCRIPT} ${WRKDIR}/envelope ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/config
	@cd ${WRKDIR}; ${INSTALL_DATA} samplerc INSTALL ReadMe ${DOCSDIR}
	@cd ${WRKDIR}/examples; \
	${INSTALL_DATA} normal returnaddress shipping_label \
		simple with_config with_font_info with_options \
		${EXAMPLESDIR}
	@cd ${WRKDIR}/examples; ${INSTALL_DATA} config/* ${EXAMPLESDIR}/config
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>

#EOF
OpenPOWER on IntegriCloud