head	1.21;
access;
symbols
	RELEASE_8_3_0:1.18
	RELEASE_9_0_0:1.17
	RELEASE_7_4_0:1.14
	RELEASE_8_2_0:1.14
	RELEASE_6_EOL:1.14
	RELEASE_8_1_0:1.14
	RELEASE_7_3_0:1.14
	RELEASE_8_0_0:1.14
	RELEASE_7_2_0:1.12
	RELEASE_7_1_0:1.11
	RELEASE_6_4_0:1.11
	RELEASE_5_EOL:1.11
	RELEASE_7_0_0:1.10
	RELEASE_6_3_0:1.10
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.10
	RELEASE_6_2_0:1.6;
locks; strict;
comment	@# @;


1.21
date	2012.11.17.06.02.39;	author svnexp;	state Exp;
branches;
next	1.20;

1.20
date	2012.09.17.20.47.33;	author nivit;	state Exp;
branches;
next	1.19;

1.19
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.18;

1.18
date	2012.01.01.16.47.37;	author ohauer;	state Exp;
branches;
next	1.17;

1.17
date	2011.08.20.17.27.38;	author ohauer;	state Exp;
branches;
next	1.16;

1.16
date	2011.02.22.14.33.46;	author tota;	state Exp;
branches;
next	1.15;

1.15
date	2011.02.22.00.25.47;	author ohauer;	state Exp;
branches;
next	1.14;

1.14
date	2009.05.08.15.31.24;	author pgollucci;	state Exp;
branches;
next	1.13;

1.13
date	2009.05.08.15.25.54;	author pgollucci;	state Exp;
branches;
next	1.12;

1.12
date	2009.01.14.13.08.27;	author nivit;	state Exp;
branches;
next	1.11;

1.11
date	2008.01.06.17.10.23;	author nivit;	state Exp;
branches;
next	1.10;

1.10
date	2007.01.07.22.12.33;	author nivit;	state Exp;
branches;
next	1.9;

1.9
date	2006.12.10.01.21.51;	author nivit;	state Exp;
branches;
next	1.8;

1.8
date	2006.11.21.20.09.23;	author miwi;	state Exp;
branches;
next	1.7;

1.7
date	2006.11.08.17.39.37;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2006.09.30.08.06.19;	author miwi;	state Exp;
branches;
next	1.5;

1.5
date	2006.08.01.16.10.04;	author clsung;	state Exp;
branches;
next	1.4;

1.4
date	2006.07.13.20.19.43;	author itetcu;	state Exp;
branches;
next	1.3;

1.3
date	2006.05.30.20.10.00;	author aaron;	state Exp;
branches;
next	1.2;

1.2
date	2006.05.11.21.20.22;	author aaron;	state Exp;
branches;
next	1.1;

1.1
date	2006.05.05.06.30.32;	author aaron;	state Exp;
branches;
next	;


desc
@@


1.21
log
@Switch exporter over
@
text
@# Created by: Nicola Vitale <nivit@@email.it>
# $FreeBSD: head/www/mimetex/Makefile 304422 2012-09-17 20:47:33Z nivit $

PORTNAME=	mimetex
PORTVERSION=	20120331.1.74
PORTREVISION=	0
CATEGORIES=	www math
MASTER_SITES=	LOCAL/nivit/${PORTNAME}/${PORTVERSION}/ \
		http://www.forkosh.com/
DISTNAME=	${PORTNAME}
DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	A CGI script that lets you embed LaTeX math in your HTML pages

LICENSE=	GPLv3

NO_WRKSUBDIR=	yes
USE_ZIP=	yes

OPTIONS_DEFINE=	ANTIALIASING DOCS STATIC
OPTIONS_DEFAULT=	ANTIALIASING
DESC_ANTIALIASING=	Use image format with anti-aliasing
DESC_STATIC=	Possible use of mimetex on another machine

PORTDOCS=	${PORTNAME}.html

