1998-11-20 04:15:15 +00:00
|
|
|
# New ports collection makefile for: enscript (letter)
|
1997-07-27 03:31:33 +00:00
|
|
|
# Date created: 24 Jul, 1997
|
|
|
|
# Whom: kline
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1997-07-27 03:31:33 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:41:40 +00:00
|
|
|
PORTNAME= enscript-${PAPERSIZE}
|
|
|
|
PORTVERSION= 1.6.1
|
1997-07-27 03:31:33 +00:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
1999-01-27 07:41:29 +00:00
|
|
|
MASTER_SITE_SUBDIR= enscript
|
2000-04-09 17:41:40 +00:00
|
|
|
DISTNAME= enscript-${PORTVERSION}
|
1997-07-27 03:31:33 +00:00
|
|
|
|
|
|
|
MAINTAINER= kline@thought.org
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
1998-11-20 04:15:15 +00:00
|
|
|
CONFIGURE_ARGS= --disable-nls --with-media=${PS}
|
1997-08-05 06:37:19 +00:00
|
|
|
MAKE_FLAGS= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
|
1997-07-27 03:31:33 +00:00
|
|
|
|
1998-11-09 01:14:54 +00:00
|
|
|
MAN1= diffpp.1 enscript.1 sliceprint.1 states.1
|
1997-07-27 03:31:33 +00:00
|
|
|
STRIP=
|
|
|
|
|
|
|
|
# If you want to build a static binary, uncomment the following line
|
|
|
|
#LDFLAGS+=-static
|
|
|
|
|
1998-11-20 04:15:15 +00:00
|
|
|
PAPERSIZE?= letter
|
|
|
|
PS!= echo ${PAPERSIZE} | tr l L | tr a A
|
|
|
|
|
|
|
|
.if ${PAPERSIZE} == a4
|
1997-07-27 03:31:33 +00:00
|
|
|
WIDTH=8.27
|
|
|
|
HEIGHT=11.64
|
|
|
|
A4_PAPERSIZE=1
|
1998-11-20 04:15:15 +00:00
|
|
|
.elif ${PAPERSIZE} == letter
|
1997-07-27 03:31:33 +00:00
|
|
|
WIDTH=8.5
|
|
|
|
HEIGHT=11.0
|
|
|
|
A4_PAPERSIZE=0
|
1998-11-20 04:15:15 +00:00
|
|
|
.elif ${PAPERSIZE} != letterdj
|
|
|
|
.BEGIN:
|
|
|
|
@${EHCO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
|
|
@${EHCO} "Possible values are: a4 or letter or letterdj"
|
1997-08-05 06:37:19 +00:00
|
|
|
@${FALSE}
|
1997-07-27 03:31:33 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for file in enscript mkafmmap states
|
1997-08-05 06:37:19 +00:00
|
|
|
strip ${PREFIX}/bin/${file}
|
1997-07-27 03:31:33 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|