Lines 36-44
Link Here
|
36 |
PLIST_SUB= VERSION=${PORTVERSION} \ |
36 |
PLIST_SUB= VERSION=${PORTVERSION} \ |
37 |
LIBVERSION=2.2 |
37 |
LIBVERSION=2.2 |
38 |
|
38 |
|
|
|
39 |
OPTIONS= CUPS "Enable CUPS support" on |
40 |
|
39 |
.include <bsd.port.pre.mk> |
41 |
.include <bsd.port.pre.mk> |
40 |
|
42 |
|
41 |
.if (defined(WITH_CUPS) || exists(${LOCALBASE}/lib/libcups.so)) && !defined(WITHOUT_CUPS) |
43 |
.if defined(WITH_CUPS) && !defined(WITHOUT_CUPS) |
42 |
CONFIGURE_ARGS+= --with-cups |
44 |
CONFIGURE_ARGS+= --with-cups |
43 |
LIB_DEPENDS+= gnomecups-1.0:${PORTSDIR}/print/libgnomecups |
45 |
LIB_DEPENDS+= gnomecups-1.0:${PORTSDIR}/print/libgnomecups |
44 |
PLIST_SUB+= CUPS:="" |
46 |
PLIST_SUB+= CUPS:="" |
Lines 47-59
Link Here
|
47 |
PLIST_SUB+= CUPS:="@comment " |
49 |
PLIST_SUB+= CUPS:="@comment " |
48 |
.endif |
50 |
.endif |
49 |
|
51 |
|
50 |
pre-everything:: |
|
|
51 |
.if !defined(WITH_CUPS) |
52 |
@${ECHO_MSG} " Enable cups support by defining" |
53 |
@${ECHO_MSG} " WITH_CUPS" |
54 |
@${ECHO_MSG} "" |
55 |
.endif |
56 |
|
57 |
post-patch: |
52 |
post-patch: |
58 |
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ |
53 |
@${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \ |
59 |
's|<malloc[.]h>|<stdlib.h>|' |
54 |
's|<malloc[.]h>|<stdlib.h>|' |