Revision: 124955 https://trac.macports.org/changeset/124955 Author: jmr@macports.org Date: 2014-08-31 19:29:08 -0700 (Sun, 31 Aug 2014) Log Message: ----------- TECO: set license, use extract.mkdir, use notes, pass our compiler and flags to the makefile Modified Paths: -------------- trunk/dports/editors/TECO/Portfile Added Paths: ----------- trunk/dports/editors/TECO/files/Makefile.patch Modified: trunk/dports/editors/TECO/Portfile =================================================================== --- trunk/dports/editors/TECO/Portfile 2014-09-01 01:58:45 UTC (rev 124954) +++ trunk/dports/editors/TECO/Portfile 2014-09-01 02:29:08 UTC (rev 124955) @@ -1,10 +1,12 @@ # $Id$ PortSystem 1.0 + name TECO version 1.0 distname teco categories editors +license Permissive maintainers nomaintainer description An implementation of TECO in portable C long_description \ @@ -16,10 +18,13 @@ platforms darwin master_sites sunsite:apps/editors/tty checksums md5 b996a43a133f0d636ef3331da2374e6e -patchfiles patch-te_subs.c +extract.mkdir yes +patchfiles patch-te_subs.c Makefile.patch use_configure no -worksrcdir . build.target +build.env CC="${configure.cc}" \ + CFLAGS="${configure.cflags} ${configure.cc_archflags}" \ + LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" destroot { xinstall -m 555 -W ${worksrcpath} te ${destroot}${prefix}/bin @@ -29,8 +34,5 @@ ${destroot}${prefix}/share/doc/teco } -post-install { - ui_msg "" - ui_msg "Documentation and sample startup files for te(1) may be found" - ui_msg "in ${prefix}/share/doc/teco" -} +notes "Documentation and sample startup files for te(1) may be found\ +in ${prefix}/share/doc/teco" Added: trunk/dports/editors/TECO/files/Makefile.patch =================================================================== --- trunk/dports/editors/TECO/files/Makefile.patch (rev 0) +++ trunk/dports/editors/TECO/files/Makefile.patch 2014-09-01 02:29:08 UTC (rev 124955) @@ -0,0 +1,23 @@ +--- Makefile.orig 1994-08-21 00:23:46.000000000 +1000 ++++ Makefile 2014-09-01 12:12:12.000000000 +1000 +@@ -1,15 +1,17 @@ + # + # TECO for ANSI/POSIX UNIX + # +-CFLAGS = -O +-CC = gcc -ansi -D_POSIX_SOURCE ++CFLAGS ?= -O ++CFLAGS += -ansi ++CC ?= gcc ++CPPFLAGS += -D_POSIX_SOURCE + + OBJS = te_data.o te_utils.o te_subs.o te_main.o te_rdcmd.o te_exec0.o \ + te_exec1.o te_exec2.o te_srch.o te_chario.o te_window.o \ + te_fxstub.o + + te: $(OBJS) +- $(CC) -o te $(OBJS) -ltermcap ++ $(CC) $(LDFLAGS) -o te $(OBJS) -ltermcap + + te_chario.o: te_defs.h te_chario.c + te_data.o: te_defs.h te_data.c
participants (1)
-
jmr@macports.org