1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-17 04:58:17 +00:00
parent 804b0c2dc1
commit a0d8d64607
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358068
2 changed files with 14 additions and 5 deletions

View File

@ -13,16 +13,13 @@ COMMENT= Japanese enhancement of strings(1) command
EXTRACT_DEPENDS=nkf:${PORTSDIR}/japanese/nkf
MAN1= jstrings.1
MANLANG= ja
PLIST_FILES= bin/jstrings
PLIST_FILES= bin/jstrings man/ja/man1/jstrings.1.gz
USES= gmake lha
MAKEFILE= makefile.gcc
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" BINDIR="${PREFIX}/bin"
ALL_TARGET= jstrings
NO_STAGE= yes
post-extract:
@${ECHO_MSG} "===> Converting Kanji code and deleting CR for ${DISTNAME}"
@(cd ${WRKSRC}; \
@ -32,6 +29,6 @@ post-extract:
done)
post-install:
${INSTALL_MAN} ${FILESDIR}/jstrings.1 ${PREFIX}/man/${MANLANG}/man1
${INSTALL_MAN} ${FILESDIR}/jstrings.1 ${STAGEDIR}${PREFIX}/man/ja/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,12 @@
--- makefile.gcc.orig 2014-06-17 12:55:14.919735947 +0800
+++ makefile.gcc 2014-06-17 12:55:31.502732890 +0800
@@ -36,7 +36,7 @@ utilstr.o : utilstr.c utilstr.h
eucjp.o : eucjp.c eucjp.h jstrings.h vstr.h ascii.h jis.h
install : $(TARGET)
- cp $(TARGET) $(BINDIR)/$(TARGET)
- strip $(BINDIR)/$(TARGET)
+ cp $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
+ strip $(DESTDIR)$(BINDIR)/$(TARGET)
echo "Copy jstrings.txt as man page if you need."