summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2012-03-17 09:34:50 +0000
committerHiroki Sato <hrs@FreeBSD.org>2012-03-17 09:34:50 +0000
commit350c353727e14e33773170008d1454d5d599a0e0 (patch)
tree5e56c9f5f41218efb7fac63eb12c8ee34b655511 /print
parentUpdate to 4.0.14 (diff)
Add print/papersize-default-{a4,letter}, which install default paper size
configuration used by libpaper. Discussed with: bsam Feature safe: yes
Notes
Notes: svn path=/head/; revision=293446
Diffstat (limited to 'print')
-rw-r--r--print/Makefile2
-rw-r--r--print/papersize-default-a4/Makefile34
-rw-r--r--print/papersize-default-a4/pkg-descr2
-rw-r--r--print/papersize-default-letter/Makefile11
-rw-r--r--print/papersize-default-letter/pkg-descr2
5 files changed, 51 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 99f04c112429..720b2450e145 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -207,6 +207,8 @@
SUBDIR += p5-Text-PDF
SUBDIR += p5-XML-ApacheFOP
SUBDIR += panda
+ SUBDIR += papersize-default-a4
+ SUBDIR += papersize-default-letter
SUBDIR += paps
SUBDIR += passivetex
SUBDIR += pcal
diff --git a/print/papersize-default-a4/Makefile b/print/papersize-default-a4/Makefile
new file mode 100644
index 000000000000..346ab3a383c5
--- /dev/null
+++ b/print/papersize-default-a4/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: papersize-default-a4
+# Date created: March 2, 2012
+# Whom: hrs
+#
+# $FreeBSD$
+#
+
+PORTNAME= papersize-default
+PORTVERSION= 0.0.20120302
+CATEGORIES= print
+MASTER_SITES= # none
+PKGNAMESUFFIX= -${DEFAULTPAPERSIZE:L}
+DISTFILES= # none
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= A default paper size configuration file for libpaper
+
+LIB_DEPENDS= paper:${PORTSDIR}/print/libpaper
+
+NO_BUILD= yes
+
+DEFAULTPAPERSIZE?= a4
+.for P in a4 letter
+.if ${DEFAULTPAPERSIZE:L:M${P}} != ${P}
+CONFLICTS+= papersize-default-${P}-[0-9]*
+.endif
+.endfor
+
+PLIST_FILES= etc/papersize
+
+do-install:
+ ${LN} -s -f papersize.${DEFAULTPAPERSIZE:L} ${PREFIX}/etc/papersize
+
+.include <bsd.port.mk>
diff --git a/print/papersize-default-a4/pkg-descr b/print/papersize-default-a4/pkg-descr
new file mode 100644
index 000000000000..6ecb5da869ed
--- /dev/null
+++ b/print/papersize-default-a4/pkg-descr
@@ -0,0 +1,2 @@
+This installs a libpaper configuration file to set the default paper size as
+A4.
diff --git a/print/papersize-default-letter/Makefile b/print/papersize-default-letter/Makefile
new file mode 100644
index 000000000000..d0ba615dd6a6
--- /dev/null
+++ b/print/papersize-default-letter/Makefile
@@ -0,0 +1,11 @@
+# New ports collection makefile for: papersize-default-letter
+# Date created: March 2, 2012
+# Whom: hrs
+#
+# $FreeBSD$
+#
+
+MASTERDIR= ${PORTSDIR}/print/papersize-default-a4
+DEFAULTPAPERSIZE= letter
+
+.include "${MASTERDIR}/Makefile"
diff --git a/print/papersize-default-letter/pkg-descr b/print/papersize-default-letter/pkg-descr
new file mode 100644
index 000000000000..a1ca126e0a8f
--- /dev/null
+++ b/print/papersize-default-letter/pkg-descr
@@ -0,0 +1,2 @@
+This installs a libpaper configuration file to set the default paper size as
+US letter.