| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | NAME = gamin |
|---|
| 4 | VERSION = 0.1.10 |
|---|
| 5 | CATEGORIES = server |
|---|
| 6 | GARTYPE = v2 |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = GNOME replacement for FAM which watches for file alterations |
|---|
| 9 | define BLURB |
|---|
| 10 | endef |
|---|
| 11 | |
|---|
| 12 | MASTER_SITES += http://people.gnome.org/~veillard/gamin/sources/ |
|---|
| 13 | DISTFILES = $(DISTNAME).tar.gz |
|---|
| 14 | |
|---|
| 15 | # Solaris Nevada FEN support from |
|---|
| 16 | # https://bugzilla.gnome.org/show_bug.cgi?id=491319 |
|---|
| 17 | # The patch has been reformatted |
|---|
| 18 | # PATCHFILES += 0001-Patch-from-bugid-107675.patch |
|---|
| 19 | |
|---|
| 20 | # As taken from |
|---|
| 21 | # http://src.opensolaris.org/source/xref/jds/spec-files/trunk/base-specs/gamin.spec |
|---|
| 22 | |
|---|
| 23 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 24 | |
|---|
| 25 | MASTER_SITES += http://src.opensolaris.org/source/raw/jds/spec-files/branches/opensolaris-2010-03/patches/ |
|---|
| 26 | PATCHDIRLEVEL = 0 |
|---|
| 27 | PATCHFILES += gamin-01-all.diff |
|---|
| 28 | PATCHFILES += gamin-02-gamin.diff |
|---|
| 29 | |
|---|
| 30 | PATCHFILES += 0003-Enable-64-bit-builds.patch |
|---|
| 31 | |
|---|
| 32 | VENDOR_URL = http://people.gnome.org/~veillard/gamin/ |
|---|
| 33 | |
|---|
| 34 | PACKAGES += CSWlibfam0 |
|---|
| 35 | SPKG_DESC_CSWlibfam0 = FAM compatibility library from GAMIN, libfam.so.0 |
|---|
| 36 | PKGFILES_CSWlibfam0 += $(call pkgfiles_lib,libfam.so.0) |
|---|
| 37 | OBSOLETED_BY_CSWlibfam0 += CSWfam |
|---|
| 38 | |
|---|
| 39 | PACKAGES += CSWlibgamin1-0 |
|---|
| 40 | SPKG_DESC_CSWlibgamin1-0 = GNOME replacement for FAM library, libgamin-1.so.0 |
|---|
| 41 | PKGFILES_CSWlibgamin1-0 += $(call pkgfiles_lib,libgamin-1.so.0) |
|---|
| 42 | |
|---|
| 43 | PACKAGES += CSWlibgamin-dev |
|---|
| 44 | SPKG_DESC_CSWlibgamin-dev = Development files for libgamin-1.so.0 and legacy compat libfam.so.0 |
|---|
| 45 | PKGFILES_CSWlibgamin-dev += $(PKGFILES_DEVEL) |
|---|
| 46 | RUNTIME_DEP_PKGS_CSWlibgamin-dev += CSWlibgamin1-0 |
|---|
| 47 | # That is a legacy-only library, no need to pull it in unless for legacy CSWfam |
|---|
| 48 | CHECKPKG_OVERRIDES_CSWlibgamin-dev += missing-dependency|CSWlibfam0 |
|---|
| 49 | |
|---|
| 50 | PACKAGES += CSWpy-gamin |
|---|
| 51 | SPKG_DESC_CSWpy-gamin = Python bindings for GAMIN file alteration monitor |
|---|
| 52 | PKGFILES_CSWpy-gamin += $(libdir)/site-packages/.* |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWpy-gamin += CSWpython |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWpy-gamin += CSWlibgamin1-0 |
|---|
| 55 | |
|---|
| 56 | PACKAGES += CSWgamin |
|---|
| 57 | SPKG_DESC_CSWgamin = GAMIN file alteration monitor daemon (compatible to FAM) |
|---|
| 58 | # PKGFILES is catchall |
|---|
| 59 | RUNTIME_DEP_PKGS_CSWgamin += CSWlibintl8 |
|---|
| 60 | RUNTIME_DEP_PKGS_CSWgamin += CSWlibglib2-0-0 |
|---|
| 61 | OBSOLETED_BY_CSWgamin += CSWfam |
|---|
| 62 | |
|---|
| 63 | BUILD_DEP_PKGS = CSWlibtool |
|---|
| 64 | BUILD_DEP_PKGS += CSWlibglib2-dev |
|---|
| 65 | BUILD_DEP_PKGS += CSWautoconf |
|---|
| 66 | BUILD_DEP_PKGS += CSWautomake |
|---|
| 67 | |
|---|
| 68 | # For socket, recvmsg, connect |
|---|
| 69 | # Overwrite existing -L/opt/csw/lib or installed libs will be picked up first |
|---|
| 70 | LINKER_FLAGS = -lsocket -lnsl |
|---|
| 71 | |
|---|
| 72 | BUILD64_LIBS_ONLY = 1 |
|---|
| 73 | |
|---|
| 74 | # This is not passed to configure, although it is defined (but wrong) in configure.in |
|---|
| 75 | EXTRA_CONFIGURE_EXPORTS += ENV_CFLAGS |
|---|
| 76 | CONFIGURE_ENV_ENV_CFLAGS = $(CFLAGS) |
|---|
| 77 | |
|---|
| 78 | # No 64 bit Python yet |
|---|
| 79 | CONFIGURE_ARGS-64 += --without-python |
|---|
| 80 | |
|---|
| 81 | CONFIGURE_ARGS += $(DIRPATHS) |
|---|
| 82 | CONFIGURE_ARGS += $(CONFIGURE_ARGS-$(MEMORYMODEL)) |
|---|
| 83 | |
|---|
| 84 | PYCOMPILE = 1 |
|---|
| 85 | EXTRA_MERGE_EXCLUDE_FILES += .*\.pyo .*\.pyc |
|---|
| 86 | EXTRA_PAX_ARGS += -s ,$(libdir)/python2.6/site-packages,$(libdir)/site-packages, |
|---|
| 87 | EXTRA_PAX_ARGS += -s ,$(libdir)/python2.4/site-packages,$(libdir)/site-packages, |
|---|
| 88 | |
|---|
| 89 | include gar/category.mk |
|---|
| 90 | |
|---|
| 91 | pre-configure-modulated: |
|---|
| 92 | cd $(WORKSRC) && libtoolize --copy --force |
|---|
| 93 | cd $(WORKSRC) && aclocal |
|---|
| 94 | cd $(WORKSRC) && autoconf --force |
|---|
| 95 | cd $(WORKSRC) && automake -a -c -f |
|---|
| 96 | @$(MAKECOOKIE) |
|---|