.include <bsd.port.options.mk>
# usefull if you run mimetex on another machine
.if ${PORT_OPTIONS:MSTATIC}
STATIC_MIMETEX=	-static
.endif
# anti-aliasing no/yes
.if ${PORT_OPTIONS:MANTIALIASING}
IMAGES_TYPE=	-DAA
.else
IMAGES_TYPE=	-DGIF
.endif
# other options (see mimetex.c or online documentation)
# example: make install USER_OPTIONS='-DCACHEPATH=\"/tmp\" -DDISPLAYSIZE=10'
USER_OPTIONS?=

do-build:
	cd ${WRKDIR};\
	${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o mimetex.cgi
do-install:
	${MKDIR} ${WWWDIR}/cgi-bin
	${INSTALL_PROGRAM} ${WRKSRC}/mimetex.cgi ${WWWDIR}/cgi-bin/mimetex.cgi
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>
@


1.20
log
@SVN rev 304422 on 2012-09-17 20:47:33Z by nivit

- Update to 20120331.1.74
- Adopt new header of Makefile
- Replace dead download site with LOCAL/nivit
- Add LICENSE (GPLv3)
- Convert to new options framework
- Instead of setting USE_APACHE_RUN [1], remove apache
  completely from run dependencies, because mimetex runs
  on any web server that supports CGI
- Remove files/pkg-message.in
- Replace TAB character with one space after WWW:, and
  remove Author entry in pkg-descr

Changes&News:	http://goo.gl/iCQON
BuildLog:	http://goo.gl/8P9Hu

PR:	ports/171482  [1]
Submitted by:	ohauer
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.19
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d1 1
a1 4
# New ports collection makefile for:	mimetex
# Date created:		2006-02-03
# Whom:			Nicola Vitale	<nivit@@email.it>
#
a2 1
#
d5 2
a6 2
PORTVERSION=	20080906.1.70
PORTREVISION=	4
d8 1
a8 1
MASTER_SITES=	http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/ \
d16 2
a18 1
USE_APACHE=	22+
d21 4
a24 13
.include <bsd.port.pre.mk>

FETCH_ARGS=	-rR	# see PR bin/76134
LN_OPTS=	-sf

CGI_BIN=	${WWWDIR}/cgi-bin
CGI_PRG=	${PORTNAME}.cgi
WWW_DIR=	${WWWDIR}/data

PLIST_DIRSTRY+=	www/cgi-bin www/data

PLIST_SUB=	CGI_BIN="${CGI_BIN:S,^${PREFIX}/,,}" \
		WWW_DIR="${WWW_DIR:S,^${PREFIX}/,,}"
d28 1
a28 3
SUB_FILES=	pkg-message
SUB_LIST=	PORTDOCS=${PORTDOCS} WWW_DIR=${WWW_DIR}

d30 1
a30 1
.if defined(WITH_STATIC)
d34 3
a36 1
.if defined(WITHOUT_ANTIALIASING)
a37 2
.else
IMAGES_TYPE=	-DAA
d45 1
a45 2
	${CC} ${CFLAGS} ${STATIC_MIMETEX} ${IMAGES_TYPE} ${USER_OPTIONS} mimetex.c gifsave.c -lm -o ${CGI_PRG}

d47 3
a49 3
	${MKDIR} ${CGI_BIN}
	${INSTALL_PROGRAM} ${WRKSRC}/${CGI_PRG} ${CGI_BIN}/${CGI_PRG}
.if !defined(NOPORTDOCS)
a51 5
	${MKDIR} ${WWW_DIR}
	${LN} ${LN_OPTS} ${DOCSDIR}/${PORTDOCS} ${WWW_DIR}/index.html

post-install:
	${CAT} ${PKGMESSAGE}
d54 1
a54 1
.include <bsd.port.post.mk>
@


1.18
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d21 1
a21 1
USE_APACHE=	20+
@


1.17
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d21 1
a21 1
USE_APACHE=	13+
a32 1
.if ${APACHE_VERSION} > 13
a33 1
.endif
@


1.16
log
@- Use WWWDIR
- Use FETCH_ARGS instead of FETCH_CMD
- Move pkg-message to files/pkg-message.in
- Fix pkg-plist
- Bump PORTREVISION

RP:	ports/153598
Submitted by:	tota (myself)
Approved by:	maintainer timeout (> 7 weeks)
@
text
@d10 1
a10 1
PORTREVISION=	3
d21 1
a21 1
USE_APACHE=	1.3+
@


1.15
log
@ - fix pkg-plist if installed with apache20 / apache22
 - remove MD5 from distinfo

PR:		ports/154759
Submitted by:	myself
Approved by:	maintainer timeout
@
text
@d10 1
a10 1
PORTREVISION=	2
d26 1
a26 1
FETCH_CMD=	/usr/bin/fetch -rR	# see PR bin/76134
d29 1
a29 1
CGI_BIN=	${PREFIX}/www/cgi-bin/
d31 1
a31 1
WWW_DIR=	${PREFIX}/www/data/mimetex/
d37 8
d68 1
a68 1
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.html ${DOCSDIR}
d70 1
a70 1
	${LN} ${LN_OPTS} ${DOCSDIR}/${PORTNAME}.html ${WWW_DIR}/index.html
@


1.14
log
@- Fix pkg-plist from previous commit

Reported by:    QAT
@
text
@d24 2
d33 4
d68 1
a68 1
.include <bsd.port.mk>
@


1.13
log
@- Fix pkg-plist
- USE_APACHE=yes is deprecated
- Bump PORTREVISION

PR:             ports/133627
Approved by:    maintainer timeout (30 days)
Submitted by:   me
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.12
log
@- Update to 20080906.1.70
@
text
@d10 1
d21 1
a21 1
USE_APACHE=	yes
@


1.11
log
@- Update to 20071005.1.64
@
text
@d9 1
a9 1
PORTVERSION=	20071005.1.64
a60 1

@


1.10
log
@- Updated to 20061129.1.64

Approved by:	alexbl (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	20061129.1.64
a55 1
.endif
d59 2
@


1.9
log
@- Updated email address in my ports

Approved by:	alexbl (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	20061119.1.64
@


1.8
log
@- Update to 20061119.1.64 [1]

Submitted by:	pointyhat via kris
                nivit@@email.it (Nicola Vitale) (maintainer) [1]
@
text
@d16 1
a16 1
MAINTAINER=	nivit@@email.it
@


1.7
log
@- Update to 20061028.1.64

PR:		ports/105285
Submitted by:	Nicola Vitale <nivit@@email.it> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	20061028.1.64
d11 2
a12 2
MASTER_SITES=	http://www.forkosh.com/ \
		http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/
@


1.6
log
@- Update to 20060925.1.64

PR:		ports/103773
Submitted by:	nivit@@email.it (Nicola Vitale) (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	20060925.1.64
@


1.5
log
@- - Update to 20060727.1.64

PR:		ports/101186
Submitted by:	maintainer (Nicola Vitale)
@
text
@d9 1
a9 1
PORTVERSION=	20060727.1.64
@


1.4
log
@Update to 20060710.1.60

PR:		ports/100200
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	20060710.1.60
d40 1
a40 1
# other options (see mimetex.c)
@


1.3
log
@- Add WITH_STATIC knob

PR:		ports/97952
Submitted by:	Nicola Vitale
Reviewed by:	aaron
Approved by:	tobez
@
text
@d9 1
a9 2
PORTVERSION=	1.60
PORTREVISION=	1
d34 9
d46 1
a46 1
	${CC} ${CFLAGS} ${STATIC_MIMETEX} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG}
@


1.2
log
@- Fix size mismatch

PR:		97137
Submitted by:	Nicola Vitale <nivit@@email.it>
Reviewed by:	aaron
Approved by:	tobez (implicit)
@
text
@d31 5
d38 1
a38 1
	${CC} ${CFLAGS} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG}
@


1.1
log
@Add mimetex 1.60, a CGI script that lets you embed LaTeX math in your
HTML pages.

PR:		ports/92783
Submitted by:	Nicola Vitale	<nivit@@email.it>
Approved by:	tobez
@
text
@d10 1
@

