summaryrefslogtreecommitdiff
path: root/www/mimetex/Makefile
blob: 8ae8421ed3f333d2f49daea24a7459b9c31de47f (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
# $NetBSD: Makefile,v 1.9 2019/11/04 22:09:57 rillig Exp $
#

DISTNAME=	mimetex
PKGNAME=	${DISTNAME}-1.72
CATEGORIES=	www math graphics
MASTER_SITES=	http://www.forkosh.com/
DIST_SUBDIR=	${PKGNAME_NOREV}
EXTRACT_SUFX=	.zip

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.forkosh.com/mimetex.html
COMMENT=	CGI to convert LaTeX math expression to GIF image
LICENSE=	gnu-gpl-v3

USE_LANGUAGES=	c

WRKSRC=		${WRKDIR}

INSTALLATION_DIRS=	libexec/cgi-bin

do-build:
	cd ${WRKSRC:Q} && \
	env ${MAKE_ENV} ${CC} -DAA mimetex.c gifsave.c -lm \
		-o mimetex.cgi

do-install:
	${INSTALL_PROGRAM} ${WRKSRC:Q}/mimetex.cgi ${DESTDIR}${PREFIX}/libexec/cgi-bin

.include "../../mk/bsd.pkg.mk"