Date: Tue, 24 Nov 1998 10:37:09 +0000 From: Dom Mitchell <dom@phmit.demon.co.uk> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/8838: New port of GNU getopt. Message-ID: <E0ziFqH-0005YM-00@voodoo.pandhm.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 8838 >Category: ports >Synopsis: New port of GNU getopt. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Nov 24 02:40:02 PST 1998 >Last-Modified: >Originator: Dominic Mitchell >Organization: Palmer & Harvey McLane Ltd. >Release: FreeBSD 2.2.7-STABLE i386 >Environment: FreeBSD voodoo.pandhm.co.uk 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Nov 16 05:09:28 GMT 1998 root@voodoo.pandhm.co.uk:/usr/src/sys/compile/VOODOO i386 Full src tree installed. >Description: This port pulls GNU getopt out of our src tree and installs it as a library in ${PREFIX}. This is useful for a number of ports which need this, but do not include it with their source. I do not have an authoritative source for "Just the getopt files", so I have pulled them from our src tree. I don't want to pull down the entire glibc tarball just for three files! >How-To-Repeat: The usual. >Fix: Here's the port: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # getopt # getopt/Makefile # getopt/files # getopt/files/Makefile # getopt/pkg # getopt/pkg/DESCR # getopt/pkg/COMMENT # getopt/pkg/PLIST # echo c - getopt mkdir -p getopt > /dev/null 2>&1 echo x - getopt/Makefile sed 's/^X//' >getopt/Makefile << 'END-of-getopt/Makefile' X# New ports collection makefile for: getopt X# Version required: ? X# Date created: 13 Nov 1998 X# Whom: Dom Mitchell <dom@myrddin.demon.co.uk> X# X# $Id$ X# X X# Assumed version. I've no idea what it really is. Somebody should X# probably grab the latest version from glibc and install it in a standard X# place. XDISTNAME= getopt-1.0 XCATEGORIES= devel XDISTFILES= # none X XMAINTAINER= dom@myrddin.demon.co.uk X XWRKSRC= ${WRKDIR}/${DISTNAME} X X# Sample program in the source tree containing getopt_long. XGETOPTSRC?= /usr/src/contrib/cpio X Xdo-extract: X @if [ ! -d ${GETOPTSRC} ]; then \ X ${ECHO} "You need the getopt source in"; \ X ${ECHO} "${GETOPTSRC}"; \ X ${ECHO} "to build this port."; \ X exit 1; \ X fi X @${RM} -rf ${WRKDIR} X @${MKDIR} ${WRKSRC} X ${CP} ${GETOPTSRC}/getopt* ${WRKSRC} X ${CP} ${FILESDIR}/Makefile ${WRKSRC} X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/libgetopt.a ${PREFIX}/lib X ${INSTALL_DATA} ${WRKSRC}/getopt.h ${PREFIX}/include X X.include <bsd.port.mk> END-of-getopt/Makefile echo c - getopt/files mkdir -p getopt/files > /dev/null 2>&1 echo x - getopt/files/Makefile sed 's/^X//' >getopt/files/Makefile << 'END-of-getopt/files/Makefile' X# X# $Id$ X# X XLIB= getopt XSRCS= getopt.c getopt1.c XNOPIC= true XNOPROFILE= true X X.include <bsd.lib.mk> END-of-getopt/files/Makefile echo c - getopt/pkg mkdir -p getopt/pkg > /dev/null 2>&1 echo x - getopt/pkg/DESCR sed 's/^X//' >getopt/pkg/DESCR << 'END-of-getopt/pkg/DESCR' XThe GNU Getopt library. This is from the GNU C library. It handles Xlong options of the form --option. END-of-getopt/pkg/DESCR echo x - getopt/pkg/COMMENT sed 's/^X//' >getopt/pkg/COMMENT << 'END-of-getopt/pkg/COMMENT' XThe GNU Getopt library. END-of-getopt/pkg/COMMENT echo x - getopt/pkg/PLIST sed 's/^X//' >getopt/pkg/PLIST << 'END-of-getopt/pkg/PLIST' Xinclude/getopt.h Xlib/libgetopt.a END-of-getopt/pkg/PLIST exit >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0ziFqH-0005YM-00>