1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/libnet/branches/1.1.x/Makefile

Revision 15800, 3.2 KB (checked in by dmichelsen, 8 months ago)

libnet: Fix library search path

Line 
1NAME = libnet
2VERSION = 1.1.5
3CATEGORIES = lib
4
5DESCRIPTION = The libnet packet construction library
6define BLURB
7  Libnet is a high-level API (toolkit) allowing the application programmer to
8  construct and inject network packets. It provides a portable and simplified
9  interface for low-level network packet shaping, handling and injection.
10  Libnet hides much of the tedium of packet creation from the application
11  programmer such as multiplexing, buffer management, arcane packet header
12  information, byte-ordering, OS-dependent issues, and much more.
13  Libnet features portable packet creation interfaces at both the IP-layer
14  and link-layer, as well as a host of supplementary and complementary
15  functionality.
16endef
17
18SF_PROJ = libnet-dev
19MASTER_SITES = $(SF_MIRROR)
20DISTFILES  = $(NAME)-$(VERSION).tar.gz
21DISTFILES += libnet.so.1.0.2.i
22DISTFILES += libnet.so.1.0.2.s
23PATCHFILES = 0001-Fix-missing-uint-instead-of-u_int.patch
24
25LICENSE = doc/COPYING
26
27VENDOR_URL = http://github.com/sam-github/libnet
28
29PACKAGES += CSWlibnet
30SPKG_DESC_CSWlibnet = Libnet package construction library (legacy), libnet.so
31SPKG_VERSION_CSWlibnet = 1.0.2a
32PKGFILES_CSWlibnet += $(libdir)/libnet.so
33PKGFILES_CSWlibnet += $(libdir)/libnet.so.1.0.2
34
35# These overrides are for the legacy library which should just
36# stay the way it is.
37CHECKPKG_OVERRIDES_CSWlibnet += shared-lib-package-contains-so-symlink|file=/opt/csw/lib/libnet.so
38CHECKPKG_OVERRIDES_CSWlibnet += bad-rpath-entry
39CHECKPKG_OVERRIDES_CSWlibnet += shared-lib-pkgname-mismatch|file=opt/csw/lib/libnet.so.1.0.2|soname=libnet.so.1.0.2|pkgname=CSWlibnet|expected=CSWlibnet1-0-2
40CHECKPKG_OVERRIDES_CSWlibnet += shared-lib-package-contains-so-symlink|file=/opt/csw/lib/libnet.so
41
42PACKAGES += CSWlibnet1
43SPKG_DESC_CSWlibnet1 = Libnet package construction library, libnet.so.1
44# Explicitly do *not* include libnet.so.1.0.2
45PKGFILES_CSWlibnet1  = $(call baseisadirs,$(libdir),libnet\.so\.1)
46PKGFILES_CSWlibnet1 += $(call baseisadirs,$(libdir),libnet\.so\.1\.6(\.\d+)*)
47
48PACKAGES += CSWlibnet-dev
49SPKG_DESC_CSWlibnet-dev = Development files for libnet.so.1
50# PKGFILES is catchall
51# The general layout of CSWlibnet-dev is non-standard. Please see here for a rationale:
52#   http://wiki.opencsw.org/project-libnet
53RUNTIME_DEP_PKGS_CSWlibnet-dev += CSWlibnet1
54OBSOLETED_BY_CSWlibnet-dev += CSWlibnetdevel
55CATALOGNAME_CSWlibnetdevel = libnet_devel_stub
56
57BUILD64 = 1
58
59EXTRA_CONFIGURE_ARGS-32 += LIBNET_CONFIG_LIBS=-L$(libdir)/libnet-new
60EXTRA_CONFIGURE_ARGS-64 += LIBNET_CONFIG_LIBS=-L$(libdir)
61EXTRA_CONFIGURE_ARGS += $(EXTRA_CONFIGURE_ARGS-$(MEMORYMODEL))
62
63include gar/category.mk
64
65post-install-isa-sparcv8:
66        ginstall -d $(DESTDIR)$(libdir)
67        cp $(WORKDIR)/libnet.so.1.0.2.s $(DESTDIR)$(libdir)/libnet.so.1.0.2
68        rm $(DESTDIR)$(libdir)/libnet.so
69        ln -s libnet.so.1.0.2 $(DESTDIR)$(libdir)/libnet.so
70        mkdir $(DESTDIR)$(libdir)/libnet-new
71        ln -s ../libnet.so.1 $(DESTDIR)$(libdir)/libnet-new/libnet.so
72        @$(MAKECOOKIE)
73
74post-install-isa-i386:
75        ginstall -d $(DESTDIR)$(libdir)
76        cp $(WORKDIR)/libnet.so.1.0.2.i $(DESTDIR)$(libdir)/libnet.so.1.0.2
77        rm $(DESTDIR)$(libdir)/libnet.so
78        ln -s libnet.so.1.0.2 $(DESTDIR)$(libdir)/libnet.so
79        mkdir $(DESTDIR)$(libdir)/libnet-new
80        ln -s ../libnet.so.1 $(DESTDIR)$(libdir)/libnet-new/libnet.so
81        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.