pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/vfu Fix build. Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/91b19fe72dfa
branches:  trunk
changeset: 547768:91b19fe72dfa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 02 14:33:58 2008 +0000

description:
Fix build. Add DESTDIR support.

diffstat:

 misc/vfu/Makefile         |   6 ++++--
 misc/vfu/distinfo         |   4 +++-
 misc/vfu/patches/patch-ak |  13 +++++++++++++
 misc/vfu/patches/patch-al |  20 ++++++++++++++++++++
 4 files changed, 40 insertions(+), 3 deletions(-)

diffs (80 lines):

diff -r bac6f80d93ae -r 91b19fe72dfa misc/vfu/Makefile
--- a/misc/vfu/Makefile Thu Oct 02 13:58:52 2008 +0000
+++ b/misc/vfu/Makefile Thu Oct 02 14:33:58 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2008/03/04 19:21:12 jlam Exp $
+# $NetBSD: Makefile,v 1.47 2008/10/02 14:33:58 joerg Exp $
 #
 
 DISTNAME=      vfu-3.04
@@ -28,11 +28,13 @@
 
 MAKE_ENV+=     PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
 
+INSTALLATION_DIRS=     bin man/man1
+
 do-build:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.netbsd
 
 do-install:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} install
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} PREFIX=${DESTDIR}${PREFIX} ${SH} install
 
 post-install:
        ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} ${DESTDIR}${EGDIR}
diff -r bac6f80d93ae -r 91b19fe72dfa misc/vfu/distinfo
--- a/misc/vfu/distinfo Thu Oct 02 13:58:52 2008 +0000
+++ b/misc/vfu/distinfo Thu Oct 02 14:33:58 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2006/01/11 17:02:39 joerg Exp $
+$NetBSD: distinfo,v 1.10 2008/10/02 14:33:58 joerg Exp $
 
 SHA1 (vfu-3.04.src.tar.gz) = 75e87d102114dc08136420e7927e687f72a52dfd
 RMD160 (vfu-3.04.src.tar.gz) = a0d1ba84d9c66216b444226ceace190ada0e795a
@@ -13,3 +13,5 @@
 SHA1 (patch-ah) = 50b211c8ca93393f38ed7e279795e1df0606884c
 SHA1 (patch-ai) = 4a161a1df84001bdefc81384128ea74bf9d7f61d
 SHA1 (patch-aj) = 265fbb0873ce0b910ba6a53da57a18269af34b82
+SHA1 (patch-ak) = cfcfb94f1ba6169ef471ae47fdcd9ccc81196a39
+SHA1 (patch-al) = bd947171f2027243bebe889c537426124459e2e1
diff -r bac6f80d93ae -r 91b19fe72dfa misc/vfu/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/vfu/patches/patch-ak Thu Oct 02 14:33:58 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ak,v 1.1 2008/10/02 14:33:58 joerg Exp $
+
+--- vslib/conmenu.cpp.orig     2008-10-02 15:59:42.000000000 +0200
++++ vslib/conmenu.cpp
+@@ -172,7 +172,7 @@ int con_menu_box( int x, int y, const ch
+     {
+     for(z = 0; z < va->count(); z++)
+       if (strncmp("--", va->get(z), 2))
+-        str_add_ch( hots,int((const char*)(va->get(z))[hotkeys]) );
++        str_add_ch( hots,int((size_t)(const char*)(va->get(z))[hotkeys]) );
+       else
+         str_add_ch( hots,' ' );
+     str_up(hots);
diff -r bac6f80d93ae -r 91b19fe72dfa misc/vfu/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/vfu/patches/patch-al Thu Oct 02 14:33:58 2008 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-al,v 1.1 2008/10/02 14:33:58 joerg Exp $
+
+--- vslib/getopt2.h.orig       2008-10-02 16:00:52.000000000 +0200
++++ vslib/getopt2.h
+@@ -15,7 +15,7 @@
+ /* next line added by <cade%biscom.net@localhost> see getopt2.cpp for changes */
+ #define GETOPT(opts) while((optc = getopt2(argc, argv, opts)) != -1)
+ 
+-
++extern "C" {
+ extern char *optarg;
+ extern int optind;
+ extern int opterr;
+@@ -32,4 +32,6 @@ extern int opterr_report;
+ 
+ int getopt2(int argc, char *argv[], char *optstring);
+ 
++}
++
+ #endif



Home | Main Index | Thread Index | Old Index