aboutsummaryrefslogtreecommitdiff
path: root/textproc/csv2latex/Makefile
blob: 13278a323b5a9227889710de998405a10e98ebd8 (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
# ex:ts=8
# Ports collection makefile for:	csv2latex
# Date created:			May 19, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	csv2latex
PORTVERSION=	0.14
PORTEPOCH=	1
CATEGORIES=	textproc converters
MASTER_SITES=	http://brouits.free.fr/csv2latex/

MAINTAINER=	wenheping@gmail.com
COMMENT=	Converts a well formed csv file to a LaTeX document

PLIST_FILES=	bin/csv2latex

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.if ( defined(WITH_MAN) &&  !defined(NO_INSTALL_MANPAGES) )
BUILD_DEPENDS +=	docbook-to-man:${PORTSDIR}/textproc/docbook-to-man
MAN1=	${PORTNAME}.1

post-build:
	docbook-to-man ${WRKSRC}/${PORTNAME}.sgml > ${WRKSRC}/${MAN1}

post-install:
	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1

.endif

.include <bsd.port.mk>