summaryrefslogtreecommitdiff
path: root/print/apsfilter/Makefile
blob: e902a0bede1a809ec87c35d66e0dab7e0f6ebe38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:	apsfilter
# Version required: 	4.9.3
# Date created: 	Tue Nov 14 18:29:48 MET 1995
# Whom: 		Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
#

DISTNAME=	apsfilter-5.1.3
CATEGORIES=	print
MASTER_SITES=	http://www.FreeBSD.org/~andreas/apsfilter/download/

MAINTAINER=	andreas@FreeBSD.org

RUN_DEPENDS=	recode:${PORTSDIR}/converters/recode

USE_BZIP2=	yes
WRKSRC=		${WRKDIR}/apsfilter

# make a2ps port happy in this early stage
PAPERSIZE?=letter

pre-configure:
	rm -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc

# This was copied from bsd.port.mk because a missing post-clean target
# is needed
clean:
.if !defined(NOCLEANDEPENDS)
	@${MAKE} clean-depends
.endif
	@${ECHO_MSG} "===>  Cleaning for ${PKGNAME}"
	@if [ -d ${WRKDIR} ]; then \
		if [ -w ${WRKDIR} ]; then \
			${RM} -rf ${WRKDIR}; \
		else \
			${ECHO_MSG} "===>   ${WRKDIR} not writable, skipping"; \
		fi; \
	fi
	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc

.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif

.include <bsd.port.mk>