aboutsummaryrefslogtreecommitdiffstats
path: root/math/aamath/Makefile
blob: 57d192198056c7e5f0226b27af4e1b56e09ebfc1 (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
# New ports collection makefile for:    aamath
# Date created:     2005-06-23
# Whom:         Vsevolod Stakhov <vsevolod@highsecure.ru>
#
# $FreeBSD$
#

PORTNAME=   aamath
PORTVERSION=    0.3
PORTREVISION=   1
CATEGORIES= math textproc
MASTER_SITES=   http://fuse.superglue.se/aamath/

MAINTAINER= vsevolod@FreeBSD.org
COMMENT=    Aamath is a tool for rendering mathematical expressions to ascii art

WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST_FILES+=   bin/${PORTNAME}
MAN1=       aamath.1

MAKE_ENV+=  LDFLAGS="${LDFLAGS}"
LDFLAGS=    -lreadline

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
LIB_DEPENDS+=   readline.5:${PORTSDIR}/devel/readline
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS=    ${LOCALBASE}/lib/libreadline.so
.endif

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/aamath ${PREFIX}/bin
    @${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
.include <bsd.port.post.mk>