mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
afc0f19cab
to email. Hat: portmgr
45 lines
1003 B
Makefile
45 lines
1003 B
Makefile
# New ports collection makefile for: alignmargins
|
|
# Date created: 2005-01-28
|
|
# Whom: Michael Nottebrock <lofi@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= alignmargins
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
http://www.linuxprinting.org/download/printing/
|
|
MASTER_SITE_SUBDIR=lofi
|
|
DISTFILES= alignmargins align.ps
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Utility script to generate custom margins in PPDs for CUPS
|
|
|
|
NO_BUILD= yes
|
|
USE_PERL5= yes
|
|
|
|
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>
|