mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
c442fd7e9c
-fPIC is being linked into a shared library. Copy the corresponding .c file into the shared library src directory such that it is compiled a second time with -fPIC. - Enable verbose build. - Add a patch to sync Makefile.fbsd with Makefile.linux.
41 lines
908 B
Makefile
41 lines
908 B
Makefile
# Created by: dave@dogwood.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= olsrd
|
|
PORTVERSION= 0.9.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.olsr.org/releases/0.9/
|
|
|
|
MAINTAINER= koue@chaosophia.net
|
|
COMMENT= OLSR routing daemon
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
MAKE_ARGS= VERBOSE=1
|
|
USES= bison gmake tar:bzip2
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= olsrd
|
|
|
|
ALL_TARGET= build_all
|
|
INSTALL_TARGET= install_all
|
|
|
|
OPTIONS_DEFINE= MULTI_IF
|
|
MULTI_IF_DESC= IPv4 multiple interface support
|
|
|
|
MULTI_IF_LIB_DEPENDS= libnet.so:net/libnet
|
|
MULTI_IF_MAKE_ARGS= LIBNET=1
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd
|
|
@${CP} ${WRKSRC}/src/cfgparser/cfgfile_gen.c \
|
|
${WRKSRC}/src/cfgparser/olsrd_conf.h \
|
|
${WRKSRC}/lib/httpinfo/src/
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
|
|
|
|
.include <bsd.port.mk>
|