2005-01-28 11:49:14 +01:00
|
|
|
# New ports collection makefile for: alignmargins
|
|
|
|
# Date created: 2005-01-28
|
|
|
|
# Whom: Michael Nottebrock <lofi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= alignmargins
|
|
|
|
PORTVERSION= 1.0
|
2005-01-30 11:29:22 +01:00
|
|
|
PORTREVISION= 1
|
2005-01-28 11:49:14 +01:00
|
|
|
CATEGORIES= print
|
2005-03-01 13:51:59 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
2005-01-28 11:49:14 +01:00
|
|
|
http://www.linuxprinting.org/download/printing/
|
2005-03-01 13:51:59 +01:00
|
|
|
MASTER_SITE_SUBDIR=lofi
|
2005-01-28 11:49:14 +01:00
|
|
|
DISTFILES= alignmargins align.ps
|
|
|
|
|
2008-09-07 02:36:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-01-28 11:49:14 +01:00
|
|
|
COMMENT= Utility script to generate custom margins in PPDs for CUPS
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2005-01-30 11:29:22 +01:00
|
|
|
USE_PERL5= yes
|
2005-01-28 11:49:14 +01:00
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${RM} -rf ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKDIR}
|
|
|
|
@${MKDIR} ${WRKSRC}
|
|
|
|
@for distfile in ${EXTRACT_ONLY}; do \
|
|
|
|
if ! (cd ${WRKDIR} && ${CP} ${_DISTDIR}/$$distfile ${WRKSRC});\
|
|
|
|
then \
|
|
|
|
exit 1; \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
-e 's|%%DATADIR%%|${DATADIR}|g' \
|
|
|
|
${WRKSRC}/alignmargins
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/alignmargins ${LOCALBASE}/bin
|
|
|
|
${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/align.ps ${DATADIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|