aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorohauer <ohauer@FreeBSD.org>2014-06-01 17:34:52 +0800
committerohauer <ohauer@FreeBSD.org>2014-06-01 17:34:52 +0800
commitc48749746f04413e7627e7f28589d8054cac8e48 (patch)
treed799e053d88eba712f7a3c336ad7823d018d4b74
parentee2a07964e967b3a2b8e3ec93434d509e9d6801a (diff)
downloadfreebsd-ports-gnome-c48749746f04413e7627e7f28589d8054cac8e48.tar.gz
freebsd-ports-gnome-c48749746f04413e7627e7f28589d8054cac8e48.tar.zst
freebsd-ports-gnome-c48749746f04413e7627e7f28589d8054cac8e48.zip
- add stage support
-rw-r--r--benchmarks/dbench/Makefile9
-rw-r--r--benchmarks/dbench/files/patch-Makefile.in21
-rw-r--r--benchmarks/dbench/pkg-plist3
3 files changed, 26 insertions, 7 deletions
diff --git a/benchmarks/dbench/Makefile b/benchmarks/dbench/Makefile
index f1b06562e629..84d23138eacd 100644
--- a/benchmarks/dbench/Makefile
+++ b/benchmarks/dbench/Makefile
@@ -21,12 +21,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=--datadir=${DATADIR}
-MAN1= dbench.1
-MLINKS= dbench.1 tbench.1 dbench.1 tbench_srv.1
-
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e 's,$$(mandir),$$(mandir)/man1,' \
- ${WRKSRC}/Makefile.in
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
.include <bsd.port.mk>
diff --git a/benchmarks/dbench/files/patch-Makefile.in b/benchmarks/dbench/files/patch-Makefile.in
new file mode 100644
index 000000000000..5f498032fdcd
--- /dev/null
+++ b/benchmarks/dbench/files/patch-Makefile.in
@@ -0,0 +1,21 @@
+--- ./Makefile.in.orig 2014-06-01 10:35:20.000000000 +0200
++++ ./Makefile.in 2014-06-01 10:36:46.000000000 +0200
+@@ -32,12 +32,12 @@
+
+ # Careful here: don't install client.txt over itself.
+ install: all
+- ${INSTALLCMD} -d $(bindir) $(datadir) $(mandir)
+- ${INSTALLCMD} dbench tbench tbench_srv $(bindir)
+- ${INSTALLCMD} client.txt $(datadir)
+- ${INSTALLCMD} -m644 dbench.1 $(mandir)
+- ln -sf dbench.1 $(mandir)/tbench.1
+- ln -sf dbench.1 $(mandir)/tbench_srv.1
++ ${INSTALLCMD} -d $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) $(DESTDIR)$(mandir)/man1
++ ${INSTALLCMD} dbench tbench tbench_srv $(DESTDIR)$(bindir)
++ ${INSTALLCMD} client.txt $(DESTDIR)$(datadir)
++ ${INSTALLCMD} -m644 dbench.1 $(DESTDIR)$(mandir)/man1
++ ln -sf dbench.1 $(DESTDIR)$(mandir)/man1/tbench.1
++ ln -sf dbench.1 $(DESTDIR)$(mandir)/man1/tbench_srv.1
+
+ clean:
+ rm -f *.o *~ dbench tbench tbench_srv
diff --git a/benchmarks/dbench/pkg-plist b/benchmarks/dbench/pkg-plist
index 7b4adde1c4bf..9133fe8e64fe 100644
--- a/benchmarks/dbench/pkg-plist
+++ b/benchmarks/dbench/pkg-plist
@@ -1,5 +1,8 @@
bin/dbench
bin/tbench
bin/tbench_srv
+man/man1/dbench.1.gz
+man/man1/tbench.1.gz
+man/man1/tbench_srv.1.gz
%%DATADIR%%/client.txt
@dirrm %%DATADIR%%