# Created by: lofi@FreeBSD.org # $FreeBSD: head/print/libpaper/Makefile 387857 2015-05-29 14:18:20Z xmj $ PORTNAME= libpaper PORTVERSION= 1.1.24.4 CATEGORIES= print MASTER_SITES= DEBIAN DISTNAME= ${PORTNAME}_${PORTVERSION:C/.([0-9]+)$/+nmu\1/} MAINTAINER= hrs@FreeBSD.org COMMENT= Library providing routines for paper size management LICENSE= GPLv2 USES= libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/.([0-9]+)$/+nmu\1/} INSTALL_TARGET= install-strip post-extract: ${ECHO_CMD} a4 > ${WRKDIR}/papersize.a4 ${ECHO_CMD} letter > ${WRKDIR}/papersize.letter post-configure: @${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|g' \ ${WRKSRC}/config.h ${WRKSRC}/src/paperconfig post-install: cd ${WRKDIR} && \ ${INSTALL_DATA} papersize.a4 papersize.letter \ ${STAGEDIR}${PREFIX}/etc .include