-
Notifications
You must be signed in to change notification settings - Fork 727
/
Makefile
35 lines (27 loc) · 898 Bytes
/
Makefile
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
PORTNAME= magicfilter
DISTVERSIONPREFIX= v
DISTVERSION= 2.3.i
PORTREVISION= 2
CATEGORIES= print
MAINTAINER= bofh@FreeBSD.org
COMMENT= Customizable, extensible automatic printer filter
WWW= https://www.pell.portland.or.us/~orc/Code/magicfilter/
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${LOCALBASE}/lib/libmagic.so:sysutils/file
RUN_DEPENDS= ${LOCALBASE}/lib/libmagic.so:sysutils/file
USES= ghostscript
USE_GITHUB= yes
GH_ACCOUNT= Orc
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.sh
CONFIGURE_ARGS+= --prefix=${PREFIX} \
--confdir=${PREFIX}/etc \
--filterdir=${PREFIX}/libexec/magicfilter \
--use-fifo \
--mandir=${PREFIX}/share/man
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
.include <bsd.port.post.mk>