|
Lines 3-16
Link Here
|
| 3 |
|
3 |
|
| 4 |
PORTNAME= xsane |
4 |
PORTNAME= xsane |
| 5 |
PORTVERSION= 0.999 |
5 |
PORTVERSION= 0.999 |
| 6 |
PORTREVISION= 5 |
6 |
PORTREVISION= 6 |
| 7 |
CATEGORIES= graphics |
7 |
CATEGORIES= graphics |
| 8 |
MASTER_SITES= http://www.xsane.org/download/ |
8 |
MASTER_SITES= http://www.xsane.org/download/ |
| 9 |
|
9 |
|
| 10 |
MAINTAINER= koalative@gmail.com |
10 |
MAINTAINER= koalative@gmail.com |
| 11 |
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy) |
11 |
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy) |
| 12 |
|
12 |
|
| 13 |
LICENSE= GPLv2 |
13 |
LICENSE= GPLv2+ |
|
|
14 |
LICENSE_FILE= ${WRKSRC}/xsane.COPYING |
| 14 |
|
15 |
|
| 15 |
LIB_DEPENDS= libpng.so:graphics/png \ |
16 |
LIB_DEPENDS= libpng.so:graphics/png \ |
| 16 |
libtiff.so:graphics/tiff \ |
17 |
libtiff.so:graphics/tiff \ |
|
Lines 19-31
LIB_DEPENDS= libpng.so:graphics/png \
Link Here
|
| 19 |
BUILD_DEPENDS= scanimage:graphics/sane-backends |
20 |
BUILD_DEPENDS= scanimage:graphics/sane-backends |
| 20 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
21 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
| 21 |
|
22 |
|
| 22 |
USES= gmake jpeg pkgconfig |
23 |
USES= gmake jpeg localbase:ldflags pkgconfig |
| 23 |
USE_GNOME= gtk20 gdkpixbuf2 |
24 |
USE_GNOME= gtk20 gdkpixbuf2 |
| 24 |
GNU_CONFIGURE= yes |
25 |
GNU_CONFIGURE= yes |
| 25 |
|
26 |
|
| 26 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
| 27 |
LDFLAGS+= -L${LOCALBASE}/lib |
| 28 |
|
| 29 |
PORTDOCS= *.html *.jpg |
27 |
PORTDOCS= *.html *.jpg |
| 30 |
|
28 |
|
| 31 |
OPTIONS_DEFINE= DOCS GIMP NLS |
29 |
OPTIONS_DEFINE= DOCS GIMP NLS |
|
Lines 36-54
OPTIONS_SUB= yes
Link Here
|
| 36 |
|
34 |
|
| 37 |
GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app |
35 |
GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app |
| 38 |
GIMP_CONFIGURE_ENABLE= gimp2 gimp |
36 |
GIMP_CONFIGURE_ENABLE= gimp2 gimp |
|
|
37 |
GIMP_SUB_FILES= pkg-message |
| 39 |
NLS_CONFIGURE_ENABLE= nls |
38 |
NLS_CONFIGURE_ENABLE= nls |
| 40 |
NLS_USES= gettext |
39 |
NLS_USES= gettext |
| 41 |
NLS_LIBS= -L${LOCALBASE}/lib -lintl |
40 |
NLS_LIBS= -L${LOCALBASE}/lib -lintl |
| 42 |
|
41 |
|
| 43 |
.include <bsd.port.options.mk> |
|
|
| 44 |
|
| 45 |
.if ${PORT_OPTIONS:MGIMP} |
| 46 |
SUB_FILES+= pkg-message |
| 47 |
.endif |
| 48 |
|
| 49 |
post-patch: |
42 |
post-patch: |
| 50 |
@${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \ |
43 |
@${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \ |
| 51 |
-e 's|$$(DESTDIR)$$(xsanedocdir)||' ${WRKSRC}/src/Makefile.in |
44 |
-e 's|$${datadir}/sane/xsane/doc|${DOCSDIR}|g' \ |
|
|
45 |
-e 's|$$(DESTDIR)$$(xsanedocdir)||' \ |
| 46 |
${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in |
| 52 |
@${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in |
47 |
@${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in |
| 53 |
|
48 |
|
| 54 |
post-install: |
49 |
post-install: |