diff options
author | steve <steve@FreeBSD.org> | 1999-04-03 09:15:54 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-04-03 09:15:54 +0800 |
commit | 72b117aa6b64c2c0cc7c9d7c42497d8a92ef2b40 (patch) | |
tree | 7b5b356483b27324ef889b78a78798e155d68c73 /devel | |
parent | 8620f2340f4752635b0203ed7b07da7397ac5f5b (diff) | |
download | freebsd-ports-graphics-72b117aa6b64c2c0cc7c9d7c42497d8a92ef2b40.tar.gz freebsd-ports-graphics-72b117aa6b64c2c0cc7c9d7c42497d8a92ef2b40.tar.zst freebsd-ports-graphics-72b117aa6b64c2c0cc7c9d7c42497d8a92ef2b40.zip |
Import of libshhopt version 1.1.4.
A library for parsing command line options.
PR: 6331
Submitted by: Andrey Zakhvatov <andy@icc.surw.chel.su>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libshhopt/Makefile | 29 | ||||
-rw-r--r-- | devel/libshhopt/distinfo | 1 | ||||
-rw-r--r-- | devel/libshhopt/files/Makefile | 8 | ||||
-rw-r--r-- | devel/libshhopt/files/patch-aa | 37 | ||||
-rw-r--r-- | devel/libshhopt/pkg-comment | 1 | ||||
-rw-r--r-- | devel/libshhopt/pkg-descr | 3 | ||||
-rw-r--r-- | devel/libshhopt/pkg-plist | 11 |
7 files changed, 90 insertions, 0 deletions
diff --git a/devel/libshhopt/Makefile b/devel/libshhopt/Makefile new file mode 100644 index 00000000000..2d8c7a1298c --- /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 <bsd.port.mk> diff --git a/devel/libshhopt/distinfo b/devel/libshhopt/distinfo new file mode 100644 index 00000000000..c9687c32cb2 --- /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 00000000000..320b6692179 --- /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 00000000000..963686074ff --- /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 00000000000..8effafa4154 --- /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 00000000000..a51c53734ac --- /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 00000000000..47d4f187b1a --- /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 |