Lines 24-67
Link Here
|
24 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
25 |
USE_X_PREFIX= yes |
25 |
USE_X_PREFIX= yes |
26 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
|
|
27 |
WANT_GNOME= yes |
27 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
28 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
28 |
LIBS="-L${LOCALBASE}/lib -lintl" |
29 |
LIBS="-L${LOCALBASE}/lib -lintl" |
29 |
|
30 |
|
30 |
MAN1= xsane.1 |
31 |
MAN1= xsane.1 |
31 |
|
32 |
|
32 |
.if defined(WITH_GIMP) |
33 |
OPTIONS= GTK2 "Enable GTK2 support (use GTK1 if turned off)" on \ |
33 |
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp1 |
34 |
GIMP "Enable GIMP plugin support" off |
34 |
CONFIGURE_ARGS+= --enable-gimp |
|
|
35 |
.else |
36 |
CONFIGURE_ARGS+= --disable-gimp |
37 |
.endif |
38 |
|
35 |
|
39 |
.if defined(WITH_GTK2) |
36 |
.include <bsd.port.pre.mk> |
40 |
USE_GNOME= gtk20 |
37 |
|
41 |
.else |
38 |
.if defined(WITHOUT_GTK2) |
42 |
USE_GNOME= gtk12 |
39 |
USE_GNOME= gtk12 |
43 |
CONFIGURE_ARGS+= --disable-gtk2 |
40 |
CONFIGURE_ARGS+= --disable-gtk2 |
|
|
41 |
.else |
42 |
USE_GNOME= gtk20 |
44 |
.endif |
43 |
.endif |
45 |
|
44 |
|
46 |
.include <bsd.port.pre.mk> |
45 |
.if defined(WITH_GIMP) |
|
|
46 |
.if defined(WITHOUT_GTK2) |
47 |
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp1 |
48 |
CONFIGURE_ARGS+= --disable-gimp2 |
49 |
.else |
50 |
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp |
51 |
.endif # WITHOUT_GTK2 |
52 |
.else |
53 |
CONFIGURE_ARGS+= --disable-gimp |
54 |
.endif |
47 |
|
55 |
|
48 |
.if ${OSVERSION} < 500035 |
56 |
.if ${OSVERSION} < 500035 |
49 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS:C/-O[0-9]*//g}" |
57 |
CONFIGURE_ENV+= CFLAGS="${CFLAGS:C/-O[0-9]*//g}" |
50 |
.endif |
58 |
.endif |
51 |
|
59 |
|
52 |
pre-everything:: |
|
|
53 |
.if !defined(WITH_GIMP) |
54 |
@${ECHO_MSG} "*** Note: XSane can be built with a standalone" |
55 |
@${ECHO_MSG} "*** X scanner interface as well as a GIMP plug-in." |
56 |
@${ECHO_MSG} "*** If you wish to do this, hit Ctrl-C now and use" |
57 |
@${ECHO_MSG} "*** \"WITH_GIMP=yes\"" |
58 |
.endif |
59 |
|
60 |
pre-patch: |
60 |
pre-patch: |
61 |
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \ |
61 |
@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \ |
62 |
-i "" -e 's|\$$(sbindir)||g' |
62 |
-i "" -e 's|\$$(sbindir)||g' |
63 |
|
63 |
|
64 |
post-install: |
64 |
post-install: |
|
|
65 |
.if defined(WITH_GIMP) |
65 |
@${SED} 's:/usr/X11R6:${PREFIX}:' ${PKGMESSAGE} |
66 |
@${SED} 's:/usr/X11R6:${PREFIX}:' ${PKGMESSAGE} |
|
|
67 |
.endif |
66 |
|
68 |
|
67 |
.include <bsd.port.post.mk> |
69 |
.include <bsd.port.post.mk> |