summaryrefslogtreecommitdiff
path: root/print/libpaper
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2012-03-17 11:30:24 +0000
committerHiroki Sato <hrs@FreeBSD.org>2012-03-17 11:30:24 +0000
commit82020bb02cc3369765a8cc609eb00c013473abc4 (patch)
treeae5b7ee84d0adf667a6f5d4f5dd5e9fc686ea801 /print/libpaper
parentWelcome GCC 4.8! For the next couple of months this is going to be (diff)
Add etc/papersize.{a4,letter}.
Discussed with: bsam Feature safe: yes
Notes
Notes: svn path=/head/; revision=293451
Diffstat (limited to 'print/libpaper')
-rw-r--r--print/libpaper/Makefile9
-rw-r--r--print/libpaper/pkg-plist3
2 files changed, 12 insertions, 0 deletions
diff --git a/print/libpaper/Makefile b/print/libpaper/Makefile
index 1be16183ce60..969120fa39e1 100644
--- a/print/libpaper/Makefile
+++ b/print/libpaper/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libpaper
PORTVERSION= 1.1.24
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR= pool/main/libp/libpaper
@@ -39,4 +40,12 @@ post-configure:
@${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|g' ${WRKSRC}/config.h \
${WRKSRC}/src/paperconfig
+pre-build:
+ ${ECHO_CMD} a4 > ${WRKDIR}/papersize.a4
+ ${ECHO_CMD} letter > ${WRKDIR}/papersize.letter
+
+post-install:
+ cd ${WRKDIR} && \
+ ${INSTALL_DATA} papersize.a4 papersize.letter ${PREFIX}/etc
+
.include <bsd.port.mk>
diff --git a/print/libpaper/pkg-plist b/print/libpaper/pkg-plist
index c8cf18c62cbc..be5e2161eac2 100644
--- a/print/libpaper/pkg-plist
+++ b/print/libpaper/pkg-plist
@@ -1,4 +1,7 @@
+@comment $FreeBSD$
bin/paperconf
+etc/papersize.a4
+etc/papersize.letter
include/paper.h
lib/libpaper.a
lib/libpaper.la