1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/devel/librcc/Makefile
Tijl Coosemans a374acb969 By default libtool replaces -export-symbols <file> with -retain-symbols-file
<file> on ELF systems, but this doesn't really do what -export-symbols is
meant to do.  On GNU ELF systems it converts <file> to a simple version
script first and then uses -version-script instead of -retain-symbols-file.
Let USES=libtool patch libtool scripts to do this on all systems with GNU
ld(1).

Bump PORTREVISION on all ports where the build log contains -export-symbols.

audio/calf: This port builds a module that now exports only one function,
but it also builds a number of executables that link to this module and
expect to see other functions.  Because it's already a bit dodgy to link to
a module (libtool warns about this) let the module continue to export only
one function and instead build an ordinary library from the same source that
the executables can link to.  Fix a number of other issues in the same
Makefile.am and clean up the port Makefile.

japanese/scim-honoka: Tries to hide all symbols that start with an
underscore, but because this library is written in C++ all symbols start
with _Z so it ends up hiding everything.  Just don't hide anything at all
like the textproc/scim configure script does.

multimedia/schroedinger: Apply an upstream patch.

textproc/scim-input-pad: Same as japanese/scim-honoka.

PR:		201922
Approved by:	portmgr (antoine)
Exp-run by:	antoine
2015-08-02 15:03:19 +00:00

79 lines
1.9 KiB
Makefile

# Created by: Ulrich Spoerlein <uspoerlein@gmail.com>
# $FreeBSD$
PORTNAME= librcc
PORTVERSION= 0.2.12
PORTREVISION= 7
CATEGORIES= devel
MASTER_SITES= http://dside.dyndns.org/files/rusxmms/ \
LOCAL/fluffy
MAINTAINER= fluffy@FreeBSD.org
COMMENT= Library used by rusxmms for language autodetection
LIB_DEPENDS= librcd.so:${PORTSDIR}/devel/librcd \
libenca.so:${PORTSDIR}/converters/enca \
libaspell.so:${PORTSDIR}/textproc/aspell
GNU_CONFIGURE= yes
USE_GNOME= libxml2
USES= gmake iconv libtool pathfix pkgconfig tar:bzip2
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= BDB TRANSLATE TOOLS GTK1 GTK2 GTK3
OPTIONS_DEFAULT=TOOLS GTK2
OPTIONS_SUB= yes
BDB_DESC= Translation database support
BDB_CONFIGURE_ENABLE= bdb
BDB_CPPFLAGS= -I${BDB_INCLUDE_DIR}
BDB_LDFLAGS= -L${BDB_LIB_DIR}
BDB_USE= BDB=41+
TRANSLATE_DESC= Online translation support
TRANSLATE_CONFIGURE_ENABLE= libtranslate
TRANSLATE_LIB_DEPENDS= libtranslate.so:${PORTSDIR}/textproc/libtranslate
TOOLS_DESC= Recode configuration utility
TOOLS_EXTRA_PATCHES= ${FILESDIR}/extrapatch-rcc-config
GTK1_CONFIGURE_ENABLE= gtk1
GTK1_USE= GNOME=glib12,gtk12
GTK2_CONFIGURE_ENABLE= gtk2
GTK2_USE= GNOME=gtk20
GTK3_CONFIGURE_ENABLE= gtk3
GTK3_USE= GNOME=gtk30
.include <bsd.port.pre.mk>
.if empty(ICONV_LIB)
CONFIGURE_ARGS+=--enable-force-system-iconv
.endif
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK3}
CONFIGURE_ARGS+=--enable-glib2
PLIST_SUB+= WITH_GLIB2=""
.else
CONFIGURE_ARGS+=--disable-glib2
PLIST_SUB+= WITH_GLIB2="@comment "
.endif
pre-everything::
.if ${ARCH} == "i386"
.if ${PORT_OPTIONS:MBDB} || ${PORT_OPTIONS:MTRANSLATE}
@${ECHO} 'BDB/LibTranslate support may cause breakages in depended apps on ${ARCH}'
@${ECHO} 'Use it with caution'
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/external/rccexternal.c
.include <bsd.port.post.mk>