View | Details | Raw Unified | Return to bug 272311 | Differences between
and this patch

Collapse All | Expand All

(-)b/textproc/libextractor/Makefile (-1 / +4 lines)
Lines 1-88 Link Here
1
PORTNAME=	libextractor
1
PORTNAME=	libextractor
2
PORTVERSION=	1.11
2
PORTVERSION=	1.11
3
PORTREVISION=	6
3
PORTREVISION=	6
4
CATEGORIES=	textproc
4
CATEGORIES=	textproc
5
MASTER_SITES=	GNU
5
MASTER_SITES=	GNU
6
6
7
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	ports@FreeBSD.org
8
COMMENT=	Library for keyword extraction
8
COMMENT=	Library for keyword extraction
9
WWW=		https://www.gnu.org/software/libextractor/
9
WWW=		https://www.gnu.org/software/libextractor/
10
10
11
BROKEN=		does not compile with exiv2 0.28
12
DEPRECATED=	does not compile with exiv2 0.28, and no ports tree users
13
EXPIRATION_DATE=2023-09-30
14
11
LICENSE=	GPLv3
15
LICENSE=	GPLv3
12
LICENSE_FILE=	${WRKSRC}/COPYING
16
LICENSE_FILE=	${WRKSRC}/COPYING
13
17
14
BUILD_DEPENDS=	tidy-html5>0:www/tidy-html5
18
BUILD_DEPENDS=	tidy-html5>0:www/tidy-html5
15
LIB_DEPENDS=	libltdl.so:devel/libltdl libogg.so:audio/libogg \
19
LIB_DEPENDS=	libltdl.so:devel/libltdl libogg.so:audio/libogg \
16
		libtiff.so:graphics/tiff
20
		libtiff.so:graphics/tiff
17
21
18
USES=		cpe gnome iconv jpeg libarchive libtool \
22
USES=		cpe gnome iconv jpeg libarchive libtool \
19
		makeinfo pathfix pkgconfig python
23
		makeinfo pathfix pkgconfig python
20
CPE_VENDOR=	gnu
24
CPE_VENDOR=	gnu
21
25
22
USE_GNOME=	gtk20 gdkpixbuf2
26
USE_GNOME=	gtk20 gdkpixbuf2
23
USE_LDCONFIG=	yes
27
USE_LDCONFIG=	yes
24
28
25
CONFLICTS_INSTALL=	csound outguess # bin/extract
29
CONFLICTS_INSTALL=	csound outguess # bin/extract
26
30
27
GNU_CONFIGURE=	yes
31
GNU_CONFIGURE=	yes
28
CONFIGURE_ARGS=	--disable-ffmpeg \
32
CONFIGURE_ARGS=	--disable-ffmpeg \
29
		--with-gtk-version=2 \
33
		--with-gtk-version=2 \
30
		--with-ltdl=${LOCALBASE}
34
		--with-ltdl=${LOCALBASE}
31
INSTALL_TARGET=	install-strip
35
INSTALL_TARGET=	install-strip
32
36
33
CPPFLAGS+=	$$(pkg-config --cflags gtk+-2.0) \
37
CPPFLAGS+=	$$(pkg-config --cflags gtk+-2.0) \
34
		-I${LOCALBASE}/include
38
		-I${LOCALBASE}/include
35
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
39
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
36
40
37
INFO=		libextractor
41
INFO=		libextractor
38
42
39
OPTIONS_DEFINE=		EXIV2 FLAC GIF GSF GSTREAMER MPEG2 MP4 \
43
OPTIONS_DEFINE=		EXIV2 FLAC GIF GSF GSTREAMER MPEG2 MP4 \
40
			NLS RPM SMF TIDY VORBIS
44
			NLS RPM SMF TIDY VORBIS
41
45
42
OPTIONS_DEFAULT=	EXIV2 FLAC GIF GSF GSTREAMER MPEG2 MP4 \
46
OPTIONS_DEFAULT=	EXIV2 FLAC GIF GSF GSTREAMER MPEG2 MP4 \
43
			RPM SMF TIDY VORBIS
47
			RPM SMF TIDY VORBIS
