1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/devel/pydbus-common/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

85 lines
2.4 KiB
Makefile

# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
# $FreeBSD$
PORTNAME= dbus
PORTVERSION= 1.2.0
PORTREVISION?= 1
CATEGORIES= devel gnome python
MASTER_SITES= http://dbus.freedesktop.org/releases/dbus-python/
PKGNAMEPREFIX?= py
PKGNAMESUFFIX?= -common
DISTNAME= dbus-python-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT?= Common files for the Python bindings for the D-BUS messaging system
BUILD_DEPENDS= dbus-glib>=0:${PORTSDIR}/devel/dbus-glib
SLAVE_PORT?= no
USES= gettext gmake libtool pathfix pkgconfig
GNU_CONFIGURE= yes
CPPFLAGS+= -I${PYTHON_INCLUDEDIR}
CONFIGURE_ARGS= --docdir=${DOCSDIR} \
--disable-api-docs
INSTALL_TARGET= install-strip
.if ${SLAVE_PORT} == no
USES+= python:2,build
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_SUB= yes
OPTIONS_DEFINE= HTMLDOCS
HTMLDOCS_DESC= build html documentation
HTMLDOCS_CONFIGURE_OFF= --disable-html-docs
HTMLDOCS_BUILD_DEPENDS= rst2html:${PORTSDIR}/textproc/py-docutils
.include <bsd.port.options.mk>
post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|HEADERS install-dist_docDATA|HEADERS|g ; \
s|PYTHON install-nodist_docDATA|PYTHON|g' \
${WRKSRC}/Makefile.in
.endif
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/dbus-1.0/dbus/
${INSTALL_DATA} ${WRKSRC}/include/dbus-python.h \
${STAGEDIR}${PREFIX}/include/dbus-1.0/dbus/dbus-python.h
${INSTALL_DATA} ${WRKSRC}/dbus-python.pc \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/dbus-python.pc
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MHTMLDOCS}
${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR} && \
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
.endif
.else # slave is defined
LIB_DEPENDS+= libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS+= pydbus-common>=0:${PORTSDIR}/devel/pydbus-common
USE_LDCONFIG= yes
.if ${SLAVE_PORT} == python2
USES+= python:2
.endif
.if ${SLAVE_PORT} == python3
USES+= python:3
.endif
post-install:
@${RM} -rf ${STAGEDIR}${PREFIX}/include/dbus-1.0 \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/dbus-python.pc
@${RM} -fr ${STAGEDIR}/${DOCSDIR}
.endif # end of slaving block
.include <bsd.port.mk>