From 26bb1d17298aead28b8519e7495ebb31ae81d60d Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sat, 3 Apr 1999 01:15:54 +0000 Subject: Import of libshhopt version 1.1.4. A library for parsing command line options. PR: 6331 Submitted by: Andrey Zakhvatov --- devel/libshhopt/Makefile | 29 +++++++++++++++++++++++++++++ devel/libshhopt/distinfo | 1 + devel/libshhopt/files/Makefile | 8 ++++++++ devel/libshhopt/files/patch-aa | 37 +++++++++++++++++++++++++++++++++++++ devel/libshhopt/pkg-comment | 1 + devel/libshhopt/pkg-descr | 3 +++ devel/libshhopt/pkg-plist | 11 +++++++++++ 7 files changed, 90 insertions(+) create mode 100644 devel/libshhopt/Makefile create mode 100644 devel/libshhopt/distinfo create mode 100644 devel/libshhopt/files/Makefile create mode 100644 devel/libshhopt/files/patch-aa create mode 100644 devel/libshhopt/pkg-comment create mode 100644 devel/libshhopt/pkg-descr create mode 100644 devel/libshhopt/pkg-plist (limited to 'devel/libshhopt') diff --git a/devel/libshhopt/Makefile b/devel/libshhopt/Makefile new file mode 100644 index 000000000000..2d8c7a1298ce --- /dev/null +++ b/devel/libshhopt/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: libshhopt +# Version required: 1.1.4 +# Date created: 11 April 1998 +# Whom: Andrey Zakhvatov +# +# $Id$ +# + +DISTNAME= shhopt-1.1.4 +PKGNAME= libshhopt-1.1.4 +CATEGORIES= devel +MASTER_SITES= http://home.sol.no/~sverrehu/pub-unix/files/ + +MAINTAINER= andy@icc.surw.chel.su + +USE_GMAKE= yes + +post-install: + ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${PREFIX}/share/doc/libshhopt + @ ${INSTALL_DATA} ${WRKSRC}/CREDITS ${PREFIX}/share/doc/libshhopt + @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/libshhopt +.endif + @ ${MKDIR} ${PREFIX}/share/examples/libshhopt + @ ${INSTALL_DATA} ${FILESDIR}/Makefile ${PREFIX}/share/examples/libshhopt + @ ${INSTALL_DATA} ${WRKSRC}/example.c ${PREFIX}/share/examples/libshhopt + +.include diff --git a/devel/libshhopt/distinfo b/devel/libshhopt/distinfo new file mode 100644 index 000000000000..c9687c32cb29 --- /dev/null +++ b/devel/libshhopt/distinfo @@ -0,0 +1 @@ +MD5 (shhopt-1.1.4.tar.gz) = 20b619bc5f4c17e2292578cd4a0e4e20 diff --git a/devel/libshhopt/files/Makefile b/devel/libshhopt/files/Makefile new file mode 100644 index 000000000000..320b6692179e --- /dev/null +++ b/devel/libshhopt/files/Makefile @@ -0,0 +1,8 @@ +PREFIX = /usr/local +LIBDIR = $(PREFIX)/lib +INCDIR = $(PREFIX)/include + +CC = gcc + +example: + $(CC) -o example example.c -I$(INCDIR) -L$(LIBDIR) -lshhopt diff --git a/devel/libshhopt/files/patch-aa b/devel/libshhopt/files/patch-aa new file mode 100644 index 000000000000..963686074ff3 --- /dev/null +++ b/devel/libshhopt/files/patch-aa @@ -0,0 +1,37 @@ +--- Makefile.orig Sun Jul 5 12:08:59 1998 ++++ Makefile Fri Apr 2 15:15:59 1999 +@@ -6,10 +6,10 @@ + VERSION = $(VERMAJ).$(VERMIN).$(VERPAT) + + # Define SHARED as 1 for Linux shared ELF library +-#SHARED = 1 ++SHARED = 1 + + ifeq ($(SHARED),1) +-LIBTARGET = lib$(DIST).so.$(VERSION) ++LIBTARGET = lib$(DIST).so.$(VERMAJ) + LIBTARGETSO = lib$(DIST).so + LIBTARGETSOMAJ = $(LIBTARGETSO).$(VERMAJ) + CCSHRD = -fPIC +@@ -23,8 +23,8 @@ + INSTBASEDIR = /usr/local + INSTLIBDIR = $(INSTBASEDIR)/lib + INSTINCDIR = $(INSTBASEDIR)/include +-INSTALL = install -m 644 +-INSTALLPROG = install -m 755 ++INSTALL = install -c -m 644 ++INSTALLPROG = install -c -m 755 + MKDIRP = install -d -m 755 + + CC = gcc +@@ -67,9 +67,7 @@ + $(INSTALL) $(LIBTARGET) $(INSTLIBDIR) + $(INSTALL) $(LIBHEAD) $(INSTINCDIR) + ifeq ($(SHARED),1) +- ln -sf $(LIBTARGET) $(INSTLIBDIR)/$(LIBTARGETSOMAJ) +- ln -sf $(LIBTARGETSOMAJ) $(INSTLIBDIR)/$(LIBTARGETSO) +- echo "If you use GNU/Linux, remember to run ldconfig" ++ ln -sf $(LIBTARGET) $(INSTLIBDIR)/$(LIBTARGETSO) + endif + + clean: diff --git a/devel/libshhopt/pkg-comment b/devel/libshhopt/pkg-comment new file mode 100644 index 000000000000..8effafa4154a --- /dev/null +++ b/devel/libshhopt/pkg-comment @@ -0,0 +1 @@ +A library for parsing command line options. diff --git a/devel/libshhopt/pkg-descr b/devel/libshhopt/pkg-descr new file mode 100644 index 000000000000..a51c53734ac2 --- /dev/null +++ b/devel/libshhopt/pkg-descr @@ -0,0 +1,3 @@ +shhopt - library for parsing command line options. It contains +C-functions for parsing command line options, both traditional +one-character options, and GNU'ish --long-options. diff --git a/devel/libshhopt/pkg-plist b/devel/libshhopt/pkg-plist new file mode 100644 index 000000000000..47d4f187b1ab --- /dev/null +++ b/devel/libshhopt/pkg-plist @@ -0,0 +1,11 @@ +include/shhopt.h +lib/libshhopt.so +lib/libshhopt.so.1 +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R +share/doc/libshhopt/CREDITS +share/doc/libshhopt/README +share/examples/libshhopt/Makefile +share/examples/libshhopt/example.c +@dirrm share/doc/libshhopt +@dirrm share/examples/libshhopt -- cgit v1.2.3