freebsd-ports/textproc/scim-input-pad/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

59 lines
1.5 KiB
Makefile

# Created by: chinsan <chinsan@mail2000.com.tw>
# $FreeBSD$
PORTNAME= scim-input-pad
PORTVERSION= 0.1.3.1
PORTREVISION= 4
CATEGORIES= textproc
MASTER_SITES= SF/scim/${PORTNAME}/0.1.3/ \
http://anthesphoria.net/FreeBSD/ports/distfiles/
MAINTAINER= nikola.lecic@anthesphoria.net
COMMENT= SCIM add-on to input various symbols with customisable on-screen pad
LIB_DEPENDS= libscim-1.0.so:${PORTSDIR}/textproc/scim
USE_LDCONFIG= yes
USES= gmake pkgconfig libtool
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -D__STDC_ISO_10646__
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
DESKTOP_ENTRIES="SCIM Input Pad" \
"${COMMENT}" \
"${PREFIX}/share/scim/icons/input-pad.png" \
"scim-input-pad" \
"Utility;" \
false
DOCS= ChangeLog README
OPTIONS_DEFINE= DOCS NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
USE_GNOME= intlhack
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} \
-e '/^SCIM_LIBEXECDIR=/s|=.*|=${PREFIX}/lib/scim-1.0|' \
-e '/^SCIM_MODULEDIR=/s|=.*|=${PREFIX}/lib/scim-1.0/1.4.0|' \
-e '/^SCIM_ICONDIR=/s|=.*|=${PREFIX}/share/scim/icons|' \
-e '/^SCIM_DATADIR=/s|=.*|=${PREFIX}/share/scim|' \
-e '/^LIBTOOL_EXPORT_OPTIONS=/s/=.*/=/' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's|^_NAME|NAME|' ${WRKSRC}/data/*.pad.in
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>