summaryrefslogtreecommitdiff
path: root/devel/libgetopt
AgeCommit message (Collapse)AuthorFilesLines
2011-09-07Don't use __weak_alias. This results in duplicate symbols being createdjoerg1-9/+1
in the output. GNU as silently discards one, LLVM is more strict in this regard.
2010-01-08Fix build on Tru64. Closes PR pkg/42538.tnn1-2/+3
2009-04-09Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.joerg1-2/+1
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2008-12-10libgetopt-1.4.4:joerg2-6/+3
If getopt.h is included, the getopt extension is really wanted. So remove check for _XOPEN_SOURCE and _POSIX_SOURCE, resolving errors on AIX.
2008-04-29Drop clauses 3 and 4 from TNF licensesmartin2-16/+2
2008-03-03Mechanical changes to add DESTDIR support to packages that installjlam1-4/+8
their files via a custom do-install target.
2008-02-22Update to libgetopt-1.4.3.tnn2-3/+9
On IRIX, getopt.h is expected to provide extern declarations of optind et al. (Not unistd.h) Do it here since we shadow the system header. Part of PR pkg/38054
2008-02-16Use REPLACE_GETOPT on HPUX. Bump version.tnn1-3/+3
2007-08-03Use -DREPLACE_GETOPT on AIX as well. Remove NETBSD_COMPATIBLE define,joerg1-3/+2
it is not used anywhere.
2007-01-07Mechanically replaced man/* with ${PKGMANDIR}/* in the definition ofrillig1-3/+3
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with ${PREFIX}/${PKGMANDIR}. Fixes PR 35265, although I did not use the patch provided therein.
2006-07-08Change the format of BUILDLINK_ORDER to contain depth information as well,jlam1-2/+2
and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
2006-07-08Track information in a new variable BUILDLINK_ORDER that informs usjlam1-1/+2
of the order in which buildlink3.mk files are (recursively) included by a package Makefile.
2006-04-12Aligned the last line of the buildlink3.mk files with the first line, sorillig1-2/+2
that they look nicer.
2006-04-06Over 1200 files touched but no revisions bumped :)reed2-4/+4
RECOMMENDED is removed. It becomes ABI_DEPENDS. BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo. BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo. BUILDLINK_DEPENDS does not change. IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS which defaults to "yes". Added to obsolete.mk checking for IGNORE_RECOMMENDED. I did not manually go through and fix any aesthetic tab/spacing issues. I have tested the above patch on DragonFly building and packaging subversion and pkglint and their many dependencies. I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I have used IGNORE_RECOMMENDED for a long time). I have been an active user of IGNORE_RECOMMENDED since it was available. As suggested, I removed the documentation sentences suggesting bumping for "security" issues. As discussed on tech-pkg. I will commit to revbump, pkglint, pkg_install, createbuildlink separately. Note that if you use wip, it will fail! I will commit to pkgsrc-wip later (within day).
2006-03-30Avoid extra stat() calls by not repeatedly checking whether a filejlam1-2/+2
exists on the disk -- we can just check whether a variable defined by find-files.mk is "__nonexistent__" or not.
2006-03-04Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where nojlam1-2/+2
developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
2005-06-16Create directories before installing files into them.jlam1-1/+3
2005-06-12Don't prevent this package from building/installing even if getopt_longjlam1-5/+1
is already provided by the system natively. There is no reason to prevent its installation.
2005-06-05In builtin.mk files, use _BLTN_ as the private namespace prefix.jlam1-4/+4
2005-06-01Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.jlam1-12/+53
Several changes are involved since they are all interrelated. These changes affect about 1000 files. The first major change is rewriting bsd.builtin.mk as well as all of the builtin.mk files to follow the new example in bsd.builtin.mk. The loop to include all of the builtin.mk files needed by the package is moved from bsd.builtin.mk and into bsd.buildlink3.mk. bsd.builtin.mk is now included by each of the individual builtin.mk files and provides some common logic for all of the builtin.mk files. Currently, this includes the computation for whether the native or pkgsrc version of the package is preferred. This causes USE_BUILTIN.* to be correctly set when one builtin.mk file includes another. The second major change is teach the builtin.mk files to consider files under ${LOCALBASE} to be from pkgsrc-controlled packages. Most of the builtin.mk files test for the presence of built-in software by checking for the existence of certain files, e.g. <pthread.h>, and we now assume that if that file is under ${LOCALBASE}, then it must be from pkgsrc. This modification is a nod toward LOCALBASE=/usr. The exceptions to this new check are the X11 distribution packages, which are handled specially as noted below. The third major change is providing builtin.mk and version.mk files for each of the X11 distribution packages in pkgsrc. The builtin.mk file can detect whether the native X11 distribution is the same as the one provided by pkgsrc, and the version.mk file computes the version of the X11 distribution package, whether it's built-in or not. The fourth major change is that the buildlink3.mk files for X11 packages that install parts which are part of X11 distribution packages, e.g. Xpm, Xcursor, etc., now use imake to query the X11 distribution for whether the software is already provided by the X11 distribution. This is more accurate than grepping for a symbol name in the imake config files. Using imake required sprinkling various builtin-imake.mk helper files into pkgsrc directories. These files are used as input to imake since imake can't use stdin for that purpose. The fifth major change is in how packages note that they use X11. Instead of setting USE_X11, package Makefiles should now include x11.buildlink3.mk instead. This causes the X11 package buildlink3 and builtin logic to be executed at the correct place for buildlink3.mk and builtin.mk files that previously set USE_X11, and fixes packages that relied on buildlink3.mk files to implicitly note that X11 is needed. Package buildlink3.mk should also include x11.buildlink3.mk when linking against the package libraries requires also linking against the X11 libraries. Where it was obvious, redundant inclusions of x11.buildlink3.mk have been removed.
2005-05-25Set NO_CHECKSUM, and remove empty distinfo file.wiz2-3/+2
2005-05-25Sort.wiz1-2/+2
2005-03-10Revert error in previous (commented out PKG_SKIP_REASON).tv1-2/+2
2005-03-10Nitpick from Roland Illig <roland.illig@gmx.de>: Use "progname" rathertv2-9/+11
than "__progname" (just in case), and set it also in getopt_long(3).
2005-03-101.4 - overhaul:tv9-675/+800
- pull sources directly into pkgsrc - do not depend on namespace.h, <sys/cdefs.h> (de-__P()ify), or <err.h> - use libtool for better portability in shlib creation The resultant library is still ABI compatible with prior versions and should have the same shlib major version number. Thanks to Roland Illig <roland.illig@gmx.de> for help in getting this working properly on Solaris.
2005-02-21Sign over maintainership to tech-pkg@hubertf1-2/+2
2005-02-11Interix fix: optreset exists, but <unistd.h> tries to pretend it doesn't.tv2-2/+8
2004-12-12Fix build on IRIX 5 whichhas a nonstandard /usr/include/getopt.h.recht1-4/+4
patch by Georg Schwarz in PR 28597
2004-05-17Garbage collect BUILDLINK_PKGBASE.<pkg> from buildlink3: it is not anymoreseb1-2/+1
used since revision 1.139 of mk/buildlink3/bsd.buildlink3.mk.
2004-05-04Unused.wiz1-37/+0
2004-03-29Match the template builtin.mk file in bsd.builtin.mk, and make the twojlam1-7/+7
packages that use builtin.mk files (graphics/xpm and pkgtools/x11-links) use the new format correctly.
2004-03-29Add a BUILDLINK_PKGBASE.<pkg> definition where it's not equal to <pkg>,jlam1-1/+2
e.g. "BUILDLINK_PKGBASE.gtk?= gtk+". This is mandated by the example buildlink[23].mk files in bsd.buildlink[23].mk.
2004-03-16If the ${PKGBASE} of a package doesn't match the token passed tojlam1-1/+2
BUILDLINK_PACKAGES, then set BUILDLINK_PKGBASE.<pkg> explicitly so that we can map from <pkg> to BUILDLINK_PKGBASE.<pkg>.
2004-03-10Split out the code that deals with checking whether the software isjlam2-45/+37
built-in or not into a separate builtin.mk file. The code to deal checking for built-in software is much simpler to deal with in pkgsrc. The buildlink3.mk file for a package will be of the usual format regardless of the package, which makes it simpler for packagers to update a package. The builtin.mk file for a package must define a single yes/no variable USE_BUILTIN.<pkg> that is used by bsd.buildlink3.mk to decide whether to use the built-in software or to use the pkgsrc software.
2004-01-24Support BUILDLINK_DEPENDS.<pkg> being a list of values.jlam1-2/+2
2004-01-20Move WRKSRC definition away from the first paragraph in a Makefile.agc1-2/+3
2004-01-05Use S/+$// instead of C/\+$// to save a backslash. Very highlyjlam1-2/+2
recommended by seb :)
2004-01-05Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables.jlam1-14/+12
2004-01-04Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk.jlam1-4/+4
2004-01-03Initial sprinkling of work-in-progress buildlink3.mk files for using thejlam1-0/+54
buildlink3 framework.
2003-07-17s/netbsd.org/NetBSD.org/grant1-4/+4
2003-06-13Remove paragraph that's not true any longer.wiz1-2/+1
2003-03-29Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.jmmv1-2/+2
2002-12-07Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate.schmonz1-2/+2
2002-10-09Unused.wiz1-50/+0
2002-08-25Merge changes in packages from the buildlink2 branch that havejlam1-0/+36
buildlink2.mk files back into the main trunk.
2001-11-01Move pkg/ files into package's toplevel directoryzuntum2-1/+1
2001-08-20Don't automatically add -lgetopt to LIBS, as we usually only want -lgetoptjlam1-5/+12
to be linked into just the programs, not everything being linked including libraries. Also some changes to set _NEED_GETOPT instead of a direct check for /usr/include/getopt.h.
2001-07-29- Don't mirror distfile which is already on "ftp.netbsd.org".tron1-2/+4
- pkglint: remove whitespace and end of line.