openbsd-ports/net/olsrd/Makefile
2022-03-31 16:19:20 +00:00

71 lines
1.7 KiB
Makefile

COMMENT-main= OLSR routing daemon
COMMENT-gui= OLSR routing daemon GUI
VERSION= 0.9.6.1
DISTNAME= olsrd-${VERSION}
PKGNAME-main= olsrd-${VERSION}
PKGNAME-gui= olsrd-gui-${VERSION}
REVISION-main= 4
REVISION-gui= 3
CATEGORIES= net
HOMEPAGE= http://www.olsr.org/
MASTER_SITES= ${HOMEPAGE}releases/0.9/
MAINTAINER= Stefan Sperling <stsp@openbsd.org>
# BSD
PERMIT_PACKAGE= Yes
MULTI_PACKAGES= -main -gui
BUILD_DEPENDS= devel/bison
WANTLIB-main= c
LIB_DEPENDS-gui= x11/gtk+2
WANTLIB-gui += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB-gui += Xrandr Xrender atk-1.0 c cairo fontconfig freetype
WANTLIB-gui += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB-gui += gtk-x11-2.0 intl m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB-gui += z harfbuzz
USE_GMAKE= Yes
NO_TEST= Yes
ALL_TARGET= build_all
MAKE_FLAGS= CC="${CC}" OS=obsd VERBOSE=1
.ifdef DEBUG
MAKE_FLAGS+= DEBUG=1
.else
MAKE_FLAGS+= DEBUG=0
.endif
FAKE_FLAGS= SBINDIR=${DESTDIR}/${PREFIX}/sbin \
ETCDIR=${DESTDIR}/${PREFIX}/share/examples/olsrd \
LIBDIR=${DESTDIR}/${PREFIX}/lib/olsrd-plugins \
DOCDIR=${DESTDIR}/${PREFIX}/share/doc/olsrd \
MANDIR=${DESTDIR}/${PREFIX}/man
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/plugin_loader.c
post-build:
cd ${WRKSRC}/gui/linux-gtk; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
INSTALL_TARGET= install_all
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/olsrd-plugins
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/gui/linux-gtk/olsrd-gui ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/lib/dot_draw/olsr-topology-view.pl \
${PREFIX}/bin
cd ${PREFIX}/man; gzip -f -d man5/olsrd.conf.5.gz man8/olsrd.8.gz
${INSTALL_DATA} ${WRKSRC}/files/olsrd.conf.default.* \
${PREFIX}/share/examples/olsrd
.include <bsd.port.mk>