pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

filevercmp: use upstream, our Makefile



Module Name:	pkgsrc-wip
Committed By:	Winston Weinert <winston%ml1.net@localhost>
Pushed By:	winston
Date:		Thu Mar 29 20:57:14 2018 -0500
Changeset:	6d15930c5ea3243d9e66147ed19b33916100ebd3

Modified Files:
	filevercmp/Makefile
	filevercmp/distinfo
Added Files:
	filevercmp/files/Makefile

Log Message:
filevercmp: use upstream, our Makefile

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6d15930c5ea3243d9e66147ed19b33916100ebd3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 filevercmp/Makefile       |  9 ++++----
 filevercmp/distinfo       |  8 ++++----
 filevercmp/files/Makefile | 52 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+), 8 deletions(-)

diffs:
diff --git a/filevercmp/Makefile b/filevercmp/Makefile
index 57e3b6844d..497bf252db 100644
--- a/filevercmp/Makefile
+++ b/filevercmp/Makefile
@@ -4,16 +4,17 @@
 #               Generated by fbsd2pkg                     #
 ###########################################################
 
-DISTNAME=	filevercmp-${PORTVERSION}
+DISTNAME=	filevercmp-0.0.0.20151117
 CATEGORIES=	sysutils
-MASTER_SITES=	${MASTER_SITE_GITHUB:=outpaddling/}
-GITHUB_TAG=	${PORTVERSION}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ekg/}
+GITHUB_TAG=	cccb6ba1fffa2898718b0a96c63279e0979e002b
 
 MAINTAINER=	bacon%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/ekg/filevercmp
 COMMENT=	Filevercmp function as in sort --version-sort
 LICENSE=	gnu-gpl-v3
 
-PORTVERSION=	261142f1529f6b7464f6ad96d0c77872ff919849
+pre-configure:
+	${CP} ${FILESDIR}/Makefile ${WRKSRC}
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/filevercmp/distinfo b/filevercmp/distinfo
index 4ec68fcbd0..ec9f8d05b7 100644
--- a/filevercmp/distinfo
+++ b/filevercmp/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (filevercmp-261142f1529f6b7464f6ad96d0c77872ff919849-261142f1529f6b7464f6ad96d0c77872ff919849.tar.gz) = 0d062aa3772c16d14c33157f6eb9001290cd83ee
-RMD160 (filevercmp-261142f1529f6b7464f6ad96d0c77872ff919849-261142f1529f6b7464f6ad96d0c77872ff919849.tar.gz) = c6772a2d35742206cc6522614b43c8e3e18948c1
-SHA512 (filevercmp-261142f1529f6b7464f6ad96d0c77872ff919849-261142f1529f6b7464f6ad96d0c77872ff919849.tar.gz) = eb14ca65d327e87dd5db10ef53337cdd89666e03977fb04f1eb430548d737415f04f4d9bff3e2467c8cbd5346591fa405331340553461eaa0cf8f00a0f10b3b9
-Size (filevercmp-261142f1529f6b7464f6ad96d0c77872ff919849-261142f1529f6b7464f6ad96d0c77872ff919849.tar.gz) = 3327 bytes
+SHA1 (filevercmp-0.0.0.20151117-cccb6ba1fffa2898718b0a96c63279e0979e002b.tar.gz) = 514c46c02528649463f089410a21a0d59eed842d
+RMD160 (filevercmp-0.0.0.20151117-cccb6ba1fffa2898718b0a96c63279e0979e002b.tar.gz) = 7a7c0ea2659354a95681c605c188b741e6d092bb
+SHA512 (filevercmp-0.0.0.20151117-cccb6ba1fffa2898718b0a96c63279e0979e002b.tar.gz) = 38e6040c4783364b49cd144610c581de9f5112d4d054ddd8162d3d71aa6ac9c5db1654d1410c0ac770f8aed0436cd2e5ae56f6ac6b28226fb6c69b4bb7400ff2
+Size (filevercmp-0.0.0.20151117-cccb6ba1fffa2898718b0a96c63279e0979e002b.tar.gz) = 3105 bytes
diff --git a/filevercmp/files/Makefile b/filevercmp/files/Makefile
new file mode 100644
index 0000000000..707523a8c4
--- /dev/null
+++ b/filevercmp/files/Makefile
@@ -0,0 +1,52 @@
+
+# Use ?= to allow overriding from the env or command-line, e.g.
+#
+#       make CXXFLAGS="-O3 -fPIC" install
+#
+# Package managers will override many of these variables automatically, so
+# this is aimed at making it easy to create packages (Debian packages,
+# FreeBSD ports, MacPorts, pkgsrc, etc.)
+
+CC ?=		cc
+CFLAGS ?=	-O -g
+AR ?=		ar
+MKDIR ?=	mkdir
+INSTALL ?=	install -c
+STRIP ?=	strip
+DESTDIR ?=	stage
+PREFIX ?=	/usr/local
+
+OBJS=	filevercmp.o
+MAIN =	main.o
+BIN =	filevercmp
+LIB =	libfilevercmp.a
+
+all: ${BIN} ${LIB}
+
+${BIN}: ${OBJS} ${MAIN}
+	${CC} ${CFLAGS} -o ${BIN} ${OBJS} ${MAIN}
+
+${LIB}: ${OBJS}
+	${AR} -rs ${LIB} ${OBJS}
+
+install: all
+	${MKDIR} -p ${DESTDIR}${PREFIX}/bin
+	${MKDIR} -p ${DESTDIR}${PREFIX}/include
+	${MKDIR} -p ${DESTDIR}${PREFIX}/lib
+	${INSTALL} ${BIN} ${DESTDIR}${PREFIX}/bin
+	${INSTALL} -m644 *.h ${DESTDIR}${PREFIX}/include
+	${INSTALL} -m644 ${LIB} ${DESTDIR}${PREFIX}/lib
+
+install-strip: install
+	${STRIP} ${DESTDIR}${PREFIX}/bin/${BIN}
+
+clean:
+	rm -rf ${BIN} ${LIB} ${OBJS} ${MAIN} ${DESTDIR}
+
+.PHONY: all clean
+
+filevercmp.o: filevercmp.c filevercmp.h
+	${CC} ${CFLAGS} -c filevercmp.c
+
+main.o: main.c filevercmp.h
+	${CC} ${CFLAGS} -c main.c


Home | Main Index | Thread Index | Old Index