summaryrefslogtreecommitdiff
path: root/databases/wfb2sql/Makefile
blob: 957e0fce72d9b015a8adcb127429f1da14077e24 (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
41
# New ports collection makefile for:	wfb2sql
# Date created:		August 21st, 2003
# Whom:			Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	wfb2sql
PORTVERSION=	0.6
PORTREVISION=	1
CATEGORIES=	databases perl5
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	CIA World Fact Book to SQL Conversion Utility

BUILD_DEPENDS=	p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General
RUN_DEPENDS:=	${BUILD_DEPENDS}

NO_BUILD=	YES
USE_PERL5=	YES

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/wfb2sql ${PREFIX}/bin/wfb2sql
	@${ECHO} "bin/wfb2sql" >> ${TMPPLIST}

	${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/wfb2sqlrc ${EXAMPLESDIR}/wfb2sqlrc
	@${ECHO} "share/examples/${PORTNAME}/wfb2sqlrc" >> ${TMPPLIST}
	@${ECHO} "@dirrm share/examples/${PORTNAME}" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/wfb2sql.html ${DOCSDIR}
	@${ECHO} "share/doc/${PORTNAME}/wfb2sql.html" >> ${TMPPLIST}
	@${ECHO} "@dirrm share/doc/${PORTNAME}/" >> ${TMPPLIST}
.endif

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

.include <bsd.port.mk>