# New ports collection makefile for:	enscript
# Version required:     	1.5.0
# Date created:			24 Jul, 1997
# Whom:				kline
#
# $Id: Makefile,v 1.1.1.1 1997/07/27 03:31:33 chuckr Exp $
#

DISTNAME=       enscript-1.5.0
PKGNAME=        enscript-${PAPERSIZE}-1.5.0
CATEGORIES=	print
MASTER_SITES=   ${MASTER_SITE_GNU}

MAINTAINER=	kline@thought.org

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
CONFIGURE_ARGS=	--disable-nls
MAKE_FLAGS=     WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f

MAN1=		enscript.1 sliceprint.1 states.1
STRIP=

# If you want to build a static binary, uncomment the following line
#LDFLAGS+=-static

.if !defined(PAPERSIZE)
PAPERSIZE=a4     # set default
WIDTH=8.27
HEIGHT=11.64
A4_PAPERSIZE=1
PAPERSIZE_UNSPECIFIED=  yes
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
PAPERSIZE=a4
WIDTH=8.27
HEIGHT=11.64
A4_PAPERSIZE=1
.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
PAPERSIZE=letter
WIDTH=8.5
HEIGHT=11.0
A4_PAPERSIZE=0
.elif ${PAPERSIZE} == Letterdj
.else
PAPERSIZE_INVALID= yes
.endif  # not defined PAPERSIZE

pre-fetch:
.if defined(PAPERSIZE_UNSPECIFIED)
	@echo ""
	@echo "This port builds the default A4 paper size."
	@echo "If you want to select the LETTER papersize for enscript,"
	@echo "type a ^C now.  Then type:"
	@echo ""
	@echo "  % make letter "
	@echo ""
	@echo "Install your port by typing:"
	@echo ""
	@echo "make letter-install  {or} % make a4-install"
	@echo ""
	@echo "You can also set the environment variable PAPERSIZE to A4 or"
	@echo "letter to configure enscript for these paper sizes"
	@sleep 5
.elif defined(PAPERSIZE_INVALID)
	@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
	@echo "Possible values are:  A4 (default) or letter"
	@${FALSE}
.endif
letter::
	${MAKE} PAPERSIZE=Letter

Letter::
	${MAKE} PAPERSIZE=Letter

letter-install::
	${MAKE} PAPERSIZE=Letter install

Letter-install::
	${MAKE} PAPERSIZE=Letter install

a4::
	${MAKE} PAPERSIZE=A4

A4::
	${MAKE} PAPERSIZE=A4

Letterdj::
	${MAKE} PAPERSIZE=Letterdj

letterdj::
	${MAKE} PAPERSIZE=Letterdj

Letterdj-install::
	${MAKE} PAPERSIZE=Letterdj install

letterdj-install::
	${MAKE} PAPERSIZE=Letterdj install

a4-install::
	${MAKE} PAPERSIZE=a4 install

A4-install::
	${MAKE} PAPERSIZE=a4 install

post-install:
.for file in enscript mkafmmap states
	strip ${PREFIX}/bin/${file}
.endfor

.include <bsd.port.mk>
n value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2'>dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option>
<option value='gnome-3.22'>gnome-3.22</option>
<option value='gnome-3.24'>gnome-3.24</option>
<option value='gnome-3.26'>gnome-3.26</option>
<option value='gnome-3.28'>gnome-3.28</option>
<option value='gnome-3.32'>gnome-3.32</option>
<option value='gnome-3.36'>gnome-3.36</option>
<option value='gstreamer'>gstreamer</option>
<option value='gstreamer-1.16'>gstreamer-1.16</option>
<option value='gstreamer0.10-removal'>gstreamer0.10-removal</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='mate-1.16' selected='selected'>mate-1.16</option>
<option value='mate-1.18'>mate-1.18</option>
<option value='mate-1.20'>mate-1.20</option>
<option value='mate-1.22'>mate-1.22</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/about/?h=mate-1.16'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/?h=mate-1.16'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/refs/?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc/irssi-scripts/pkg-descr?h=mate-1.16'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/irc/irssi-scripts/pkg-descr?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/irc/irssi-scripts/pkg-descr?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/irc/irssi-scripts/pkg-descr?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/irc/irssi-scripts/pkg-descr?h=mate-1.16'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc/irssi-scripts/pkg-descr'>
<input type='hidden' name='h' value='mate-1.16'/><input type='hidden' name='id' value='a9eb85e0fb906fa7c550985ac233401c996b0fe7'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>irc</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc/irssi-scripts?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>irssi-scripts</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc/irssi-scripts/pkg-descr?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7'>pkg-descr</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/irc/irssi-scripts/pkg-descr?h=mate-1.16&amp;id=a9eb85e0fb906fa7c550985ac233401c996b0fe7&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>