2007-05-29 15:14:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= splix
|
2009-08-08 08:08:08 +02:00
|
|
|
PORTVERSION= 2.0.0
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 4
|
2009-08-08 08:08:08 +02:00
|
|
|
CATEGORIES?= print
|
2007-10-29 23:09:02 +01:00
|
|
|
MASTER_SITES= SF
|
2007-05-29 15:14:59 +02:00
|
|
|
|
2010-07-29 03:59:16 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-09-13 21:54:52 +02:00
|
|
|
COMMENT= CUPS printer drivers for Samsung Printer Language printers
|
2007-05-29 15:14:59 +02:00
|
|
|
|
2010-09-09 23:57:11 +02:00
|
|
|
BUILD_DEPENDS= cups-config:${PORTSDIR}/print/cups-base
|
2012-06-10 20:42:48 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2007-05-29 15:14:59 +02:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
|
2009-08-08 08:08:08 +02:00
|
|
|
MODELS= DELL SAMSUNG XEROX
|
|
|
|
PPD_DELL= 1100 1110
|
|
|
|
PPD_SAMSUNG= clp500 clp510 clp550 clp610 \
|
|
|
|
ml1510 ml1520 ml1610 ml1630 ml1640 ml1710 ml1740 ml1750 \
|
|
|
|
ml2010 ml2150 ml2250 ml2251 ml2510 ml2550 \
|
|
|
|
ml3050 ml3560 \
|
|
|
|
scx4200 scx4500
|
|
|
|
PPD_XEROX= ph3115 ph3116 ph3117 ph3120 ph3121 ph3122 ph3130 ph3150 \
|
|
|
|
ph3420 ph3425 ph5500 ph6100 wc3119 ph3160
|
|
|
|
PPD_SAMSUNG_JBIG= clp200 clp300 clp600 clx216x clx2170 clx3160
|
|
|
|
PPD_XEROX_JBIG= ph6110
|
|
|
|
|
|
|
|
FILTER_FILE= rastertoqpdl pstoqpdl
|
|
|
|
CUPS_CONFIG= ${PREFIX}/bin/cups-config
|
|
|
|
BIN_DEST_DIR= `${CUPS_CONFIG} --serverbin | ${SED} \
|
|
|
|
's|${LOCALBASE}|${PREFIX}|'`/filter
|
|
|
|
CUPS_DATA_DIR= `${CUPS_CONFIG} --datadir | ${SED} \
|
|
|
|
's|${LOCALBASE}|${PREFIX}|'`
|
|
|
|
DEST_DIR_DELL= ${CUPS_DATA_DIR}/model/dell
|
2007-12-14 17:44:13 +01:00
|
|
|
DEST_DIR_SAMSUNG= ${CUPS_DATA_DIR}/model/samsung
|
2009-08-08 08:08:08 +02:00
|
|
|
DEST_DIR_XEROX= ${CUPS_DATA_DIR}/model/xerox
|
2007-05-29 15:14:59 +02:00
|
|
|
|
2012-09-13 21:54:52 +02:00
|
|
|
OPTIONS_DEFINE= JBIG BLACKOPTIM
|
|
|
|
JBIG_DESC= Enable use of JBIG algorithm (pattented)
|
|
|
|
BLACKOPTIM_DESC= Enable black correction algorithm
|
|
|
|
OPTIONS_DEFAULT= JBIG BLACKOPTIM
|
2007-12-14 17:44:13 +01:00
|
|
|
|
2009-08-08 08:08:08 +02:00
|
|
|
.include "bsd.port.options.mk"
|
|
|
|
|
2012-09-13 21:54:52 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^CC.*:= gcc/d' -e '/^CXX.*:= g++/d' \
|
|
|
|
-e 's/make/gmake/' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's/g++/$$(CXX)/' ${WRKSRC}/rules.mk
|
2009-08-08 08:08:08 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
|
2012-09-13 21:54:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MJBIG}
|
2009-08-08 08:08:08 +02:00
|
|
|
PPD_SAMSUNG+= ${PPD_SAMSUNG_JBIG}
|
|
|
|
PPD_XEROX+= ${PPD_XEROX_JBIG}
|
2012-09-13 21:54:52 +02:00
|
|
|
LIB_DEPENDS+= jbig:${PORTSDIR}/graphics/jbigkit
|
|
|
|
.else
|
2009-08-08 08:08:08 +02:00
|
|
|
MAKE_ARGS+= DISABLE_JBIG=1
|
|
|
|
.endif
|
|
|
|
|
2012-09-13 21:54:52 +02:00
|
|
|
.if empty(PORT_OPTIONS:MBLACKOPTIM)
|
2009-08-08 08:08:08 +02:00
|
|
|
MAKE_ARGS+= DISABLE_BLACKOPTIM=1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(CACHESIZE)
|
|
|
|
MAKE_ARGS+= CACHESIZE=${CACHESIZE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2007-12-14 17:44:13 +01:00
|
|
|
.for MODEL in ${MODELS}
|
|
|
|
${MKDIR} ${DEST_DIR_${MODEL}}
|
|
|
|
.for PPD in $(PPD_${MODEL})
|
2009-08-08 08:08:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ppd/${PPD}.ppd $(DEST_DIR_${MODEL})
|
|
|
|
.endfor
|
2007-12-14 17:44:13 +01:00
|
|
|
.endfor
|
2009-08-08 08:08:08 +02:00
|
|
|
|
|
|
|
.for FILTER in ${FILTER_FILE}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/optimized/${FILTER} ${BIN_DEST_DIR}
|
2007-05-29 15:14:59 +02:00
|
|
|
.endfor
|
|
|
|
|
2012-09-13 21:54:52 +02:00
|
|
|
.include <bsd.port.mk>
|