freebsd-ports/print/papersize-default-a4/Makefile
Hiroki Sato 350c353727 Add print/papersize-default-{a4,letter}, which install default paper size
configuration used by libpaper.

Discussed with:	bsam
Feature safe:	yes
2012-03-17 09:34:50 +00:00

34 lines
696 B
Makefile

# 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>