Return to Makefile CVS log | Up to [cvs.NetBSD.org] / pkgsrc / x11 / enlightenment |
File: [cvs.NetBSD.org] / pkgsrc / x11 / enlightenment / Makefile (download)
Revision 1.37, Sun Jan 24 16:14:45 2016 UTC (8 years, 2 months ago) by jperkin
Attempt to bring sanity to how ABI and MACHINE_ARCH are set. Previously there were at least 5 different ways MACHINE_ARCH could be set, some statically and some at run time, and in many cases these settings differed, leading to issues at pkg_add time where there was conflict between the setting encoded into the package and that used by pkg_install. Instead, move to a single source of truth where the correct value based on the host and the chosen (or default) ABI is determined in the bootstrap script. The value can still be overridden in mk.conf if necessary, e.g. for cross-compiling. ABI is now set by default and if unset a default is calculated based on MACHINE_ARCH. This fixes some OS, e.g. Linux, where the wrong default was previously chosen. As a result of the refactoring there is no need for LOWER_ARCH, with references to it replaced by MACHINE_ARCH. SPARC_TARGET_ARCH is also removed. |
# $NetBSD: Makefile,v 1.37 2016/01/24 16:14:45 jperkin Exp $ # DISTNAME= enlightenment-0.17.3 PKGREVISION= 6 CATEGORIES= x11 MASTER_SITES= http://download.enlightenment.org/releases/ EXTRACT_SUFX= .tar.bz2 MAINTAINER= joerg@NetBSD.org HOMEPAGE= http://enlightenment.org/ COMMENT= Enlightenment Window Manager, Development Release LICENSE= 2-clause-bsd PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS= gmake pkg-config automake autoconf PKG_SYSCONFSUBDIR= enlightenment CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE:Q} EGDIR= ${PREFIX}/share/examples/enlightenment CONF_FILES= ${EGDIR}/sysactions.conf \ ${PKG_SYSCONFDIR}/sysactions.conf CONF_FILES+= ${EGDIR}/enlightenment.menu \ ${PKG_SYSCONFBASE}/xdg/menus/enlightenment.menu CONFIGURE_ARGS+= --disable-mount-hal --disable-mount-udisks \ --disable-mount-eeze CONFIGURE_ENV+= MODULE_ARCH="${LOWER_OPSYS}-${MACHINE_ARCH}" BUILD_DEFS+= PKG_SYSCONFBASE INSTALLATION_DIRS= ${EGDIR} .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" SUBST_CLASSES+= solhost SUBST_STAGE.solhost= pre-configure SUBST_FILES.solhost= configure SUBST_SED.solhost= -e '/^MODULE_ARCH=/s/.host_os/solaris/' .endif .if ${X11_TYPE} == "modular" CPPFLAGS+= -DPKGSRC_X11BASE=\"${X11BASE:Q}\" .endif pre-install: ${INSTALL_DATA} ${WRKSRC}/data/etc/enlightenment.menu ${DESTDIR}${EGDIR} ${INSTALL_DATA} ${WRKSRC}/data/etc/sysactions.conf ${DESTDIR}${EGDIR} PKGCONFIG_OVERRIDE= enlightenment.pc.in MODULE_ARCH= ${LOWER_OPSYS}-${MACHINE_ARCH}-${PKGVERSION_NOREV} PLIST_SUBST= MODULE_ARCH=${MODULE_ARCH} PRINT_PLIST_AWK+= { gsub(/${MODULE_ARCH}/, "$${MODULE_ARCH}") } .include "../../devel/ecore/buildlink3.mk" .include "../../devel/eet/buildlink3.mk" .include "../../graphics/edje/buildlink3.mk" .include "../../graphics/evas/buildlink3.mk" .include "../../graphics/evas-buffer/buildlink3.mk" .include "../../graphics/evas-eet/buildlink3.mk" .include "../../graphics/evas-jpeg/buildlink3.mk" .include "../../graphics/evas-png/buildlink3.mk" .include "../../sysutils/edbus/buildlink3.mk" .include "../../sysutils/efreet/buildlink3.mk" .include "../../devel/eio/buildlink3.mk" .include "../../x11/elementary/buildlink3.mk" .include "../../graphics/imlib2/buildlink3.mk" .include "../../x11/xcb-util-keysyms/buildlink3.mk" .include "../../mk/bsd.pkg.mk"