open-src/xserver/xorg/Makefile
changeset 935 f812f9863e75
parent 931 e0243b82efa9
child 947 ef9da9d336f5
--- a/open-src/xserver/xorg/Makefile	Tue Apr 06 13:10:11 2010 -0700
+++ b/open-src/xserver/xorg/Makefile	Wed Apr 07 15:57:52 2010 -0700
@@ -2,8 +2,7 @@
 #
 # Xorg server Makefile
 #
-# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the "Software"),
@@ -141,15 +140,18 @@
 # builds
 install_pc_common: default_install
 	-rm -f $(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
+	mkdir -p $(PROTODIR)$(PKGCONFIG_DIR)
 	cp -pf $(SOURCE_DIR)/xorg-server.pc \
 		$(PROTODIR)$(PKGCONFIG_DIR)/xorg-server.pc
 
 # Install xorg-server.pc in 32-bit pkgconfig dir on SPARC too
 install_pc_copy: install_pc_common install_pkgconfig_uninstalled 
-	cp -pf $(PROTODIR)$(PKGCONFIG_DIR_64)/xorg-server.pc \
-		$(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server.pc
-	cp -pf $(PROTODIR)$(PKGCONFIG_DIR_64)/xorg-server-uninstalled.pc \
+	-rm -f $(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server.pc \
 		$(PROTODIR)$(PKGCONFIG_DIR_32)/xorg-server-uninstalled.pc
+	mkdir -p $(PROTODIR)$(PKGCONFIG_DIR_32)
+	ln -s ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server.pc \
+	    ../$(SUBDIR64)$(PKGCONFIG_DIR_suffix)/xorg-server-uninstalled.pc \
+		$(PROTODIR)$(PKGCONFIG_DIR_32)/
 
 $(BUILD_DIR)/mapfile-Xorg-externs: $(XORGSERVER_BIN)
 	-rm -f $@