Lines 6-18
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= cups-pstoraster |
8 |
PORTNAME= cups-pstoraster |
9 |
PORTVERSION= 7.05.6 |
9 |
PORTVERSION= 7.07 |
10 |
PORTREVISION= 0 |
10 |
PORTREVISION= 0 |
11 |
CATEGORIES= print |
11 |
CATEGORIES= print |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ |
13 |
ftp://ftp.easysw.com/pub/ghostscript/ |
13 |
ftp://ftp.easysw.com/pub/ghostscript/ |
14 |
MASTER_SITE_SUBDIR= espgs |
14 |
MASTER_SITE_SUBDIR= ghostscript espgs |
15 |
DISTNAME= espgs-${PORTVERSION}-source |
15 |
DISTFILES= ghostscript-${PORTVERSION}${EXTRACT_SUFX} \ |
|
|
16 |
espgs-7.05.6-source${EXTRACT_SUFX} |
17 |
DIST_SUBDIR= ghostscript |
16 |
|
18 |
|
17 |
MAINTAINER= ports@FreeBSD.org |
19 |
MAINTAINER= ports@FreeBSD.org |
18 |
COMMENT= GNU Postscript interpreter for CUPS printing to non-PS printers |
20 |
COMMENT= GNU Postscript interpreter for CUPS printing to non-PS printers |
Lines 20-39
Link Here
|
20 |
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base |
22 |
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-base |
21 |
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu |
23 |
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/fonts/fonts.scale:${PORTSDIR}/print/ghostscript-gnu |
22 |
|
24 |
|
23 |
WRKSRC= ${WRKDIR}/espgs-${PORTVERSION} |
25 |
WRKSRC= ${WRKDIR}/ghostscript-${PORTVERSION} |
24 |
|
26 |
|
25 |
USE_BZIP2= yes |
27 |
USE_BZIP2= yes |
|
|
28 |
USE_REINPLACE= yes |
26 |
USE_GMAKE= yes |
29 |
USE_GMAKE= yes |
27 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
28 |
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} |
31 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
29 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
32 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
30 |
LDFLAGS="-L${LOCALBASE}/lib" |
33 |
LDFLAGS="-L${LOCALBASE}/lib" |
31 |
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \ |
34 |
CONFIGURE_ARGS= --without-x --without-ijs --without-gimp-print \ |
32 |
--with-drivers=cups --with-gs=espgs \ |
35 |
--with-gs=espgs |
33 |
--with-fontpath=${LOCALBASE}/share/ghostscript/fonts \ |
36 |
MAKE_ARGS= CFLAGS_STANDARD="${CFLAGS} -DUPD_SIGNAL=0" \ |
34 |
--enable-compiled-inits --without-omni |
37 |
DEVICE_DEVS="\$$(DD)cups.dev" |
35 |
|
38 |
|
36 |
USE_REINPLACE= yes |
39 |
ESPGS_WRKSRC= ${WRKDIR}/espgs-7.05.6/pstoraster |
|
|
40 |
|
41 |
post-patch: |
42 |
${LN} -sf ${ESPGS_WRKSRC}/gdevcups.c ${WRKSRC}/src |
43 |
${CAT} ${FILESDIR}/cups.contrib.mak >> ${WRKSRC}/src/contrib.mak |
44 |
${SED} -e 's:@prefix@:${PREFIX}:g ; \ |
45 |
s:@exec_prefix@:${PREFIX}:g ; \ |
46 |
s:@bindir@:${PREFIX}/bin:g ; \ |
47 |
s:@GS@:espgs:g' \ |
48 |
${ESPGS_WRKSRC}/pstoraster.in > ${ESPGS_WRKSRC}/pstoraster |
49 |
${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS=@CPPFLAGS@ |g ; \ |
50 |
s|^LDFLAGS=|LDFLAGS=@LDFLAGS@ |g ; \ |
51 |
s|^DEVICE_DEVS|#DEVICE_DEVS|g' ${WRKSRC}/Makefile.in |
37 |
|
52 |
|
38 |
pre-build: |
53 |
pre-build: |
39 |
${MKDIR} ${WRKSRC}/bin |
54 |
${MKDIR} ${WRKSRC}/bin |
Lines 41-49
Link Here
|
41 |
|
56 |
|
42 |
do-install: |
57 |
do-install: |
43 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin |
58 |
${INSTALL_PROGRAM} ${WRKSRC}/bin/espgs ${PREFIX}/bin |
44 |
${INSTALL_DATA} ${WRKSRC}/pstoraster/pstoraster.convs \ |
59 |
${INSTALL_DATA} ${ESPGS_WRKSRC}/pstoraster.convs \ |
45 |
${PREFIX}/etc/cups |
60 |
${PREFIX}/etc/cups |
46 |
${INSTALL_SCRIPT} ${WRKSRC}/pstoraster/pstoraster \ |
61 |
${INSTALL_SCRIPT} ${ESPGS_WRKSRC}/pstoraster \ |
47 |
${PREFIX}/libexec/cups/filter |
62 |
${PREFIX}/libexec/cups/filter |
48 |
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \ |
63 |
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} \ |
49 |
${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter |
64 |
${PREFIX}/etc/cups ${PREFIX}/libexec/cups/filter |