converters/ascii2binary: Modernize port

* Utilize more helpers
* Define LICENSE_FILE
* Fold separate patch into port Makefile
* Adjust Makefile to follow Porters Handbook more closely

PR:		284673
Approved by:	maintainter timeout, 2+ weeks
This commit is contained in:
Daniel Engberg
2025-03-01 10:42:02 +01:00
parent d74b7679a9
commit 01dd247329
2 changed files with 7 additions and 17 deletions
+7 -6
View File
@@ -1,5 +1,5 @@
PORTNAME= ascii2binary
PORTVERSION= 2.14
DISTVERSION= 2.14
PORTREVISION= 2
CATEGORIES= converters
MASTER_SITES= http://billposer.org/Software/Downloads/
@@ -9,15 +9,16 @@ COMMENT= Convert between textual representations of numbers and binary
WWW= https://billposer.org/Software/a2b.html
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gettext tar:bzip2
USES= gettext-runtime localbase:ldflags tar:bzip2
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/ascii2binary bin/binary2ascii \
LDFLAGS+= -lintl
PLIST_FILES= bin/ascii2binary \
bin/binary2ascii \
share/man/man1/ascii2binary.1.gz \
share/man/man1/binary2ascii.1.gz
@@ -1,11 +0,0 @@
--- Makefile.in.orig Sat Mar 11 20:44:53 2006
+++ Makefile.in Sun Mar 12 10:59:23 2006
@@ -115,7 +115,7 @@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS = @LIBS@ -lintl
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
OBJEXT = @OBJEXT@