svn commit: r549858 - in head/sysutils/hexpeek: . files
Stefan Eßer
se at FreeBSD.org
Wed Sep 23 22:17:10 UTC 2020
Author: se
Date: Wed Sep 23 22:17:09 2020
New Revision: 549858
URL: https://svnweb.freebsd.org/changeset/ports/549858
Log:
Make test/Makefile use system CFLAGS
While here reformat the Makefile with portfmt.
Added:
head/sysutils/hexpeek/files/patch-test_Makefile (contents, props changed)
Modified:
head/sysutils/hexpeek/Makefile
Modified: head/sysutils/hexpeek/Makefile
==============================================================================
--- head/sysutils/hexpeek/Makefile Wed Sep 23 22:08:35 2020 (r549857)
+++ head/sysutils/hexpeek/Makefile Wed Sep 23 22:17:09 2020 (r549858)
@@ -4,7 +4,7 @@
PORTNAME= hexpeek
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.20200804
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= https://www.hexpeek.com/releases/${DISTNAME}/
@@ -14,13 +14,17 @@ COMMENT= Hex file editor
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= tar:bzip2 libedit ncurses
+USES= libedit ncurses tar:bzip2
USE_CSTD= c99
-CFLAGS+= -Isrc -D_WITH_GETLINE -L${LOCALBASE}/lib
+CFLAGS+= -D_WITH_GETLINE -Isrc -L${LOCALBASE}/lib
-PLIST_FILES= bin/hexdiff bin/hexDump bin/hexpack bin/hexpeek bin/hexview
-PLIST_FILES+= share/man/man1/hexpeek.1.gz
+PLIST_FILES= bin/hexdiff \
+ bin/hexDump \
+ bin/hexpack \
+ bin/hexpeek \
+ bin/hexview \
+ share/man/man1/hexpeek.1.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin
Added: head/sysutils/hexpeek/files/patch-test_Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/hexpeek/files/patch-test_Makefile Wed Sep 23 22:17:09 2020 (r549858)
@@ -0,0 +1,22 @@
+--- test/Makefile.orig 2020-08-04 05:58:52 UTC
++++ test/Makefile
+@@ -24,11 +24,7 @@
+ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+-SRCDIR := .
+-BINDIR := .
+-EXEC := $(BINDIR)/simplediff
+-CC ?= clang
+-CFLAGS := -O3 -Wall #-fPIC
++EXEC = simplediff
+
+ all: $(EXEC)
+ make -C base
+@@ -37,5 +33,4 @@ clear:
+ rm -f $(EXEC)
+ make -C base clear
+
+-$(BINDIR)/simplediff: $(SRCDIR)/simplediff.c
+- $(CC) $(CFLAGS) -o $@ $(SRCDIR)/simplediff.c
++$(EXEC): simplediff.c
More information about the svn-ports-all
mailing list