mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
add elixir rabbitmq
This commit is contained in:
23
system/getopt/Makefile
Normal file
23
system/getopt/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
||||
# $FreeBSD: head/misc/getopt/Makefile 423014 2016-09-30 19:24:30Z tijl $
|
||||
|
||||
PORTNAME= getopt
|
||||
PORTVERSION= 1.1.6
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES+= http://frodo.looijaard.name/system/files/software/getopt/
|
||||
MASTER_SITES+= LOCAL/sunpoet
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
COMMENT= Replacement for getopt(1) that supports GNU-style long options
|
||||
|
||||
USES= gmake
|
||||
MAKE_ARGS+= CC=${CC} LIBCGETOPT=0
|
||||
MAKE_ARGS+= WITHOUT_GETTEXT=1
|
||||
|
||||
post-patch:
|
||||
@${RM} ${WRKSRC}/gnu/*.o
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
system/getopt/distinfo
Normal file
2
system/getopt/distinfo
Normal file
@@ -0,0 +1,2 @@
|
||||
SHA256 (getopt-1.1.6.tar.gz) = d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
|
||||
SIZE (getopt-1.1.6.tar.gz) = 58926
|
||||
30
system/getopt/files/patch-Makefile
Normal file
30
system/getopt/files/patch-Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
--- ./Makefile.orig 2013-03-02 19:04:01.590723827 -0500
|
||||
+++ ./Makefile 2013-03-02 19:06:02.492723812 -0500
|
||||
@@ -1,7 +1,7 @@
|
||||
.SUFFIXES:
|
||||
|
||||
DESTDIR=
|
||||
-prefix=/usr/local
|
||||
+prefix=$(PREFIX)
|
||||
bindir=$(prefix)/bin
|
||||
mandir=$(prefix)/man
|
||||
man1dir=$(mandir)/man1
|
||||
@@ -32,7 +32,7 @@
|
||||
LANGUAGES = ca cs da de es et eu fi fr gl hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW
|
||||
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
|
||||
|
||||
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
|
||||
+CPPFLAGS+=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
|
||||
ifeq ($(LIBCGETOPT),0)
|
||||
CPPFLAGS+=-I./gnu
|
||||
endif
|
||||
@@ -41,9 +41,6 @@
|
||||
-Wcast-align -Wmissing-declarations \
|
||||
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
|
||||
-Wnested-externs -Winline
|
||||
-OPTIMIZE=-O3 -fno-strength-reduce
|
||||
-CFLAGS=$(WARNINGS) $(OPTIMIZE)
|
||||
-LDFLAGS=
|
||||
|
||||
sources=getopt.c
|
||||
ifeq ($(LIBCGETOPT),0)
|
||||
13
system/getopt/pkg-descr
Normal file
13
system/getopt/pkg-descr
Normal file
@@ -0,0 +1,13 @@
|
||||
Rewrite of getopt(1) with the following features:
|
||||
|
||||
* It can do anything that the GNU getopt(3) routines can do.
|
||||
* It can cope with spaces and shell metacharacters within arguments.
|
||||
* It can parse long parameters.
|
||||
* It can shuffle parameters, so you can mix options and other parameters
|
||||
on the command-line.
|
||||
* It can be easily identified as an enhanced getopt(1) from within shell
|
||||
scripts.
|
||||
* It can report parse errors as coming from the shell script.
|
||||
* It compiles cleanly with both libc-5 and glibc-2.
|
||||
|
||||
WWW: http://software.frodo.looijaard.name/getopt/
|
||||
2
system/getopt/pkg-plist
Normal file
2
system/getopt/pkg-plist
Normal file
@@ -0,0 +1,2 @@
|
||||
bin/getopt
|
||||
man/man1/getopt.1.gz
|
||||
Reference in New Issue
Block a user