forked from Lainports/freebsd-ports
- Add CONFIGURE_ENV stuff or it will not working if it's install in
the different prefix.
- Do not extract libltdl to ensure that it will using system one.
- Kill, kill, kill the ^M.
- Respect more on ${PTHREAD_LIBS} (ie: kill the hardcore of -lc_r)
- Add autocheck on ImageMagick and libvorbis, which its configure
will doing the autochecks then enable the plugins by automatic.
It fixes the plist and dependency.
- Add strnlen() function, a non-standard, that is not exist in
FreeBSD libc, which is need for the libextractor_png.so. Without
it, evidence will complaining like this:
/libexec/ld-elf.so.1: /usr/local/lib/libextractor/libextractor_png.so:
Undefined symbol "strnlen"
- Bump the PORTREVISION.
Reported by: tmclaugh (strnlen function stuff)
Reviewed by: jylefort
Approved by: kevlo (maintainer)
59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
# New ports collection makefile for: libextractor
|
|
# Date created: 25 May 2005
|
|
# Whom: kevlo@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libextractor
|
|
PORTVERSION= 0.5.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://gnunet.org/libextractor/download/
|
|
|
|
MAINTAINER= kevlo@FreeBSD.org
|
|
COMMENT= Library for keyword extraction
|
|
|
|
USE_BZIP2= yes
|
|
USE_GNOME= glib20
|
|
USE_PYTHON= yes
|
|
USE_REINPLACE= yes
|
|
USE_AUTOTOOLS= libtool:15 libltdl
|
|
INSTALLS_SHLIB= yes
|
|
CONFIGURE_ARGS= --disable-ltdl-install
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude libltdl
|
|
|
|
MAN1= extract.1
|
|
MAN3= libextractor.3
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKSRC} -name "*.[ch]" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|
|
|
$$||g'
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/src/plugins/Makefile.*
|
|
@${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/configure
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${LOCALBASE}/include/wand/magick-wand.h)
|
|
LIB_DEPENDS+= Magick.8:${PORTSDIR}/graphics/ImageMagick
|
|
PLIST_SUB+= IMAGEMAGICK:=""
|
|
.else
|
|
PLIST_SUB+= IMAGEMAGICK:="@comment "
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/include/vorbis/vorbisfile.h)
|
|
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
|
|
PLIST_SUB+= VORBIS:=""
|
|
.else
|
|
PLIST_SUB+= VORBIS:="@comment "
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|