Add getopt-1.1.4

This commit is contained in:
Chris Roberts
2010-04-20 07:44:45 +00:00
parent d59c009c4e
commit 0c92e953fb
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
DESCRIPTION="A program to help shell scripts parse command-line parameters."
HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
SRC_URI="http://software.frodo.looijaard.name/getopt/files/getopt-1.1.4.tar.gz"
CHECKSUM_MD5="02188ca68da27c4175d6e9f3da732101"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd getopt-1.1.4
make
}
INSTALL {
cd getopt-1.1.4
make install prefix=/boot/common DESTDIR="${DESTDIR}"
}

View File

@@ -0,0 +1,5 @@
Package: getopt
Version: 1.1.4
Copyright: 1997-2005 Frodo Looijaard
License: GNU GPL v2
URL: http://software.frodo.looijaard.name/getopt/

View File

@@ -0,0 +1,21 @@
diff -up getopt-1.1.4/Makefile.orig getopt-1.1.4/Makefile
--- getopt-1.1.4/Makefile.orig 2010-04-20 01:05:38.208928768 -0600
+++ getopt-1.1.4/Makefile 2010-04-20 01:08:26.741605376 -0600
@@ -14,7 +14,7 @@ localedir=$(sharedir)/locale
LIBCGETOPT=1
# Define this to 1 if you do not have the gettext routines
-WITHOUT_GETTEXT=0
+WITHOUT_GETTEXT=1
# For creating the archive
PACKAGE=getopt
@@ -33,7 +33,7 @@ MSGFMT=msgfmt
LANGUAGES = cs de es fr it ja nl pt_BR
MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
+CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
ifeq ($(LIBCGETOPT),0)
CPPFLAGS+=-I./gnu
endif