components/desktop/poppler/Makefile
changeset 5682 94c0ca64c022
parent 5388 04045c08c30d
child 6408 3c9262a98d5d
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 BUILD_BITS= 64_and_32
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		poppler
    28 COMPONENT_NAME=		poppler
    29 COMPONENT_VERSION=	0.14.4
    29 COMPONENT_VERSION=	0.14.4
    30 COMPONENT_PROJECT_URL=	http://poppler.freedesktop.org/
    30 COMPONENT_PROJECT_URL=	http://poppler.freedesktop.org/
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH= \
    31 COMPONENT_ARCHIVE_HASH= \
    34     sha256:97c394144802e733eaec2682e06bddc4939c71ede58df045127aa94bd244c713
    32     sha256:97c394144802e733eaec2682e06bddc4939c71ede58df045127aa94bd244c713
    35 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
    36 COMPONENT_BUGDB=	library/poppler
    34 COMPONENT_BUGDB=	library/poppler
    37 TPNO_POPPLER=		7745
    35 TPNO_POPPLER=		7745
    43 COMPONENT_ARCHIVE_HASH_1= \
    41 COMPONENT_ARCHIVE_HASH_1= \
    44     sha256:426010488bfb8c923419ca4c5d4916ea0193a140d2246336fdf97f1b632d58a6
    42     sha256:426010488bfb8c923419ca4c5d4916ea0193a140d2246336fdf97f1b632d58a6
    45 COMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE_1)
    43 COMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE_1)
    46 TPNO_POPPLER_DATA=	7744
    44 TPNO_POPPLER_DATA=	7744
    47 
    45 
    48 include $(WS_MAKE_RULES)/prep.mk
    46 TEST_TARGET= $(NO_TESTS)
    49 include $(WS_MAKE_RULES)/configure.mk
    47 include $(WS_MAKE_RULES)/common.mk
    50 include $(WS_MAKE_RULES)/ips.mk
       
    51 
    48 
    52 COMPONENT_PREP_ACTION = \
    49 COMPONENT_PREP_ACTION = \
    53 	(cd $(@D) ; \
    50 	(cd $(@D) ; \
    54 	aclocal -I . ; \
    51 	aclocal -I . ; \
    55 	libtoolize --force --copy ; \
    52 	libtoolize --force --copy ; \
    56 	autoheader ; \
    53 	autoheader ; \
    57 	automake -a -c -f ; \
    54 	automake -a -c -f ; \
    58 	autoconf )
    55 	autoconf )
    59 
    56 
    60 CXX +=			$(studio_NORUNPATH)
    57 CXX +=			$(studio_NORUNPATH)
    61 
       
    62 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    63 CONFIGURE_OPTIONS +=	CXXFLAGS="$(CXXFLAGS)"
       
    64 CONFIGURE_OPTIONS +=    LDFLAGS="$(LDFLAGS)"
       
    65 
    58 
    66 # Reduce build time dependencies since we don't ship this and can't run as an
    59 # Reduce build time dependencies since we don't ship this and can't run as an
    67 # automated test.
    60 # automated test.
    68 CONFIGURE_OPTIONS +=	--disable-gtk-test
    61 CONFIGURE_OPTIONS +=	--disable-gtk-test
    69 
    62 
    81 # Always show the build and link lines for easier debugging.
    74 # Always show the build and link lines for easier debugging.
    82 COMPONENT_BUILD_ARGS += V=1
    75 COMPONENT_BUILD_ARGS += V=1
    83 
    76 
    84 ASLR_MODE = $(ASLR_ENABLE)
    77 ASLR_MODE = $(ASLR_ENABLE)
    85 
    78 
    86 configure:	$(CONFIGURE_32_and_64)
       
    87 
       
    88 build:		$(BUILD_32_and_64)
       
    89 
       
    90 install:	$(INSTALL_32_and_64)
       
    91 
       
    92 test:		$(NO_TESTS)
       
    93 
       
    94 system-test:	$(NO_TESTS)
       
    95 
       
    96 REQUIRED_PACKAGES += image/library/libjpeg
    79 REQUIRED_PACKAGES += image/library/libjpeg
    97 REQUIRED_PACKAGES += image/library/libpng
    80 REQUIRED_PACKAGES += image/library/libpng
    98 REQUIRED_PACKAGES += library/desktop/cairo
    81 REQUIRED_PACKAGES += library/desktop/cairo
    99 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
    82 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
   100 REQUIRED_PACKAGES += library/desktop/gtk2
    83 REQUIRED_PACKAGES += library/desktop/gtk2
   101 REQUIRED_PACKAGES += library/glib2
    84 REQUIRED_PACKAGES += library/glib2
   102 REQUIRED_PACKAGES += library/lcms
    85 REQUIRED_PACKAGES += library/lcms
   103 REQUIRED_PACKAGES += library/libxml2
    86 REQUIRED_PACKAGES += library/libxml2
   104 REQUIRED_PACKAGES += library/zlib
    87 REQUIRED_PACKAGES += library/zlib
   105 REQUIRED_PACKAGES += system/library
       
   106 REQUIRED_PACKAGES += system/library/c++-runtime
    88 REQUIRED_PACKAGES += system/library/c++-runtime
   107 REQUIRED_PACKAGES += system/library/fontconfig
    89 REQUIRED_PACKAGES += system/library/fontconfig
   108 REQUIRED_PACKAGES += system/library/freetype-2
    90 REQUIRED_PACKAGES += system/library/freetype-2
   109 REQUIRED_PACKAGES += system/library/math
    91 REQUIRED_PACKAGES += system/library/math