diff options
author | antoine <antoine@FreeBSD.org> | 2014-02-07 03:14:10 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-02-07 03:14:10 +0800 |
commit | 30c6156962f8b3c236c021fc5442ee9a3ed67d0c (patch) | |
tree | 315cba2ae8e5720b4fd0e7a86a5f1b85fd5e294d /net | |
parent | 6642c85c111aa1bfdfc9eb44629a54854d0c7611 (diff) | |
download | freebsd-ports-gnome-30c6156962f8b3c236c021fc5442ee9a3ed67d0c.tar.gz freebsd-ports-gnome-30c6156962f8b3c236c021fc5442ee9a3ed67d0c.tar.zst freebsd-ports-gnome-30c6156962f8b3c236c021fc5442ee9a3ed67d0c.zip |
- Stage support
- Use OPTIONS helpers
Diffstat (limited to 'net')
-rw-r--r-- | net/vde2/Makefile | 49 | ||||
-rw-r--r-- | net/vde2/pkg-plist | 20 |
2 files changed, 36 insertions, 33 deletions
diff --git a/net/vde2/Makefile b/net/vde2/Makefile index 0bd54b5ebb25..45ea54182d9e 100644 --- a/net/vde2/Makefile +++ b/net/vde2/Makefile @@ -12,44 +12,22 @@ COMMENT= User-mode virtual ethernet infrastructure LICENSE= BSD GPLv2 LGPL21 LICENSE_COMB= multi -OPTIONS_DEFINE= PYTHON -OPTIONS_DEFAULT= PYTHON - CONFLICTS= vde-[0-9]* -USES= pathfix -USE_GMAKE= yes +USES= gmake pathfix GNU_CONFIGURE= yes USE_LDCONFIG= yes +MAKE_ENV= V=1 MAKE_JOBS_UNSAFE=yes -MLINKS= unixcmd.1 vdecmd.1 \ - vdeq.1 vdeqemu.1 \ - vdeq.1 vdekvm.1 -MAN1= dpipe.1 slirpvde.1 unixcmd.1 unixterm.1 \ - vde_autolink.1 vde_cryptcab.1 vde_l3.1 vde_over_ns.1 \ - vde_pcapplug.1 vde_plug.1 vde_plug2tap.1 vde_switch.1 \ - vdeq.1 vdetaplib.1 vdeterm.1 wirefilter.1 -MAN8= vde_tunctl.8 - -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MPYTHON} -CONFIGURE_ARGS+=--disable-python -PLIST_SUB+= PYTHON="@comment " -.else -USE_PYTHON= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -PLIST_SUB+= PYTHON="" -.endif - -.include <bsd.port.pre.mk> - -.if defined(BATCH) || defined(PACKAGE_BUILDING) -MAKE_ENV+= V=1 -.endif +OPTIONS_DEFINE= PYTHON +OPTIONS_DEFAULT= PYTHON + +OPTIONS_SUB= yes +PYTHON_CONFIGURE_OFF= --disable-python +PYTHON_USE= PYTHON=yes +PYTHON_CPPFLAGS= -I${LOCALBASE}/include +PYTHON_LDFLAGS= -L${LOCALBASE}/lib post-patch: @${REINPLACE_CMD} -e '/-Wall/s|-O2||g' \ @@ -59,4 +37,9 @@ post-patch: @${REINPLACE_CMD} -e 's|^AM_CFLAGS|#AM_CFLAGS|g' \ ${WRKSRC}/src/slirpvde/Makefile.in -.include <bsd.port.post.mk> +post-install: + ${LN} -sf unixcmd.1 ${STAGEDIR}${PREFIX}/man/man1/vdecmd.1 + ${LN} -sf vdeq.1 ${STAGEDIR}${PREFIX}/man/man1/vdeqemu.1 + ${LN} -sf vdeq.1 ${STAGEDIR}${PREFIX}/man/man1/vdekvm.1 + +.include <bsd.port.mk> diff --git a/net/vde2/pkg-plist b/net/vde2/pkg-plist index facff94a3cb5..ba7582ae6aa0 100644 --- a/net/vde2/pkg-plist +++ b/net/vde2/pkg-plist @@ -55,6 +55,26 @@ libdata/pkgconfig/vdehist.pc libdata/pkgconfig/vdemgmt.pc libdata/pkgconfig/vdeplug.pc libdata/pkgconfig/vdesnmp.pc +man/man1/dpipe.1.gz +man/man1/slirpvde.1.gz +man/man1/unixcmd.1.gz +man/man1/unixterm.1.gz +man/man1/vde_autolink.1.gz +man/man1/vde_cryptcab.1.gz +man/man1/vde_l3.1.gz +man/man1/vde_over_ns.1.gz +man/man1/vde_pcapplug.1.gz +man/man1/vde_plug.1.gz +man/man1/vde_plug2tap.1.gz +man/man1/vde_switch.1.gz +man/man1/vdecmd.1.gz +man/man1/vdekvm.1.gz +man/man1/vdeq.1.gz +man/man1/vdeqemu.1.gz +man/man1/vdetaplib.1.gz +man/man1/vdeterm.1.gz +man/man1/wirefilter.1.gz +man/man8/vde_tunctl.8.gz @dirrm lib/vde2/vde_l3 @dirrm lib/vde2 @dirrm etc/vde2/libvdemgmt |