1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Fix the build when gcc is not present.

- Support staging.
- Set LICENSE.
- Switch from USE_GMAKE to USES=gmake.
This commit is contained in:
Raphael Kubo da Costa 2014-01-03 05:40:21 +00:00
parent 64e0e4b9f2
commit b195cfd7e9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338523
5 changed files with 43 additions and 18 deletions

View File

@ -10,17 +10,15 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= User-mode virtual ethernet infrastructure
LICENSE= GPLv2
CONFLICTS= vde2-[0-9]*
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}"
USE_LDCONFIG= yes
USE_CSTD= gnu89
USES= gmake
NO_STAGE= yes
.include <bsd.port.pre.mk>
CFLAGS+= -fPIC
CFLAGS+= ${CPPFLAGS} -fPIC
MAN1= dpipe.1 slirpvde.1 vdetaplib.1 vdeq.1 vde_plug.1 vde_switch.1
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
--- Makefile Sat Jan 29 15:02:08 2005
+++ Makefile Sun Jan 30 13:46:59 2005
--- Makefile.orig 2004-08-27 10:24:43.000000000 +0300
+++ Makefile 2014-01-03 07:27:47.000000000 +0200
@@ -1,14 +1,15 @@
-TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP)
+TUNTAP = $(shell [ -e /usr/include/net/if_tun.h ] && echo -DTUNTAP)
@ -15,9 +15,9 @@
-LIB_DIR ?= /usr/local/lib
-MAN_DIR ?= /usr/local/man
+PREFIX ?= /usr/local
+BIN_DIR ?= $(PREFIX)/bin
+LIB_DIR ?= $(PREFIX)/lib
+MAN_DIR ?= $(PREFIX)/man
+BIN_DIR ?= $(DESTDIR)$(PREFIX)/bin
+LIB_DIR ?= $(DESTDIR)$(PREFIX)/lib
+MAN_DIR ?= $(DESTDIR)$(PREFIX)/man
ifneq ($(TUNTAP),)
OBJS += tuntap.o

View File

@ -1,8 +1,22 @@
--- qemu/Makefile Sat Jan 29 15:02:08 2005
+++ qemu/Makefile Sun Jan 30 12:59:52 2005
--- qemu/Makefile.orig 2004-08-27 10:34:33.000000000 +0300
+++ qemu/Makefile 2014-01-03 07:32:14.000000000 +0200
@@ -1,4 +1,4 @@
-ALL: vdeq
+all: vdeq
vdeq.o: vdeq.c ../vde.h
@@ -6,10 +6,9 @@
$(CC) -o vdeq vdeq.o
install : vdeq
- install -d $(DESTDIR)$(BIN_DIR)
- install -s vdeq $(DESTDIR)$(BIN_DIR)
- rm -f $(DESTDIR)$(BIN_DIR)/vdeqemu
- ln -s $(DESTDIR)$(BIN_DIR)/vdeq $(DESTDIR)$(BIN_DIR)/vdeqemu
+ install -d $(BIN_DIR)
+ install -s vdeq $(BIN_DIR)
+ ln -sf vdeq $(BIN_DIR)/vdeqemu
clean:
rm -f *.o vdeq

View File

@ -1,5 +1,5 @@
--- slirpvde/Makefile Sat Jan 29 15:02:08 2005
+++ slirpvde/Makefile Sun Jan 30 14:02:57 2005
--- slirpvde/Makefile.orig 2004-06-03 18:19:40.000000000 +0300
+++ slirpvde/Makefile 2014-01-03 07:25:37.000000000 +0200
@@ -3,7 +3,7 @@
tcp_timer.o udp.o \
bootp.o
@ -9,7 +9,7 @@
all: libslirp.a slirpvde
@@ -34,7 +34,7 @@
@@ -34,12 +34,12 @@
udp.o: udp.c ip_icmp.h
slirpvde: slirpvde.o libslirp.a
@ -18,3 +18,10 @@
clean:
rm -rf *.o slirpvde libslirp.a
install : slirpvde
- install -d $(DESTDIR)$(BIN_DIR)
- install -s slirpvde $(DESTDIR)$(BIN_DIR)
+ install -d $(BIN_DIR)
+ install -s slirpvde $(BIN_DIR)

View File

@ -6,3 +6,9 @@ bin/vdeq
bin/vdeqemu
bin/vdetap
lib/libvdetap.so
man/man1/dpipe.1.gz
man/man1/slirpvde.1.gz
man/man1/vdetaplib.1.gz
man/man1/vdeq.1.gz
man/man1/vde_plug.1.gz
man/man1/vde_switch.1.gz