ajacoutot c55fd45374 Prevent devel/mico from going online during build (DNS lookup its hostname if
not in /etc/hosts); aka unbreak on bulks where _pbuild is not allowed network
access.

solution from Karel Gardas
ok sthen@
2016-06-08 21:20:26 +00:00

53 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2016/06/08 21:20:26 ajacoutot Exp $
COMMENT= free and complete CORBA-compliant implementation
V= 2.3.13
DISTNAME= mico-${V}
CATEGORIES= devel
REVISION= 1
# The build framework accommodates only a single shared lib extension.
SHARED_LIBS= mico${V} ${LIB_VERSION} \
micoaux${V} ${LIB_VERSION} \
micocoss${V} ${LIB_VERSION} \
micoir${V} ${LIB_VERSION} \
micox${V} ${LIB_VERSION}
LIB_VERSION= 0.0
HOMEPAGE= http://www.mico.org/
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mico/}
# LGPL/GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c m ncurses readline stdc++
WANTLIB+= crypto ssl ICE SM X11 Xt pthread
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= LIB_VERSION=${LIB_VERSION}
CONFIGURE_ARGS+= --disable-optimize
CONFIGURE_ARGS+= --with-ssl
SUBST_VARS+= V
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC}/admin
FAKE_FLAGS= INSTDIR=${WRKINST}${PREFIX} \
SHARED_INSTDIR=${DESTDIR}${PREFIX}/share
WRKDIST= ${WRKDIR}/mico
# in case we can't resolve ourselves, don't use the network to make a DNS lookup
MAKE_ENV= MICORC=${WRKSRC}/openbsd-ports.rc
pre-build:
echo '-ORBIIOPAddr inet:127.0.0.1:0 -ORBNoResolve' \
>${WRKSRC}/openbsd-ports.rc
cd ${WRKSRC}/idl && ${GMAKE} generate
pre-test:
cd ${WRKSRC}/test && ${GMAKE} prg
.include <bsd.port.mk>