Respect ${CC} and ${CFLAGS}, do the compiling in a do-build target and
clarify the license (GPLv2 or later) After feedback from ajacoutot
This commit is contained in:
parent
0c820e785c
commit
4282052de3
@ -1,14 +1,15 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/05/16 15:21:23 mbalmer Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2008/05/16 16:32:14 mbalmer Exp $
|
||||
|
||||
COMMENT= parse LaTeX math expressions into gif images
|
||||
|
||||
DISTNAME= mimetex-1.65
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= www
|
||||
|
||||
HOMEPAGE= http://www.forkosh.com/mimetex.html
|
||||
MAINTAINER= Mischa Diehm <md@msys.ch>
|
||||
|
||||
# GPL
|
||||
# GPLv2 or later
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
@ -16,16 +17,17 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://meta-planets.net/~openbsd/
|
||||
|
||||
NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
PKG_ARCH= *
|
||||
|
||||
PREFIX= /var/www
|
||||
INSTDIR= ${PREFIX}/cgi-bin
|
||||
|
||||
do-build:
|
||||
cd ${WRKDIST} && ${CC} ${CFLAGS} -static -DAA mimetex.c gifsave.c -lm \
|
||||
-o ${WRKDIST}/mimetex
|
||||
|
||||
do-install:
|
||||
cd ${WRKDIST} && cc -static -DAA mimetex.c gifsave.c -lm \
|
||||
-o ${WRKDIST}/mimetex
|
||||
${INSTALL_DATA_DIR} ${INSTDIR}
|
||||
${INSTALL} -o ${BINOWN} ${WRKDIST}/mimetex ${INSTDIR}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user