summaryrefslogtreecommitdiff
path: root/print/magicfilter/Makefile
blob: 026e8ea15222fd9386b9d12a94e6c0f453813bb4 (plain)
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
# Created by: CHOI Junho <cjh@FreeBSD.org>

PORTNAME=	magicfilter
PORTVERSION=	2.3.h
PORTREVISION=	9
CATEGORIES=	print
MASTER_SITES=	http://www.pell.portland.or.us/~orc/Code/magicfilter/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Customizable, extensible automatic printer filter

USES=		ghostscript

HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	configure.sh
CONFIGURE_ARGS+=	--prefix=${PREFIX} \
			--confdir=${PREFIX}/etc \
			--filterdir=${PREFIX}/libexec/magicfilter \
			--use-fifo
CONFIGURE_ENV+=		LOCALBASE=${LOCALBASE}

.if exists(${LOCALBASE}/lib/libmagic.so)
BUILD_DEPENDS+=	${LOCALBASE}/lib/libmagic.so:sysutils/file
RUN_DEPENDS+=	${LOCALBASE}/lib/libmagic.so:sysutils/file
.endif

.include <bsd.port.mk>