components/aalib/Makefile
changeset 5682 94c0ca64c022
parent 5563 f50fba81e706
child 5748 e80cda8309df
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
       
    26 # Prefer 32-bit over 64-bit as we have to manually shuffle the resulting
       
    27 # binaries around anyway in the package manifest.
       
    28 BUILD_BITS= 32_and_64
    26 include ../../make-rules/shared-macros.mk
    29 include ../../make-rules/shared-macros.mk
    27 
    30 
    28 COMPONENT_NAME=		aalib
    31 COMPONENT_NAME=		aalib
    29 COMPONENT_VERSION=	1.4.0
    32 COMPONENT_VERSION=	1.4.0
    30 HUMAN_VERSION=		1.4rc5
    33 HUMAN_VERSION=		1.4rc5
    31 IPS_COMPONENT_VERSION =	1.4.5
    34 IPS_COMPONENT_VERSION =	1.4.5
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_PROJECT_URL=	http://aa-project.sourceforge.net/aalib/
    35 COMPONENT_PROJECT_URL=	http://aa-project.sourceforge.net/aalib/
    34 COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
    36 COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
    35 COMPONENT_ARCHIVE_HASH=	\
    37 COMPONENT_ARCHIVE_HASH=	\
    36     sha256:fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee
    38     sha256:fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee
    37 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE)
    39 COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE)
    38 COMPONENT_BUGDB=	library/aalib
    40 COMPONENT_BUGDB=	library/aalib
    39 
    41 
    40 TPNO=			6118
    42 TPNO=			6118
    41 
    43 
    42 include $(WS_MAKE_RULES)/prep.mk
    44 SYSTEM_TEST_TARGET= $(SYSTEM_TEST_32_and_64)
    43 include $(WS_MAKE_RULES)/configure.mk
    45 include $(WS_MAKE_RULES)/common.mk
    44 include $(WS_MAKE_RULES)/ips.mk
       
    45 include $(WS_MAKE_RULES)/lint-libraries.mk
       
    46 
    46 
    47 LINT_FLAGS += -I$(SOURCE_DIR)/src
    47 LINT_FLAGS += -I$(SOURCE_DIR)/src
    48 
       
    49 PKG_PROTO_DIRS +=	$(COMPONENT_SRC)
       
    50 
    48 
    51 # Ensure ancient autoconf scripts are overwritten with fixed versions that
    49 # Ensure ancient autoconf scripts are overwritten with fixed versions that
    52 # properly detect SunOS 5.x hosts.
    50 # properly detect SunOS 5.x hosts.
    53 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
    51 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
    54 
    52 
    57 CONFIGURE_OPTIONS	+= --disable-static
    55 CONFIGURE_OPTIONS	+= --disable-static
    58 CONFIGURE_OPTIONS       += --with-curses-driver
    56 CONFIGURE_OPTIONS       += --with-curses-driver
    59 CONFIGURE_OPTIONS       += --without-slang-driver
    57 CONFIGURE_OPTIONS       += --without-slang-driver
    60 CONFIGURE_OPTIONS	+= --x-includes=$(USRINCDIR)
    58 CONFIGURE_OPTIONS	+= --x-includes=$(USRINCDIR)
    61 CONFIGURE_OPTIONS	+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
    59 CONFIGURE_OPTIONS	+= --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
    62 
       
    63 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    64 
    60 
    65 COMPONENT_TEST_DIR =	$(@D)/src
    61 COMPONENT_TEST_DIR =	$(@D)/src
    66 COMPONENT_TEST_CMD =	perl -E 'say "\n" x 40' | ./aatest
    62 COMPONENT_TEST_CMD =	perl -E 'say "\n" x 40' | ./aatest
    67 COMPONENT_TEST_ARGS =	-kbddriver stdin -driver stdout
    63 COMPONENT_TEST_ARGS =	-kbddriver stdin -driver stdout
    68 COMPONENT_TEST_TARGETS =
    64 COMPONENT_TEST_TARGETS =
    74 
    70 
    75 # Master test results are the same for both 32-bit and 64-bit, so override
    71 # Master test results are the same for both 32-bit and 64-bit, so override
    76 # here, rather than create multiple identical master files.
    72 # here, rather than create multiple identical master files.
    77 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    73 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    78 
    74 
    79 ASLR_MODE = $(ASLR_ENABLE)
       
    80 
       
    81 # common targets
       
    82 configure:	$(CONFIGURE_32_and_64)
       
    83 
       
    84 build:		$(BUILD_32_and_64)
       
    85 
       
    86 install:	$(INSTALL_32_and_64)
       
    87 
       
    88 test:		$(TEST_32_and_64)
       
    89 system-test:	$(SYSTEM_TEST_32_and_64)
       
    90 
       
    91 
       
    92 REQUIRED_PACKAGES += library/ncurses
    75 REQUIRED_PACKAGES += library/ncurses
    93 REQUIRED_PACKAGES += shell/ksh93
    76 REQUIRED_PACKAGES += shell/ksh93
    94 REQUIRED_PACKAGES += system/library
       
    95 REQUIRED_PACKAGES += system/library/math
    77 REQUIRED_PACKAGES += system/library/math
    96 REQUIRED_PACKAGES += x11/library/libx11
    78 REQUIRED_PACKAGES += x11/library/libx11