components/ghostscript/Makefile
changeset 1135 7f8ef38770aa
parent 1058 34d7aaa03423
child 1352 1358a1e1ff4c
equal deleted inserted replaced
1134:9b5eb03884b6 1135:7f8ef38770aa
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # fields enclosed by brackets "[]" replaced with your own identifying
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 # information: Portions Copyright [yyyy] [name of copyright owner]
    19 #
    19 #
    20 # CDDL HEADER END
    20 # CDDL HEADER END
    21 #
    21 #
    22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
    22 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
    23 #
    23 #
    24 
    24 
    25 # parfait seems to spin when looking at the .bc files, so
    25 # parfait seems to spin when looking at the .bc files, so
    26 # for now disable it.
    26 # for now disable it.
    27 PARFAIT_BUILD=no
    27 PARFAIT_BUILD=no
    54 CONFIGURE_OPTIONS +=	--enable-dynamic
    54 CONFIGURE_OPTIONS +=	--enable-dynamic
    55 CONFIGURE_OPTIONS +=	--disable-compile-inits
    55 CONFIGURE_OPTIONS +=	--disable-compile-inits
    56 CONFIGURE_OPTIONS +=	--disable-freetype
    56 CONFIGURE_OPTIONS +=	--disable-freetype
    57 CONFIGURE_OPTIONS +=	--with-fontpath=/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource:/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font:/usr/share/ghostscript/fonts:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType:/usr/openwin/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Type1:/usr/X11/lib/fonts/TrueType:/usr/X11/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Resource:/usr/X11/lib/X11/Resource/Font
    57 CONFIGURE_OPTIONS +=	--with-fontpath=/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource:/usr/share/ghostscript/$(COMPONENT_VERSION)/Resource/Font:/usr/share/ghostscript/fonts:/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType:/usr/openwin/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Type1:/usr/X11/lib/fonts/TrueType:/usr/X11/lib/X11/fonts/Type3:/usr/X11/lib/X11/fonts/Resource:/usr/X11/lib/X11/Resource/Font
    58 
    58 
       
    59 # configure options to generate 64 bit binaries
       
    60 $(BUILD_DIR)/$(MACH64)/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
       
    61 $(BUILD_DIR)/$(MACH64)/ijs/.configured: CONFIGURE_OPTIONS += CC="$(CC) -m64"
       
    62 
    59 # config env
    63 # config env
    60 CONFIGURE_ENV += LDFLAGS_SO="-G"
    64 CONFIGURE_ENV += LDFLAGS_SO="-G"
    61 CONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
    65 CONFIGURE_ENV += CUPSCONFIG=/usr/bin/cups-config
    62 
    66 
    63 GS_VARIANT = $(BUILD_DIR)/$(MACH32)
    67 GS_VARIANT = $(BUILD_DIR)/$(MACH32)
       
    68 GS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)
    64 IJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
    69 IJS_VARIANT = $(BUILD_DIR)/$(MACH32)/ijs
       
    70 IJS_VARIANT_64 = $(BUILD_DIR)/$(MACH64)/ijs
    65 
    71 
    66 VARIANTS = $(GS_VARIANT) $(IJS_VARIANT)
    72 VARIANTS = $(GS_VARIANT) $(IJS_VARIANT) $(GS_VARIANT_64) $(IJS_VARIANT_64)
    67 
    73 
    68 # autoconf - Generate configuration scripts
    74 # autoconf - Generate configuration scripts
    69 COMPONENT_PREP_ACTION = \
    75 COMPONENT_PREP_ACTION = \
    70 	 (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
    76 	 (cd $(@D); $(RM) -r libpng zlib jpeg ; autoconf)
    71 
    77 
    74 
    80 
    75 $(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
    81 $(GS_VARIANT)/.installed: COMPONENT_INSTALL_TARGETS += \
    76 	install-exec install-so install-scripts install-data \
    82 	install-exec install-so install-scripts install-data \
    77 	install-contrib-extras
    83 	install-contrib-extras
    78 
    84 
       
    85 $(GS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
       
    86 	($(CLONEY) $(SOURCE_DIR) $(@D))
       
    87 
       
    88 $(GS_VARIANT_64)/.installed: COMPONENT_INSTALL_TARGETS += \
       
    89 	install-exec install-so install-scripts install-data \
       
    90 	install-contrib-extras
       
    91 
    79 $(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
    92 $(IJS_VARIANT)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
       
    93 	($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
       
    94 	cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
       
    95 
       
    96 $(IJS_VARIANT_64)/.configured: COMPONENT_PRE_CONFIGURE_ACTION = \
    80 	($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
    97 	($(CLONEY) $(SOURCE_DIR)/ijs $(@D); \
    81 	cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
    98 	cd $(@D) ; $(ENV) $(CONFIGURE_ENV) ./autogen.sh )
    82 
    99 
    83 CONFIGURE_SCRIPT = ./configure
   100 CONFIGURE_SCRIPT = ./configure
    84 
   101