components/augeas/Makefile
changeset 5682 94c0ca64c022
parent 5273 3ae19990a6f8
child 5811 c8a3c3d0ed1f
--- a/components/augeas/Makefile	Wed Mar 30 10:16:56 2016 -0700
+++ b/components/augeas/Makefile	Wed Mar 30 13:33:31 2016 -0700
@@ -18,38 +18,30 @@
 #
 # CDDL HEADER END
 #
+
+#
 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
 #
-
-COMPILER = gcc
-
+BUILD_BITS= 64
+COMPILER= gcc
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		augeas
 COMPONENT_VERSION=	1.3.0
 COMPONENT_PROJECT_URL=	http://www.augeas.net/
-COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
-COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	\
     sha256:80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af
 COMPONENT_ARCHIVE_URL=	http://download.augeas.net/$(COMPONENT_ARCHIVE)
-COMPONENT_BUGDB=	utility/augeas
 
 TPNO=	21660
 
-include $(WS_MAKE_RULES)/prep.mk
-include $(WS_MAKE_RULES)/configure.mk
-include $(WS_MAKE_RULES)/ips.mk
-
-CONFIGURE_BINDIR.64 =	$(CONFIGURE_PREFIX)/bin
+include $(WS_MAKE_RULES)/common.mk
 
 COMPONENT_PRE_CONFIGURE_ACTION = \
        ($(CLONEY) $(SOURCE_DIR) $(@D))
 
-CONFIGURE_PREFIX    =	/usr
 CONFIGURE_OPTIONS  +=	--infodir=$(CONFIGURE_INFODIR)
 CONFIGURE_OPTIONS  +=	--disable-dependency-tracking
-CONFIGURE_OPTIONS  +=	CFLAGS="$(CFLAGS)"
 
 COMPONENT_TEST_ARGS = -k
 COMPONENT_TEST_TRANSFORMS += \
@@ -65,11 +57,10 @@
         '-e "/PASS/p" ' \
         '-e "/FAIL/p" '
 
+# XXX why does this coredump without the workaround?
 # Fixes coredump in gnulib-test/test-localename test
 CONFIGURE_OPTIONS  +=           ac_cv_func_newlocale=no
 
-ASLR_MODE = $(ASLR_ENABLE)
-
 # Needed for "gmake test" to work.
 # SHELLOPTS is exported via make-rules/shared-macros.mk,
 # causing the braceexpand option to be set.
@@ -79,16 +70,6 @@
 # other than "test." 
 unexport SHELLOPTS
 
-# common targets
-configure:	$(CONFIGURE_64)
-
-build:		$(BUILD_64)
-
-install:	$(INSTALL_64)
-
-test:		$(TEST_64)
-
-REQUIRED_PACKAGES += system/library
 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
 REQUIRED_PACKAGES += library/libxml2
 REQUIRED_PACKAGES += library/readline