From 0da57b1eba593a5f5655922031c324c4a590e607 Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Tue, 30 May 2006 20:10:00 +0000 Subject: - Add WITH_STATIC knob PR: ports/97952 Submitted by: Nicola Vitale Reviewed by: aaron Approved by: tobez --- www/mimetex/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'www/mimetex') diff --git a/www/mimetex/Makefile b/www/mimetex/Makefile index e561f94821ae..0df71baaaa91 100644 --- a/www/mimetex/Makefile +++ b/www/mimetex/Makefile @@ -28,9 +28,14 @@ CGI_BIN= ${PREFIX}/www/cgi-bin/ CGI_PRG= ${PORTNAME}.cgi WWW_DIR= ${PREFIX}/www/data/mimetex/ +# usefull if you run mimetex on another machine +.if defined(WITH_STATIC) +STATIC_MIMETEX= -static +.endif + do-build: cd ${WRKDIR};\ - ${CC} ${CFLAGS} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG} + ${CC} ${CFLAGS} ${STATIC_MIMETEX} -DAA mimetex.c gifsave.c -lm -o ${CGI_PRG} do-install: ${MKDIR} ${CGI_BIN} -- cgit v1.2.3