Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= cups-pstoraster |
8 |
PORTNAME= cups-pstoraster |
9 |
PORTVERSION= 8.15 |
9 |
PORTVERSION= 8.15.3 |
10 |
CATEGORIES= print |
10 |
CATEGORIES= print |
11 |
MASTER_SITES= \ |
11 |
MASTER_SITES= \ |
12 |
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \ |
12 |
ftp://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ \ |
Lines 14-48
Link Here
|
14 |
ftp://ftp3.easysw.com/pub/%SUBDIR%/ \ |
14 |
ftp://ftp3.easysw.com/pub/%SUBDIR%/ \ |
15 |
http://ftp.easysw.com/pub/%SUBDIR%/ \ |
15 |
http://ftp.easysw.com/pub/%SUBDIR%/ \ |
16 |
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ |
16 |
http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/%SUBDIR%/ |
17 |
MASTER_SITE_SUBDIR= ghostscript/test |
17 |
MASTER_SITE_SUBDIR= ghostscript/${PORTVERSION} |
18 |
DIST_SUBDIR= ghostscript |
18 |
DIST_SUBDIR= ghostscript |
19 |
|
19 |
|
20 |
MAINTAINER= ports@FreeBSD.org |
20 |
MAINTAINER= frank@exit.com |
21 |
COMMENT= Postscript interpreter for CUPS printing to non-PS printers |
21 |
COMMENT= Postscript interpreter for CUPS printing to non-PS printers |
22 |
|
22 |
|
23 |
PATCH_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${GHOSTSCRIPT_PORT}:patch |
|
|
24 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base |
23 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base |
25 |
|
24 |
|
26 |
ESPGS_VER= ${PORTVERSION}rc3 |
25 |
ESPGS_VER= ${PORTVERSION} |
|
|
26 |
GS_VERSION= 8.15 |
27 |
|
27 |
|
28 |
DISTNAME= espgs-${ESPGS_VER}-source |
28 |
DISTNAME= espgs-${ESPGS_VER}-source |
29 |
EXTRACT_AFTER_ARGS= | ${TAR} -xf - espgs-${ESPGS_VER}/pstoraster |
29 |
WRKSRC= ${WRKDIR}/espgs-${PORTVERSION} |
30 |
ESPGS_WRKSRC= ${WRKDIR}/espgs-${ESPGS_VER}/pstoraster |
30 |
|
31 |
WRKSRC= ${WRKDIRPREFIX}$$(${REALPATH} ${PORTSDIR})/${GHOSTSCRIPT_PORT}/work/ghostscript |
31 |
DATADIR= ${TARGETDIR}/share/ghostscript |
32 |
PATCH_WRKSRC= ${ESPGS_WRKSRC} |
|
|
33 |
|
32 |
|
34 |
USE_BZIP2= yes |
33 |
USE_BZIP2= yes |
35 |
USE_GHOSTSCRIPT_RUN= yes |
|
|
36 |
USE_GMAKE= yes |
34 |
USE_GMAKE= yes |
37 |
GNU_CONFIGURE= yes |
35 |
GNU_CONFIGURE= yes |
38 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
36 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
39 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
37 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
40 |
LDFLAGS="-L${LOCALBASE}/lib" |
38 |
LDFLAGS="-L${LOCALBASE}/lib" |
41 |
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \ |
39 |
CONFIGURE_ARGS= --without-x --with-gs=espgs |
42 |
--with-gs=espgs |
|
|
43 |
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \ |
40 |
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \ |
44 |
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev" |
41 |
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev" |
45 |
|
42 |
PLIST_SUB= GS_VERSION="${GS_VERSION}" |
46 |
PLIST_FILES= bin/espgs etc/cups/pstoraster.convs \ |
43 |
PLIST_FILES= bin/espgs etc/cups/pstoraster.convs \ |
47 |
libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \ |
44 |
libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \ |
48 |
share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd |
45 |
share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd |
Lines 51-65
Link Here
|
51 |
IGNORE= doesn't build with AFPL version of Ghostscript; please use gnu ghostscript instead |
48 |
IGNORE= doesn't build with AFPL version of Ghostscript; please use gnu ghostscript instead |
52 |
.endif |
49 |
.endif |
53 |
|
50 |
|
|
|
51 |
pre-configure: |
52 |
${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh |
53 |
${RM} -f ${WRKSRC}/trunk/ijs/config.guess ${WRKSRC}/trunk/ijs/missing ${WRKSRC}/trunk/ijs/config.sub ${WRKSRC}/trunk/ijs/install-sh ${WRKSRC}/trunk/ijs/ltmain.sh |
54 |
|
54 |
post-patch: |
55 |
post-patch: |
55 |
${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src |
56 |
${LN} -sf ${WRKSRC}/pstoraster/gdevcups.c ${WRKSRC}/src |
56 |
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak |
57 |
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak |
57 |
.for file in pstopxl pstoraster |
58 |
.for file in pstopxl pstoraster |
58 |
${SED} -e 's:@prefix@:${PREFIX}:g ; \ |
59 |
${SED} -e 's:@prefix@:${PREFIX}:g ; \ |
59 |
s:@exec_prefix@:${PREFIX}:g ; \ |
60 |
s:@exec_prefix@:${PREFIX}:g ; \ |
60 |
s:@bindir@:${PREFIX}/bin:g ; \ |
61 |
s:@bindir@:${PREFIX}/bin:g ; \ |
61 |
s:@GS@:espgs:g' \ |
62 |
s:@GS@:espgs:g' \ |
62 |
${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file} |
63 |
${WRKSRC}/pstoraster/${file}.in > ${WRKSRC}/pstoraster/${file} |
63 |
.endfor |
64 |
.endfor |
64 |
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \ |
65 |
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \ |
65 |
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \ |
66 |
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \ |
Lines 69-82
Link Here
|
69 |
${MKDIR} ${WRKSRC}/bin |
70 |
${MKDIR} ${WRKSRC}/bin |
70 |
${MKDIR} ${WRKSRC}/obj |
71 |
${MKDIR} ${WRKSRC}/obj |
71 |
|
72 |
|
72 |
do-install: |
|
|
73 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin |
74 |
${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups |
75 |
.for _file in pstopxl pstoraster |
76 |
${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${_file} ${PREFIX}/libexec/cups/filter |
77 |
.endfor |
78 |
.for _file in pxlcolor.ppd pxlmono.ppd |
79 |
${INSTALL_DATA} ${ESPGS_WRKSRC}/${_file} ${PREFIX}/share/cups/model |
80 |
.endfor |
81 |
|
82 |
.include <bsd.port.mk> |
73 |
.include <bsd.port.mk> |