e779cf10d4
- Support CFLAGS properly - Bump PORTREVISION PR: ports/155791 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
37 lines
943 B
Makefile
37 lines
943 B
Makefile
# New ports collection makefile for: c2ps (letter)
|
|
# Date created: 19 March 1997
|
|
# Whom: Matthew Hunt <mph@pobox.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= c2ps-${PAPERSIZE}
|
|
PORTVERSION= 4.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://www.cs.technion.ac.il/users/c2ps/
|
|
DISTNAME= c2ps-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A PostScript pretty-printer for C source
|
|
|
|
MAKE_ARGS= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
|
|
DEFAULT_PAPER_TYPE="${PS}"
|
|
|
|
MAN1= c2ps.1
|
|
PLIST_FILES= bin/c2ps
|
|
|
|
PAPERSIZE?= letter
|
|
PS!= echo ${PAPERSIZE} | awk '{print toupper($$1)}'
|
|
.if ${PAPERSIZE:L} != a4 && ${PAPERSIZE:L} != letter
|
|
.BEGIN:
|
|
@${ECHO_MSG} "Invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
@${ECHO_MSG} "Possible values are: a4, and letter."
|
|
@${FALSE}
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/c2ps ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/c2ps.1 ${MANPREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|