components/ircii/Makefile
changeset 1304 428fd83fdeb2
parent 1177 865ee3a7a5e0
child 1948 2d1537e7942d
equal deleted inserted replaced
1303:79b691ffbda3 1304:428fd83fdeb2
    38 
    38 
    39 include ../../make-rules/prep.mk
    39 include ../../make-rules/prep.mk
    40 include ../../make-rules/configure.mk
    40 include ../../make-rules/configure.mk
    41 include ../../make-rules/ips.mk
    41 include ../../make-rules/ips.mk
    42 
    42 
       
    43 # Needed to correctly include <curses.h> and <term.h> when compiling the
       
    44 # various C source files.
       
    45 CFLAGS += -DINCLUDE_CURSES_H
       
    46 
    43 CONFIGURE_ENV += CC="$(CC)"
    47 CONFIGURE_ENV += CC="$(CC)"
       
    48 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    49 
       
    50 CC += $(CC_BITS)
       
    51 COMPONENT_BUILD_ARGS += CC="$(CC)"
    44 
    52 
    45 # We need to reset configure options here because ircii is confused with
    53 # We need to reset configure options here because ircii is confused with
    46 # CC and CFLAGS definitions as configure parameters.
    54 # CC and CFLAGS definitions as configure parameters.
    47 CONFIGURE_OPTIONS       = --prefix=/usr
    55 CONFIGURE_OPTIONS       = --prefix=/usr
    48 CONFIGURE_OPTIONS       += --mandir=$(CONFIGURE_MANDIR)
    56 CONFIGURE_OPTIONS       += --mandir=$(CONFIGURE_MANDIR)
    55 # The configure script has some logic that just blindly resets it back
    63 # The configure script has some logic that just blindly resets it back
    56 # to /usr/libexec. This problem has been reported to the ircii maintainer.
    64 # to /usr/libexec. This problem has been reported to the ircii maintainer.
    57 #
    65 #
    58 # This action modifies the libexecdir setting in the Makefile to /usr/bin
    66 # This action modifies the libexecdir setting in the Makefile to /usr/bin
    59 COMPONENT_POST_CONFIGURE_ACTION = \
    67 COMPONENT_POST_CONFIGURE_ACTION = \
    60 	$(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_32)/Makefile
    68 	$(GSED) -i -e 's|/usr/libexec|/usr/bin|' $(BUILD_DIR_64)/Makefile
    61 
    69 
    62 # Enable ASLR for this component
    70 # Enable ASLR for this component
    63 ASLR_MODE = $(ASLR_ENABLE)
    71 ASLR_MODE = $(ASLR_ENABLE)
    64 
    72 
    65 # common targets
    73 # common targets
    66 build:		$(BUILD_32)
    74 build:		$(BUILD_64)
    67 
    75 
    68 install:	$(INSTALL_32)
    76 install:	$(INSTALL_64)
    69 
    77 
    70 test:           $(NO_TESTS)
    78 test:           $(NO_TESTS)
    71 
    79 
    72 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    80 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    73 
    81