[BACK]Return to Makefile.common CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2

Annotation of pkgsrc/devel/glib2/Makefile.common, Revision 1.66

1.66    ! wiz         1: # $NetBSD: Makefile.common,v 1.65 2018/08/01 17:43:25 jperkin Exp $
1.1       jmmv        2: #
                      3: # used by devel/glib2/Makefile
1.21      prlw1       4: # used by devel/gdbus-codegen/Makefile
1.59      prlw1       5: # used by devel/glib2-tools/Makefile
1.1       jmmv        6: # used by sysutils/gio-fam/Makefile
                      7:
                      8: # When updating this package, please apply patch-ak to configure.in and
                      9: # then run a matching version of autoconf to regen patch-aa.
1.66    ! wiz        10: DISTNAME=      glib-2.56.2
1.17      adam       11: PKGNAME=       ${DISTNAME:S/glib/glib2/}
                     12: CATEGORIES=    # empty; redefined in Makefile
1.35      obache     13: MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/glib/${PKGVERSION_NOREV:R}/}
1.17      adam       14: EXTRACT_SUFX=  .tar.xz
                     15:
1.37      prlw1      16: MAINTAINER=    prlw1@cam.ac.uk
1.56      wiz        17: HOMEPAGE=      https://developer.gnome.org/glib/
1.17      adam       18: COMMENT=       # empty; redefined in Makefile
1.57      prlw1      19: LICENSE=       gnu-lgpl-v2.1
1.1       jmmv       20:
                     21: USE_PKGLOCALEDIR=      yes
1.14      drochner   22: USE_TOOLS+=            gmake pkg-config
1.1       jmmv       23: USE_LANGUAGES=         c c++ c99
                     24: USE_LIBTOOL=           yes
                     25: TEST_TARGET=           check
                     26:
                     27: DISTINFO_FILE=         ${.CURDIR}/../../devel/glib2/distinfo
                     28: PATCHDIR=              ${.CURDIR}/../../devel/glib2/patches
                     29:
                     30: GNU_CONFIGURE=         yes
1.17      adam       31: CONFIGURE_ENV+=                PKGLOCALEDIR=${PKGLOCALEDIR}
1.1       jmmv       32: CONFIGURE_ARGS+=       --disable-fam   # See sysutils/gio-fam.
                     33: CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/glib
                     34: CONFIGURE_ARGS+=       ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
                     35: CONFIGURE_ARGS+=       --with-pcre=system
1.4       drochner   36: CONFIGURE_ARGS+=       --disable-dtrace
1.22      jmmv       37: CONFIGURE_ARGS+=       --disable-man  # Requires xsltproc and Docbook.
1.33      ryoon      38: # Avoid unnecessary autotools invocation.
                     39: CONFIGURE_ARGS+=       --disable-maintainer-mode
1.53      maya       40: # Avoid linux dependency on libmount-dev
                     41: CONFIGURE_ARGS.Linux+= --disable-libmount
1.1       jmmv       42:
1.39      jperkin    43: # When ICONV_TYPE=gnu ensure we explicitly use the GNU version, to avoid
                     44: # conflicts between iconv.h from converters/libiconv and builtin libiconv
                     45: # which may be non-GNU.
1.38      jperkin    46: CONFIGURE_ARGS.gnu-iconv=      --with-libiconv=gnu
                     47:
1.1       jmmv       48: CONFIGURE_ENV+=                PERL_PATH=${PERL5:Q}
                     49:
                     50: .include "../../mk/bsd.prefs.mk"
                     51:
                     52: CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
                     53: CPPFLAGS+=             -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
                     54: CPPFLAGS+=             -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
                     55:
                     56: .if ${OPSYS} == "FreeBSD"
                     57: SUBST_CLASSES+=                thr
1.64      jperkin    58: SUBST_STAGE.thr=       pre-configure
1.1       jmmv       59: SUBST_FILES.thr=       gthread/Makefile.in
                     60: .  if ${OS_VERSION:R} >= 5
                     61: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g"
                     62: .  else
                     63: SUBST_SED.thr+=                -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
                     64: .  endif
                     65: SUBST_MESSAGE.thr=     Fixing libgthread.
                     66: .endif
                     67:
                     68: .if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*)
                     69: CONFIGURE_ENV+=                gt_cv_c_wchar_t=no
                     70: .endif
                     71:
1.46      jperkin    72: BUILDLINK_TRANSFORM.Darwin+=   rm:-Werror=missing-prototypes
                     73: BUILDLINK_TRANSFORM.SunOS+=    rm:-Werror=format=2
1.1       jmmv       74:
1.46      jperkin    75: CONFIGURE_ENV.HPUX+=           ac_cv_func_mmap_fixed_mapped=yes
1.36      tron       76:
1.1       jmmv       77: .include "../../mk/dlopen.buildlink3.mk"
                     78:
                     79: .if !empty(MACHINE_PLATFORM:MIRIX-5*)
                     80: CONFIGURE_ARGS+=       --disable-threads
                     81: .else
                     82: .include "../../mk/pthread.buildlink3.mk"
                     83: .endif
1.6       obache     84:
1.37      prlw1      85: BUILD_DEFS+=           VARBASE
1.6       obache     86: SUBST_CLASSES+=                dbusdb
                     87: SUBST_MESSAGE.dbusdb=  Adjust dbus machine uuid path to dbus package
1.64      jperkin    88: SUBST_STAGE.dbusdb=    pre-configure
1.6       obache     89: SUBST_FILES.dbusdb=    gio/gdbusconnection.c
                     90: SUBST_FILES.dbusdb+=   gio/gdbusprivate.c
                     91: SUBST_FILES.dbusdb+=   po/glib20.pot
                     92: SUBST_FILES.dbusdb+=   po/*.po
                     93: SUBST_SED.dbusdb=      -e 's,/var/lib/dbus,${VARBASE}/db/dbus,g'

CVSweb <webmaster@jp.NetBSD.org>