[java/jattach] update to v.1.4

- update to v.1.4
 - remove patches committed to upstream

Submitted by:   mizhka
Reviewed by:	lme, mat (initial review)
Approved by:	lme
Differential Revision:	https://reviews.freebsd.org/D16926
This commit is contained in:
Michael Zhilin
2019-01-25 09:09:46 +00:00
parent ddd363f3be
commit 59f31bdf4b
3 changed files with 5 additions and 26 deletions

View File

@@ -1,7 +1,8 @@
# $FreeBSD$
PORTNAME= jattach
DISTVERSION= g20170928
DISTVERSIONPREFIX= v
DISTVERSION= 1.4
CATEGORIES= java devel
MAINTAINER= mizhka@gmail.com
@@ -14,7 +15,6 @@ USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= apangin
GH_TAGNAME= ccc2f05
PLIST_FILES= bin/jattach

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1506587842
SHA256 (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = dafb14375200beb6c52ffce6412c0d74c4639d8421f275f9b6085511ca4e886d
SIZE (apangin-jattach-g20170928-ccc2f05_GH0.tar.gz) = 9773
TIMESTAMP = 1535556271
SHA256 (apangin-jattach-v1.4_GH0.tar.gz) = d624d9158913c571452ac7cfeef59544ea775c5b868fb92efd1edc4d971659e9
SIZE (apangin-jattach-v1.4_GH0.tar.gz) = 11442

View File

@@ -1,21 +0,0 @@
--- Makefile.orig 2017-09-27 07:10:05 UTC
+++ Makefile
@@ -2,6 +2,10 @@ ifneq ($(findstring Windows,$(OS)),)
CL=cl.exe
CFLAGS=/O2 /D_CRT_SECURE_NO_WARNINGS
JATTACH_EXE=jattach.exe
+else
+ UNAME_S := $(shell uname -s)
+ifneq ($(findstring FreeBSD,$(UNAME_S)),)
+ JATTACH_EXE=jattach
else
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
RPM_ROOT=$(ROOT_DIR)/build/rpm
@@ -10,6 +14,7 @@ else
CC=gcc
CFLAGS=-O2
JATTACH_EXE=jattach
+endif
endif
all: build build/$(JATTACH_EXE)