Lines 15-47
Link Here
|
15 |
|
15 |
|
16 |
CONFLICTS= gimp-print-[0-9]* |
16 |
CONFLICTS= gimp-print-[0-9]* |
17 |
|
17 |
|
|
|
18 |
.if !defined(GUT_SLAVE) |
19 |
OPTIONS_DEFINE= GTK2 |
20 |
OPTIONS_DEFAULT=GTK2 |
21 |
OPTIONS_SUB= yes |
22 |
.endif |
23 |
|
24 |
GTK2_CONFIGURE_ENABLE= libgutenprintui2 |
25 |
GTK2_LIB_DEPENDS= libgtk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 |
26 |
|
27 |
.include <bsd.port.options.mk> |
28 |
|
18 |
USES= gettext gmake libtool pathfix pkgconfig tar:bzip2 |
29 |
USES= gettext gmake libtool pathfix pkgconfig tar:bzip2 |
19 |
USE_GNOME= gtk20 |
|
|
20 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
21 |
CONFIGURE_ARGS=--with-gimp=no --with-gimp2=no |
31 |
CONFIGURE_ARGS+=--without-gimp --without-gimp2 |
22 |
USE_LDCONFIG= yes |
32 |
USE_LDCONFIG= yes |
23 |
|
33 |
|
24 |
CPPFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include |
34 |
CPPFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include |
25 |
LDFLAGS+= -L${LOCALBASE}/lib -L${PREFIX}/lib |
35 |
LDFLAGS+= -L${LOCALBASE}/lib -L${PREFIX}/lib |
|
|
36 |
INSTALL_TARGET= install-strip |
26 |
|
37 |
|
27 |
.include <bsd.port.pre.mk> |
38 |
.include <bsd.port.pre.mk> |
28 |
|
39 |
|
29 |
.if ${SLAVE_PORT}=="yes" |
40 |
.if ${SLAVE_PORT}=="yes" |
30 |
LIB_DEPENDS+= libgutenprintui2.so:${PORTSDIR}/print/gutenprint-base |
41 |
LIB_DEPENDS+= libgutenprint.so:${PORTSDIR}/print/gutenprint-base |
31 |
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config |
42 |
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config |
32 |
GUTENPRINTUI2_LIBS=`${PKG_CONFIG} --libs gutenprintui2` |
43 |
GUTENPRINTUI2_LIBS=`${PKG_CONFIG} --libs gutenprint` |
33 |
.else |
44 |
.else |
34 |
MAN1+= escputil.1 |
45 |
MAN1+= escputil.1 |
35 |
.endif |
46 |
.endif |
36 |
|
47 |
|
37 |
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="gimp" |
48 |
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="gimp" |
38 |
LIB_DEPENDS+= libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app \ |
49 |
LIB_DEPENDS+= libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app |
39 |
libgutenprint.so:${PORTSDIR}/print/gutenprint-base |
50 |
CONFIGURE_ARGS+=--with-gimp2=yes # Override CONFIGURE_ARGS |
40 |
CONFIGURE_ARGS=--with-gimp2=yes # Override CONFIGURE_ARGS |
|
|
41 |
BUILD_WRKSRC= ${WRKSRC}/src/gimp2 |
51 |
BUILD_WRKSRC= ${WRKSRC}/src/gimp2 |
42 |
INSTALL_WRKSRC= ${WRKSRC}/src/gimp2 |
52 |
INSTALL_WRKSRC= ${WRKSRC}/src/gimp2 |
43 |
.else |
|
|
44 |
CONFIGURE_ARGS+=--without-gimp2 |
45 |
.endif |
53 |
.endif |
46 |
|
54 |
|
47 |
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="cups" |
55 |
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="cups" |
Lines 97-102
Link Here
|
97 |
@${REINPLACE_CMD} -e 's|= $$(pkglibdir)|= ${PREFIX}/libexec/cups|' \ |
105 |
@${REINPLACE_CMD} -e 's|= $$(pkglibdir)|= ${PREFIX}/libexec/cups|' \ |
98 |
${WRKSRC}/src/cups/Makefile.in |
106 |
${WRKSRC}/src/cups/Makefile.in |
99 |
|
107 |
|
|
|
108 |
pre-configure: |
109 |
.if defined(GUT_SLAVE) && (${GUT_SLAVE}=="gimp") |
110 |
@test -f ${LOCALBASE}/lib/libgutenprintui2.so || (printf "\nprint/gutenprint-base must be rebuilt with GTK2 support\n\n" && exit 1) |
111 |
.endif |
112 |
|
100 |
pre-build: |
113 |
pre-build: |
101 |
.if defined(GUT_SLAVE) && (${GUT_SLAVE}=="foomatic" || ${GUT_SLAVE}=="cups") |
114 |
.if defined(GUT_SLAVE) && (${GUT_SLAVE}=="foomatic" || ${GUT_SLAVE}=="cups") |
102 |
@(cd ${WRKSRC}/src/xml && ${MAKE}) |
115 |
@(cd ${WRKSRC}/src/xml && ${MAKE}) |
Lines 103-112
Link Here
|
103 |
.endif |
116 |
.endif |
104 |
|
117 |
|
105 |
pre-install: |
118 |
pre-install: |
106 |
@${MKDIR} ${STAGEDIR}${LOCALBASE}/lib/gutenprint/5.2/modules |
119 |
.if !defined(GUT_SLAVE) |
107 |
.if defined(GUT_SLAVE) && ${GUT_SLAVE}=="cups" |
120 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/gutenprint/5.2/modules |
108 |
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|' \ |
|
|
109 |
${WRKSRC}/src/cups/cups-genppdupdate |
110 |
.endif |
121 |
.endif |
111 |
|
122 |
|
112 |
post-install: |
123 |
post-install: |