blob: cb7b723a4ddf11910d1a576d79f178a83248574e (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# 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.4
CATEGORIES= print
MASTER_SITES= http://people.FreeBSD.org/~andreas/apsfilter/download/
MAINTAINER= andreas@FreeBSD.org
RUN_DEPENDS= recode:${PORTSDIR}/converters/recode
.if defined(BATCH)
RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript55
RUN_DEPENDS+= html2ps:${PORTSDIR}/print/html2ps-letter
RUN_DEPENDS+= transfig:${PORTSDIR}/print/transfig
RUN_DEPENDS+= cjpeg:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS+= anytopnm:${PORTSDIR}/graphics/netpbm
RUN_DEPENDS+= bunzip2:${PORTSDIR}/archivers/bzip2
RUN_DEPENDS+= a2ps:${PORTSDIR}/print/a2ps-letter
RUN_DEPENDS+= psnup:${PORTSDIR}/print/psutils-letter
.endif
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/apsfilter
# make a2ps port happy in this early stage
PAPERSIZE?=letter
.if !defined(BATCH)
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
.else
post-install:
@${MKDIR} ${PREFIX}/apsfilter/filter
@${TOUCH} ${PREFIX}/apsfilter/filter/.keep_me
.endif
.include <bsd.port.mk>
|