55b8aef061
PR: 195884 Submitted by: Nikola Kolev <koue@chaosophia.net> (maintainer)
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libosmocore
|
|
PORTVERSION= 0.7.0
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://git.osmocom.org/libosmocore/snapshot/ \
|
|
http://chaosophia.net/downloads/osmocom/${PORTNAME}/
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= Common library for all Osmocom projects
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= gmake libtool pkgconfig execinfo
|
|
USE_AUTOTOOLS= aclocal autoconf automake libtoolize autoheader
|
|
AUTOMAKE_ARGS= --gnu --add-missing --copy
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCS_DESC= Build documentation
|
|
OPTIONS_UNSET= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
|
|
dot:${PORTSDIR}/graphics/graphviz
|
|
.endif
|
|
|
|
post-patch:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${CP} ${WRKSRC}/Makefile.am.orig ${WRKSRC}/Makefile.am
|
|
.endif
|
|
${REINPLACE_CMD} -e 's|pkgconfigdir.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g' \
|
|
${WRKSRC}/Makefile.am
|
|
${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in codec core gsm vty
|
|
${FIND} ${WRKSRC}/doc/${i}/html -not -type d | ${SED} \
|
|
's,^${WRKSRC}/doc/${i}/html,${DOCSDIR_REL}/${i}/html,' >> ${TMPPLIST}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|