summaryrefslogtreecommitdiff
path: root/editors/lfhex
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-02-26 11:21:51 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-02-26 11:21:51 +0000
commitce55c152acca2bf4d93393b2aa656197411d1ffb (patch)
tree019e3cbdf1bd33e325a60d069c859f5082753d85 /editors/lfhex
parent- update to 10.26.50 (diff)
- Update to 0.4
PR: 121085 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=207928
Diffstat (limited to 'editors/lfhex')
-rw-r--r--editors/lfhex/Makefile32
-rw-r--r--editors/lfhex/distinfo6
-rw-r--r--editors/lfhex/files/patch-expr.h10
-rw-r--r--editors/lfhex/files/patch-mappings.h (renamed from editors/lfhex/files/patch-src-mappings.h)10
-rw-r--r--editors/lfhex/files/patch-src::expr.h10
5 files changed, 34 insertions, 34 deletions
diff --git a/editors/lfhex/Makefile b/editors/lfhex/Makefile
index e1df23121ecf..7c9150ae6cf3 100644
--- a/editors/lfhex/Makefile
+++ b/editors/lfhex/Makefile
@@ -7,8 +7,7 @@
#
PORTNAME= lfhex
-PORTVERSION= 0.3.7.2
-PORTREVISION= 2
+PORTVERSION= 0.4
CATEGORIES= editors
MASTER_SITES= http://stoopidsimple.com/files/ \
http://home.earthlink.net/~eyekode/data/
@@ -16,28 +15,29 @@ MASTER_SITES= http://stoopidsimple.com/files/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Large file hex editor
-USE_QT_VER= 3
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui moc_build qmake_build rcc
USE_BISON= build
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --with-qt-moc=${MOC}
-
-MAKE_ARGS= CXXFLAGS="${CXXFLAGS}" \
- EXEC_PREFIX="${PREFIX}/bin" \
- IFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
- LFLAGS="${QTCFGLIBS} -lqt-mt ${PTHREAD_LIBS}" \
- INSTALL="${INSTALL_PROGRAM}" \
- VERBOSE=1
+PORTDOCS= README
PLIST_FILES= bin/lfhex
.include <bsd.port.pre.mk>
post-patch:
+ @${REINPLACE_CMD} -e 's|^DEFINES|# DEFINES|g' ${WRKSRC}/lfhex.pro
.if ${OSVERSION} >= 700042
- ${REINPLACE_CMD} -e 's|abs|llabs|g' \
- ${WRKSRC}/src/reader.cpp
+ @${REINPLACE_CMD} -e 's| abs| llabs|g' ${WRKSRC}/reader.cpp
+.endif
+
+pre-build:
+ @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} -unix lfhex.pro
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/lfhex ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
diff --git a/editors/lfhex/distinfo b/editors/lfhex/distinfo
index 14574bcef87f..d0884f7ae8e8 100644
--- a/editors/lfhex/distinfo
+++ b/editors/lfhex/distinfo
@@ -1,3 +1,3 @@
-MD5 (lfhex-0.3.7.2.tar.gz) = 480ec675ce163d6a5e9691d7e625484b
-SHA256 (lfhex-0.3.7.2.tar.gz) = 65c83e85012697099b09dc18db4860c03f5a0ec28e4405e85f085de1ddf46c0a
-SIZE (lfhex-0.3.7.2.tar.gz) = 70871
+MD5 (lfhex-0.4.tar.gz) = 7c664502819cfe8bd984f3f2a683df66
+SHA256 (lfhex-0.4.tar.gz) = 97e3f481a275671395d2b500d904474dfaaf5055b42b0f230e3ac6a2478897b0
+SIZE (lfhex-0.4.tar.gz) = 39180
diff --git a/editors/lfhex/files/patch-expr.h b/editors/lfhex/files/patch-expr.h
new file mode 100644
index 000000000000..b4a218077384
--- /dev/null
+++ b/editors/lfhex/files/patch-expr.h
@@ -0,0 +1,10 @@
+--- expr.h.orig Sun Nov 5 13:26:04 2006
++++ expr.h Wed Dec 26 02:53:48 2007
+@@ -19,6 +19,7 @@
+ */
+
+ #include <string>
++#include <sys/types.h>
+
+ bool expr_eval( const std::string &str, off_t &value );
+
diff --git a/editors/lfhex/files/patch-src-mappings.h b/editors/lfhex/files/patch-mappings.h
index f78cf1ee2f10..bb3a99e35974 100644
--- a/editors/lfhex/files/patch-src-mappings.h
+++ b/editors/lfhex/files/patch-mappings.h
@@ -1,6 +1,6 @@
---- src/mappings.h.orig 2005-09-24 22:44:32.000000000 +0200
-+++ src/mappings.h 2007-11-04 20:34:59.000000000 +0100
-@@ -12,7 +12,7 @@
+--- mappings.h.orig Sun Nov 5 13:26:04 2006
++++ mappings.h Wed Dec 26 02:53:48 2007
+@@ -19,7 +19,7 @@
/* automatically generated mappings from gen*To*Map.pl scripts */
namespace TranslationTables {
@@ -9,7 +9,7 @@
"00000000", "00000001", "00000010", "00000011", "00000100", "00000101",
"00000110", "00000111", "00001000", "00001001", "00001010", "00001011",
"00001100", "00001101", "00001110", "00001111", "00010000", "00010001",
-@@ -85,7 +85,7 @@
+@@ -92,7 +92,7 @@
'.','.','.','.','.','.','.','.','.','.',
'.','.','.','.','.','.',
};
@@ -18,7 +18,7 @@
"00", "01", "02", "03", "04", "05", "06", "07", "08", "09",
"0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13",
"14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d",
-@@ -113,7 +113,7 @@
+@@ -120,7 +120,7 @@
"f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9",
"fa", "fb", "fc", "fd", "fe", "ff",
};
diff --git a/editors/lfhex/files/patch-src::expr.h b/editors/lfhex/files/patch-src::expr.h
deleted file mode 100644
index b57acc03d598..000000000000
--- a/editors/lfhex/files/patch-src::expr.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/expr.h.orig Fri Feb 13 13:28:39 2004
-+++ src/expr.h Mon Apr 26 20:56:45 2004
-@@ -11,6 +11,7 @@
- *
- *----------------------------------------------------------------------*/
- #include <string>
-+#include <sys/types.h>
-
- bool expr_eval( const std::string &str, off_t &value );
-