|
Lines 6-30
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= cups-pstoraster |
8 |
PORTNAME= cups-pstoraster |
| 9 |
PORTVERSION= 7.07 |
9 |
PORTVERSION= 8.15rc1 |
| 10 |
PORTREVISION= 3 |
|
|
| 11 |
CATEGORIES= print |
10 |
CATEGORIES= print |
| 12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
11 |
MASTER_SITES= ftp://ftp.easysw.com/pub/ghostscript/test/ |
| 13 |
ftp://ftp.easysw.com/pub/ghostscript/ |
12 |
DISTFILES= espgs-${PORTVERSION}-source${EXTRACT_SUFX} |
| 14 |
MASTER_SITE_SUBDIR= ghostscript espgs |
|
|
| 15 |
DISTFILES= ghostscript-${PORTVERSION}${EXTRACT_SUFX} \ |
| 16 |
espgs-${ESPGS_VER}-source${EXTRACT_SUFX} |
| 17 |
DIST_SUBDIR= ghostscript |
13 |
DIST_SUBDIR= ghostscript |
| 18 |
|
14 |
|
| 19 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
| 20 |
COMMENT= GNU Postscript interpreter for CUPS printing to non-PS printers |
16 |
COMMENT= GNU Postscript interpreter for CUPS printing to non-PS printers |
| 21 |
|
17 |
|
| 22 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base |
18 |
LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base |
| 23 |
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/${PORTVERSION}/lib/gs_init.ps:${PORTSDIR}/print/ghostscript-gnu |
|
|
| 24 |
|
19 |
|
| 25 |
ESPGS_VER= 7.07.1 |
20 |
WRKSRC= ${WRKDIR}/espgs-${PORTVERSION} |
| 26 |
ESPGS_WRKSRC= ${WRKDIR}/espgs-${ESPGS_VER}/pstoraster |
|
|
| 27 |
WRKSRC= ${WRKDIR}/ghostscript-${PORTVERSION} |
| 28 |
|
21 |
|
| 29 |
USE_BZIP2= yes |
22 |
USE_BZIP2= yes |
| 30 |
USE_REINPLACE= yes |
23 |
USE_REINPLACE= yes |
|
Lines 33-40
Link Here
|
| 33 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
26 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
| 34 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
27 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
| 35 |
LDFLAGS="-L${LOCALBASE}/lib" |
28 |
LDFLAGS="-L${LOCALBASE}/lib" |
| 36 |
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \ |
29 |
CONFIGURE_ARGS= --without-x --with-gs=espgs |
| 37 |
--with-gs=espgs |
|
|
| 38 |
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \ |
30 |
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \ |
| 39 |
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev" |
31 |
DEVICE_DEVS="\$$(DD)cups.dev \$$(DD)pxlcolor.dev \$$(DD)pxlmono.dev" |
| 40 |
|
32 |
|
|
Lines 42-56
Link Here
|
| 42 |
libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \ |
34 |
libexec/cups/filter/pstopxl libexec/cups/filter/pstoraster \ |
| 43 |
share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd |
35 |
share/cups/model/pxlcolor.ppd share/cups/model/pxlmono.ppd |
| 44 |
|
36 |
|
|
|
37 |
pre-configure: |
| 38 |
${RM} -f ${WRKSRC}/ijs/config.guess ${WRKSRC}/ijs/missing ${WRKSRC}/ijs/config.sub ${WRKSRC}/ijs/install-sh ${WRKSRC}/ijs/ltmain.sh |
| 39 |
${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 |
| 40 |
|
| 45 |
post-patch: |
41 |
post-patch: |
| 46 |
${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src |
42 |
${LN} -sf ${WRKSRC}/pstoraster/gdevcups.c ${WRKSRC}/src |
| 47 |
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak |
43 |
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak |
| 48 |
.for file in pstopxl pstoraster |
44 |
.for file in pstopxl pstoraster |
| 49 |
${SED} -e 's:@prefix@:${PREFIX}:g ; \ |
45 |
${SED} -e 's:@prefix@:${PREFIX}:g ; \ |
| 50 |
s:@exec_prefix@:${PREFIX}:g ; \ |
46 |
s:@exec_prefix@:${PREFIX}:g ; \ |
| 51 |
s:@bindir@:${PREFIX}/bin:g ; \ |
47 |
s:@bindir@:${PREFIX}/bin:g ; \ |
| 52 |
s:@GS@:espgs:g' \ |
48 |
s:@GS@:espgs:g' \ |
| 53 |
${ESPGS_WRKSRC}/${file}.in > ${ESPGS_WRKSRC}/${file} |
49 |
${WRKSRC}/pstoraster/${file}.in > ${WRKSRC}/pstoraster/${file} |
| 54 |
.endfor |
50 |
.endfor |
| 55 |
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \ |
51 |
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \ |
| 56 |
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \ |
52 |
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \ |
|
Lines 60-74
Link Here
|
| 60 |
${MKDIR} ${WRKSRC}/bin |
56 |
${MKDIR} ${WRKSRC}/bin |
| 61 |
${MKDIR} ${WRKSRC}/obj |
57 |
${MKDIR} ${WRKSRC}/obj |
| 62 |
|
58 |
|
| 63 |
do-install: |
59 |
#post-install: |
| 64 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin |
60 |
# ${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin |
| 65 |
${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs ${PREFIX}/etc/cups |
61 |
# ${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs ${PREFIX}/etc/cups |
| 66 |
.for file in pstopxl pstoraster |
62 |
#.for file in pstopxl pstoraster |
| 67 |
${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/${file} ${PREFIX}/libexec/cups/filter |
63 |
# ${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/${file} ${PREFIX}/libexec/cups/filter |
| 68 |
.endfor |
64 |
#.endfor |
| 69 |
.for file in pxlcolor.ppd pxlmono.ppd |
65 |
#.for file in pxlcolor.ppd pxlmono.ppd |
| 70 |
${INSTALL_DATA} ${ESPGS_WRKSRC}/${file} ${PREFIX}/share/cups/model |
66 |
# ${INSTALL_DATA} ${WRKSRC}/pstoraster/${file} ${PREFIX}/share/cups/model |
| 71 |
.endfor |
67 |
#.endfor |
| 72 |
|
68 |
|
| 73 |
.include "${.CURDIR}/../../print/cups/Makefile.common" |
69 |
.include "${.CURDIR}/../../print/cups/Makefile.common" |
| 74 |
.include <bsd.port.pre.mk> |
70 |
.include <bsd.port.pre.mk> |