| 1 | NAME = popt |
|---|
| 2 | VERSION = 1.16 |
|---|
| 3 | GARTYPE = v2 |
|---|
| 4 | |
|---|
| 5 | DESCRIPTION = Popt is a C library for parsing command line parameters |
|---|
| 6 | define BLURB |
|---|
| 7 | Popt is a C library for parsing command line parameters. Popt was |
|---|
| 8 | heavily influenced by the getopt() and getopt_long() functions, |
|---|
| 9 | but it improves on them by allowing more powerful argument expansion. |
|---|
| 10 | Popt can parse arbitrary argv[] style arrays and automatically set |
|---|
| 11 | variables based on command line arguments. Popt allows command line |
|---|
| 12 | arguments to be aliased via configuration files and includes utility |
|---|
| 13 | functions for parsing arbitrary strings into argv[] arrays using |
|---|
| 14 | shell-like rules. |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | MASTER_SITES = http://rpm5.org/files/$(NAME)/ |
|---|
| 18 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 19 | |
|---|
| 20 | # This patch has been sent upstream: |
|---|
| 21 | # http://www.mail-archive.com/popt-devel@rpm5.org/ |
|---|
| 22 | PATCHFILES += 0001-Use-inttypes.h-if-stdint.h-is-not-available.patch |
|---|
| 23 | |
|---|
| 24 | # This fixes a minor failing check. See for details |
|---|
| 25 | # http://www.mail-archive.com/popt-devel@rpm5.org/msg00155.html |
|---|
| 26 | PATCHFILES += 0002-Fix-failing-tests.patch |
|---|
| 27 | |
|---|
| 28 | PACKAGES += CSWlibpopt0 |
|---|
| 29 | SPKG_DESC_CSWlibpopt0 = Library for parsing command line parameters, libpopt.so.0 |
|---|
| 30 | # PKGFILES is catchall (library and according LC_MESSAGES) |
|---|
| 31 | OBSOLETED_BY_CSWlibpopt0 += CSWlibpopt |
|---|
| 32 | RUNTIME_DEP_PKGS_CSWlibpopt0 += CSWlibintl8 |
|---|
| 33 | RUNTIME_DEP_PKGS_CSWlibpopt0 += CSWlibiconv2 |
|---|
| 34 | |
|---|
| 35 | PACKAGES += CSWlibpopt-dev |
|---|
| 36 | SPKG_DESC_CSWlibpopt-dev = Development files for libpopt.so |
|---|
| 37 | RUNTIME_DEP_PKGS_CSWlibpopt-dev = CSWlibpopt0 |
|---|
| 38 | PKGFILES_CSWlibpopt-dev += $(PKGFILES_DEVEL) |
|---|
| 39 | OBSOLETES_CSWlibpopt-dev += CSWlibpopt |
|---|
| 40 | |
|---|
| 41 | BUILD64_LIBS_ONLY = 1 |
|---|
| 42 | NORUNPATH = 1 |
|---|
| 43 | |
|---|
| 44 | include gar/category.mk |
|---|
| 45 | |
|---|
| 46 | # We need GNU gettext under the name xgettext (not gxgettext) and |
|---|
| 47 | # prepending /opt/csw/gnu needs _A LOT_ of GNU stuff installed |
|---|
| 48 | # or several commands usually taken from /usr/bin are searched |
|---|
| 49 | # there and are not found. |
|---|
| 50 | pre-configure: |
|---|
| 51 | @ln -s /opt/csw/bin/gxgettext $(WORKSRC)/xgettext |
|---|
| 52 | @$(MAKECOOKIE) |
|---|
| 53 | |
|---|
| 54 | # Make sure xgettext we carefully linked just before is found before |
|---|
| 55 | # other versions. |
|---|
| 56 | PATH := .:$(PATH) |
|---|