1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/net/ns3/Makefile
Jan Beich f22e1ca5fa net/ns3: require C++11 toolchain (on powerpc*, mips*, sparc*)
cc1plus: error: unrecognized command line option "-std=c++11"

../examples/wireless/wifi-multi-tos.cc:124:24: error: no matching constructor for initialization of 'std::vector<uint8_t>' (aka 'vector<unsigned char>')
  std::vector<uint8_t> tosValues = {0x70, 0x28, 0xb8, 0xc0}; //AC_BE, AC_BK, AC_VI, AC_VO
                       ^           ~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/4.2/bits/stl_vector.h:266:9: note: candidate constructor template not viable: requires at most 3 arguments, but 4 were provided
        vector(_InputIterator __first, _InputIterator __last,
        ^
/usr/include/c++/4.2/bits/stl_vector.h:224:7: note: candidate constructor not viable: requires at most 3 arguments, but 4 were provided
      vector(size_type __n, const value_type& __value = value_type(),
      ^
/usr/include/c++/4.2/bits/stl_vector.h:212:7: note: candidate constructor not viable: requires single argument '__a', but 4 arguments were provided
      vector(const allocator_type& __a)
      ^
/usr/include/c++/4.2/bits/stl_vector.h:242:7: note: candidate constructor not viable: requires single argument '__x', but 4 arguments were provided
      vector(const vector& __x)
      ^
/usr/include/c++/4.2/bits/stl_vector.h:208:7: note: candidate constructor not viable: requires 0 arguments, but 4 were provided
      vector()
      ^
1 error generated.

Reported by:	pkg-fallout (mips64)
2017-12-12 02:40:39 +00:00

54 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= ns3
PORTVERSION= 3.27
CATEGORIES= net
MASTER_SITES= https://www.nsnam.org/release/
DISTNAME= ns-allinone-${PORTVERSION}
MAINTAINER= koue@chaosophia.net
COMMENT= Network simulator for Internet systems
LICENSE= GPLv2
USES= compiler:c++11-lib gettext pkgconfig python sqlite tar:bzip2 waf
USE_GNOME= libxml2
USE_LDCONFIG= yes
WRKSRC_SUBDIR= ns-${DISTVERSION}
CONFIGURE_ARGS= --int64x64=cairo
PLIST_SUB= VERSION="${PORTVERSION}"
OPTIONS_DEFINE= DEBUG EXAMPLES GSL GTK2 SUDO TEST
OPTIONS_DEFAULT=TEST
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ON= --build-profile=debug
DEBUG_PLIST_SUB= DEBUG_SUFX="-debug"
DEBUG_CONFIGURE_OFF= --build-profile=release
DEBUG_PLIST_SUB_OFF= DEBUG_SUFX=""
EXAMPLES_CONFIGURE_ENABLE= examples
GSL_DESC= GNU Scientific Library support
GSL_LIB_DEPENDS= libgsl.so:math/gsl
GTK2_USE= GNOME=atk,cairo,gdkpixbuf2,glib20,gtk20,pango
GTK2_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
GTK2_CONFIGURE_OFF= --disable-gtk
SUDO_DESC= Use sudo to set suid bits on executables
SUDO_BUILD_DEPENDS= sudo:security/sudo
SUDO_CONFIGURE_ON= --enable-sudo
TEST_CONFIGURE_ENABLE= tests
post-install:
@${FIND} ${STAGEDIR} \( -path '*/bin/*' -or -name '*.so' \) \
-type f -exec ${STRIP_CMD} {} +
@${FIND} ${STAGEDIR} \( -path '*/pkgconfig/*' -or \
-name 'config-store-config.h' \) \
-type f -exec ${REINPLACE_CMD} -i '' 's,${STAGEDIR},,' {} +
.include <bsd.port.mk>