[103651] users/cal/base-rewrite/src/macports2.0/Makefile
cal at macports.org
cal at macports.org
Sun Mar 3 13:44:54 PST 2013
Revision: 103651
https://trac.macports.org/changeset/103651
Author: cal at macports.org
Date: 2013-03-03 13:44:54 -0800 (Sun, 03 Mar 2013)
Log Message:
-----------
macports2.0: add makefile
Added Paths:
-----------
users/cal/base-rewrite/src/macports2.0/Makefile
Added: users/cal/base-rewrite/src/macports2.0/Makefile
===================================================================
--- users/cal/base-rewrite/src/macports2.0/Makefile (rev 0)
+++ users/cal/base-rewrite/src/macports2.0/Makefile 2013-03-03 21:44:54 UTC (rev 103651)
@@ -0,0 +1,44 @@
+SRCS=fastload.tcl\
+ autoconf.tcl
+OBJS=get_systemconfiguration_proxies.o\
+ sysctl.o\
+ tclglue.o
+
+SHLIB_NAME=MacPorts$(SHLIB_SUFFIX)
+NAME=macports2.0
+
+INSTALLDIR=$(DESTDIR)$(datadir)/macports/Tcl/$(NAME)
+INSTALLPKGLINK=$(TCL_PACKAGE_DIR)/$(NAME)
+
+include ../../Mk/macports.autoconf.mk
+include ../../Mk/macports.tea.mk
+
+ifeq ($(OBJC_RUNTIME),APPLE_RUNTIME)
+ LIBS+=-framework CoreFoundation -framework SystemConfiguration
+endif
+
+pkgIndex.tcl: $(SRCS)
+
+distclean:: clean
+ rm -f autoconf.tcl fastload.tcl
+
+install:: all
+ $(INSTALL) -d -o "$(DSTUSR)" -g "$(DSTGRP)" -m "$(DSTMODE)" "$(INSTALLDIR)"
+ $(SILENT) set -x; for file in $(SRCS); do\
+ $(INSTALL) -o "$(DSTUSR)" -g "$(DSTGRP)" -m 444 "$$file" "$(INSTALLDIR)/$$file";\
+ done
+ $(INSTALL) -o "$(DSTUSR)" -g "$(DSTGRP)" -m 444 tclIndex "$(INSTALLDIR)"
+ $(SILENT) echo "$(TCL_PACKAGE_DIR)" > "$(DESTDIR)$(prefix)/var/macports/.tclpackage"
+ $(SILENT) if test -z "$(DESTDIR)" -a "$(INSTALLPKGLINK)" != "$(INSTALLDIR)"; then \
+ if test ! -L "$(INSTALLPKGLINK)"; then \
+ if test ! -e "$(TCL_PACKAGE_DIR)"; then \
+ $(INSTALL) -d -o "$(DSTUSR)" -g "$(DSTGRP)" -m "$(DSTMODE)" "$(TCL_PACKAGE_DIR)" || true; \
+ fi; \
+ if test -d "$(INSTALLPKGLINK)"; then \
+ rm -vrf "$(INSTALLPKGLINK)" || true; \
+ fi; \
+ if test ! -e "$(INSTALLPKGLINK)"; then \
+ ln -vs "$(INSTALLDIR)" "$(INSTALLPKGLINK)" || true; \
+ fi; \
+ fi; \
+ fi
Property changes on: users/cal/base-rewrite/src/macports2.0/Makefile
___________________________________________________________________
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130303/eb15ccd3/attachment.html>
More information about the macports-changes
mailing list