aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
Diffstat (limited to 'print')
-rw-r--r--print/enscript-a4/Makefile4
-rw-r--r--print/enscript-letter/Makefile14
-rw-r--r--print/enscript-letter/distinfo1
-rw-r--r--print/enscript-letterdj/Makefile4
4 files changed, 12 insertions, 11 deletions
diff --git a/print/enscript-a4/Makefile b/print/enscript-a4/Makefile
index 572b19fa1247..15868cff90df 100644
--- a/print/enscript-a4/Makefile
+++ b/print/enscript-a4/Makefile
@@ -5,7 +5,11 @@
# $FreeBSD$
#
+CONFLICTS= enscript-letter-* enscript-letterdj-*
+
PAPERSIZE= a4
+PS= A4
+
MASTERDIR= ${.CURDIR}/../enscript-letter
.include "${MASTERDIR}/Makefile"
diff --git a/print/enscript-letter/Makefile b/print/enscript-letter/Makefile
index 8515f66f55c1..f8b45ab46c21 100644
--- a/print/enscript-letter/Makefile
+++ b/print/enscript-letter/Makefile
@@ -19,21 +19,15 @@ COMMENT= ASCII to PostScript filter
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-nls --with-media=${PS}
+CONFLICTS?= enscript-a4-* enscript-letterdj-*
+
INFO= enscript
MAN1= diffpp.1 enscript.1 sliceprint.1 states.1
PAPERSIZE?= letter
+PS= Letter
-.if ${PAPERSIZE} == a4
-PS=A4
-CONFLICTS= enscript-letter-* enscript-letterdj-*
-.elif ${PAPERSIZE} == letter
-PS=Letter
-CONFLICTS= enscript-a4-* enscript-letterdj-*
-.elif ${PAPERSIZE} == letterdj
-PS=Letterdj
-CONFLICTS= enscript-a4-* enscript-letter-*
-.else
+.if (${PAPERSIZE} != a4 && ${PAPERSIZE} != letter && ${PAPERSIZE} != letterdj)
.BEGIN:
@${ECHO} "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
@${ECHO} "Possible values are: a4, letter, or letterdj"
diff --git a/print/enscript-letter/distinfo b/print/enscript-letter/distinfo
index 9bd31ac375db..9d3d33fa59ca 100644
--- a/print/enscript-letter/distinfo
+++ b/print/enscript-letter/distinfo
@@ -1,3 +1,2 @@
-MD5 (enscript-1.6.4.tar.gz) = b5174b59e4a050fb462af5dbf28ebba3
SHA256 (enscript-1.6.4.tar.gz) = 45299a4db47c9c08c3649d4f62b211ae79ef5143360c264a40371a728f6ad99b
SIZE (enscript-1.6.4.tar.gz) = 1036734
diff --git a/print/enscript-letterdj/Makefile b/print/enscript-letterdj/Makefile
index 43151c8394fa..47ed2a623cfe 100644
--- a/print/enscript-letterdj/Makefile
+++ b/print/enscript-letterdj/Makefile
@@ -5,7 +5,11 @@
# $FreeBSD$
#
+CONFLICTS= enscript-a4-* enscript-letter-*
+
PAPERSIZE= letterdj
+PS= Letterdj
+
MASTERDIR= ${.CURDIR}/../enscript-letter
.include "${MASTERDIR}/Makefile"