Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2018 09:02:57 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462479 - in head/editors/tweak: . files
Message-ID:  <201802210902.w1L92vQl034264@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Feb 21 09:02:56 2018
New Revision: 462479
URL: https://svnweb.freebsd.org/changeset/ports/462479

Log:
  - Add LICENSE
  - Update WWW
  - Switch to upstream makefile

Added:
  head/editors/tweak/files/patch-Makefile   (contents, props changed)
Deleted:
  head/editors/tweak/files/Makefile.in
Modified:
  head/editors/tweak/Makefile
  head/editors/tweak/pkg-descr

Modified: head/editors/tweak/Makefile
==============================================================================
--- head/editors/tweak/Makefile	Wed Feb 21 08:15:36 2018	(r462478)
+++ head/editors/tweak/Makefile	Wed Feb 21 09:02:56 2018	(r462479)
@@ -4,16 +4,17 @@
 PORTNAME=	tweak
 PORTVERSION=	3.02
 CATEGORIES=	editors
-MASTER_SITES=	http://www.chiark.greenend.org.uk/~sgtatham/${PORTNAME}/
+MASTER_SITES=	https://www.chiark.greenend.org.uk/~sgtatham/${PORTNAME}/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Efficient hex editor
 
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENCE
+
+USES=		gmake ncurses
+
 PLIST_FILES=	bin/tweak \
 		man/man1/tweak.1.gz
-
-USES=		ncurses uidfix
-MAKEFILE=	${FILESDIR}/Makefile.in
-MAKE_ENV+=	BINDIR="${LOCALBASE}/bin" MANDIR="${PREFIX}/man/man"
 
 .include <bsd.port.mk>

Added: head/editors/tweak/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/tweak/files/patch-Makefile	Wed Feb 21 09:02:56 2018	(r462479)
@@ -0,0 +1,42 @@
+--- Makefile.orig	2016-03-22 21:12:51 UTC
++++ Makefile
+@@ -16,15 +16,16 @@
+ #    number in tweak.h, or else the resulting binary won't match
+ #    the version number on the archive.
+ 
+-CC := gcc
+-CFLAGS := -g -c -Wall $(XFLAGS)
+-LINK := gcc
+-LFLAGS :=
+-LIBS := 
++CC ?= gcc
++CFLAGS ?= -g
++CFLAGS += -c -Wall $(XFLAGS)
++LINK ?= ${CC}
++LFLAGS ?=
++LIBS ?= 
+ 
+-PREFIX=$(DESTDIR)/usr/local
+-BINDIR=$(PREFIX)/bin
+-MANDIR=$(PREFIX)/man/man1
++PREFIX?=/usr/local
++BINDIR?=$(PREFIX)/bin
++MANDIR?=$(PREFIX)/man/man1
+ 
+ TWEAK := main.o keytab.o actions.o search.o rcfile.o buffer.o btree.o
+ 
+@@ -63,10 +64,10 @@ release: tweak.1 btree.html
+ 	rm -rf reltmp
+ 
+ install: tweak tweak.1
+-	mkdir -p $(BINDIR)
+-	install tweak $(BINDIR)/tweak
+-	mkdir -p $(MANDIR)
+-	install -m 0644 tweak.1 $(MANDIR)/tweak.1
++	mkdir -p $(DESTDIR)$(BINDIR)
++	install tweak $(DESTDIR)$(BINDIR)/tweak
++	mkdir -p $(DESTDIR)$(MANDIR)
++	install -m 0644 tweak.1 $(DESTDIR)$(MANDIR)/tweak.1
+ 
+ clean:
+ 	rm -f *.o tweak tweak.1 btree.html

Modified: head/editors/tweak/pkg-descr
==============================================================================
--- head/editors/tweak/pkg-descr	Wed Feb 21 08:15:36 2018	(r462478)
+++ head/editors/tweak/pkg-descr	Wed Feb 21 09:02:56 2018	(r462479)
@@ -4,4 +4,4 @@ useful for modifying binary files such as executables,
 CD images, debugging programs that generate binary file formats incorrectly,
 and many other things.
 
-WWW: http://www.chiark.greenend.org.uk/~sgtatham/tweak/
+WWW: https://www.chiark.greenend.org.uk/~sgtatham/tweak/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802210902.w1L92vQl034264>