44
48
45
OPTIONS_SUB=		yes
49
OPTIONS_SUB=		yes
46
50
47
GSF_DESC=		GSF (OLE2 (MS office) support)
51
GSF_DESC=		GSF (OLE2 (MS office) support)
48
RPM_DESC=		RPM package format support
52
RPM_DESC=		RPM package format support
49
SMF_DESC=		Standard MIDI file support via LibSMF
53
SMF_DESC=		Standard MIDI file support via LibSMF
50
54
51
EXIV2_LIB_DEPENDS=	libexiv2.so:graphics/exiv2
55
EXIV2_LIB_DEPENDS=	libexiv2.so:graphics/exiv2
52
EXIV2_CONFIGURE_ENV=	EXIV2_H="<exiv2/image.hpp>"
56
EXIV2_CONFIGURE_ENV=	EXIV2_H="<exiv2/image.hpp>"
53
EXIV2_CONFIGURE_ENV_OFF=	EXIV2_H=""
57
EXIV2_CONFIGURE_ENV_OFF=	EXIV2_H=""
54
FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
58
FLAC_LIB_DEPENDS=	libFLAC.so:audio/flac
55
FLAC_CONFIGURE_ENV_OFF=ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no
59
FLAC_CONFIGURE_ENV_OFF=ac_cv_lib_FLAC_FLAC__stream_decoder_init_stream=no
56
GIF_LIB_DEPENDS=	libgif.so:graphics/giflib
60
GIF_LIB_DEPENDS=	libgif.so:graphics/giflib
57
GIF_CONFIGURE_ENV_OFF=	ac_cv_lib_gif_DGifOpen=no
61
GIF_CONFIGURE_ENV_OFF=	ac_cv_lib_gif_DGifOpen=no
58
GSF_USE=		gnome=libgsf
62
GSF_USE=		gnome=libgsf
59
GSF_CONFIGURE_ENV_OFF=	ac_cv_lib_gsf_1_gsf_init=no
63
GSF_CONFIGURE_ENV_OFF=	ac_cv_lib_gsf_1_gsf_init=no
60
GSTREAMER_USES=		gstreamer
64
GSTREAMER_USES=		gstreamer
61
GSTREAMER_CONFIGURE_WITH=	gstreamer
65
GSTREAMER_CONFIGURE_WITH=	gstreamer
62
MP4_LIB_DEPENDS=	libmp4v2.so:multimedia/mp4v2
66
MP4_LIB_DEPENDS=	libmp4v2.so:multimedia/mp4v2
63
MP4_CONFIGURE_ENV_OFF=	ac_cv_lib_mp4v2_MP4ReadProvider=no
67
MP4_CONFIGURE_ENV_OFF=	ac_cv_lib_mp4v2_MP4ReadProvider=no
64
MPEG2_LIB_DEPENDS=	libmpeg2.so:multimedia/libmpeg2
68
MPEG2_LIB_DEPENDS=	libmpeg2.so:multimedia/libmpeg2
65
MPEG2_CONFIGURE_ENV_OFF=	ac_cv_lib_mpeg2_mpeg2_init=no
69
MPEG2_CONFIGURE_ENV_OFF=	ac_cv_lib_mpeg2_mpeg2_init=no
66
NLS_USES=		gettext-runtime
70
NLS_USES=		gettext-runtime
67
NLS_CONFIGURE_ENABLE=	nls
71
NLS_CONFIGURE_ENABLE=	nls
68
RPM_LIB_DEPENDS=	librpm.so:archivers/rpm4
72
RPM_LIB_DEPENDS=	librpm.so:archivers/rpm4
69
RPM_CONFIGURE_ENV=	ac_cv_lib_rpm_rpmReadPackageFile=yes
73
RPM_CONFIGURE_ENV=	ac_cv_lib_rpm_rpmReadPackageFile=yes
70
RPM_CONFIGURE_ENV_OFF=	ac_cv_lib_rpm_rpmReadPackageFile=no
74
RPM_CONFIGURE_ENV_OFF=	ac_cv_lib_rpm_rpmReadPackageFile=no
71
SMF_LIB_DEPENDS=	libsmf.so:audio/libsmf
75
SMF_LIB_DEPENDS=	libsmf.so:audio/libsmf
72
SMF_CONFIGURE_ENV_OFF=	ac_cv_lib_smf_smf_load_from_memory=no
76
SMF_CONFIGURE_ENV_OFF=	ac_cv_lib_smf_smf_load_from_memory=no
73
TIDY_LIB_DEPENDS=	libtidy.so:www/tidy-lib
77
TIDY_LIB_DEPENDS=	libtidy.so:www/tidy-lib
74
TIDY_CONFIGURE_ENV=	TIDY_H="<tidy/tidy.h>"
78
TIDY_CONFIGURE_ENV=	TIDY_H="<tidy/tidy.h>"
75
TIDY_CONFIGURE_ENV_OFF=	TIDY_H=""
79
TIDY_CONFIGURE_ENV_OFF=	TIDY_H=""
76
VORBIS_LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
80
VORBIS_LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
77
VORBIS_CONFIGURE_ENV_OFF=	ac_cv_lib_vorbisfile_ov_open_callbacks=no
81
VORBIS_CONFIGURE_ENV_OFF=	ac_cv_lib_vorbisfile_ov_open_callbacks=no
78
82
79
post-patch:
83
post-patch:
80
	@${REINPLACE_CMD} -e \
84
	@${REINPLACE_CMD} -e \
81
		's|-lstdc++|| ; \
85
		's|-lstdc++|| ; \
82
		 s|-lc_r|-pthread| ; \
86
		 s|-lc_r|-pthread| ; \
83
		 s|<exiv2/image.hpp>|$${EXIV2_H}| ; \
87
		 s|<exiv2/image.hpp>|$${EXIV2_H}| ; \
84
		 s|<tidy/tidy.h>|$${TIDY_H}|' ${WRKSRC}/configure
88
		 s|<tidy/tidy.h>|$${TIDY_H}|' ${WRKSRC}/configure
85
	@${REINPLACE_CMD} -e 's|tidy/tidybuffio\.h|tidybuffio.h|' \
89
	@${REINPLACE_CMD} -e 's|tidy/tidybuffio\.h|tidybuffio.h|' \
86
		${WRKSRC}/src/plugins/html_extractor.c
90
		${WRKSRC}/src/plugins/html_extractor.c
87
91
88
.include <bsd.port.mk>
92
.include <bsd.port.mk>
89
- 

Return to bug 272311