components/gd2/Makefile
changeset 181 87e11e685b1f
parent 151 f9e42a3f7095
child 609 775168282b2f
equal deleted inserted replaced
180:4de0581be621 181:87e11e685b1f
    33 COMPONENT_ARCHIVE_URL=  http://www.libgd.org/releases/$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=  http://www.libgd.org/releases/$(COMPONENT_ARCHIVE)
    34 
    34 
    35 include ../../make-rules/prep.mk
    35 include ../../make-rules/prep.mk
    36 include ../../make-rules/configure.mk
    36 include ../../make-rules/configure.mk
    37 include ../../make-rules/ips.mk
    37 include ../../make-rules/ips.mk
    38 
    38 include ../../make-rules/lint-libraries.mk
    39 LIBNAME =       gd
       
    40 LINTOUT =       lint.out
       
    41 
    39 
    42 PKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
    40 PKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
    43 PKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
    41 PKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
    44 
    42 
    45 PATCH_LEVEL = 0
    43 PATCH_LEVEL = 0
    57 CONFIGURE_OPTIONS  +=           --with-x
    55 CONFIGURE_OPTIONS  +=           --with-x
    58 CONFIGURE_OPTIONS  +=           --with-pic
    56 CONFIGURE_OPTIONS  +=           --with-pic
    59 
    57 
    60 COMPONENT_PREP_ACTION = (cd $(@D) ; autoconf)
    58 COMPONENT_PREP_ACTION = (cd $(@D) ; autoconf)
    61 
    59 
    62 COMPONENT_POST_BUILD_ACTION = \
       
    63 	 (cd $(@D); $(LINT) -nsvx $(CC_BITS) -o $(LIBNAME) -I$(@D) \
       
    64 			-I$(COMPONENT_DIR)/$(COMPONENT_SRC) \
       
    65 			$(COMPONENT_DIR)/llib-l$(LIBNAME) > $(LINTOUT) 2>&1)
       
    66 
       
    67 COMPONENT_POST_INSTALL_ACTION = \
       
    68 	(cd $(@D); $(INSTALL) llib-l$(LIBNAME).ln \
       
    69 			$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS)))
       
    70 
       
    71 PROTOUSRSHAREDOCDIR = $(PROTOUSRSHAREDIR)/doc/gd2/html
       
    72 
       
    73 build: $(BUILD_32_and_64)
    60 build: $(BUILD_32_and_64)
    74 
       
    75 GSED =	/usr/gnu/bin/sed
       
    76 
       
    77 include ../../make-rules/shared-targets.mk
       
    78 
    61 
    79 install: $(INSTALL_32_and_64)
    62 install: $(INSTALL_32_and_64)
    80 
    63 
    81 test: $(BUILD_32_and_64)
    64 test: 	$(NO_TESTS)
    82 	@echo "There is no test harness for libgd2."
    65 	@echo "There is no test harness for libgd2."
    83 	@echo "Test programs must be run manually and their output"
    66 	@echo "Test programs must be run manually and their output"
    84 	@echo "should be visually inspected."
    67 	@echo "should be visually inspected."
    85 
    68 
    86 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
    69 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)