mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Fix implicit declaration of functions that prevented building with Xcode 12 and later. Closes: https://trac.macports.org/ticket/62861 Add a Makefile and use it to build and install. Use the makefile 1.0 portgroup to use the right compiler, cflags, ldflags, and arch flags, and to add a universal variant. Since this changes how it builds, increase the revision. Modernize checksums. Indicate the license. Switch the homepage to something that exists.
18 lines
435 B
Makefile
18 lines
435 B
Makefile
PREFIX ?= /usr/local
|
|
DESTDIR ?=
|
|
|
|
all: ttcp
|
|
|
|
ttcp: ttcp.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
|
|
|
install: ttcp ttcp.1 README
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
install -m 755 ttcp $(DESTDIR)$(PREFIX)/bin
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man1
|
|
install -m 644 ttcp.1 $(DESTDIR)$(PREFIX)/share/man/man1
|
|
install -d $(DESTDIR)$(PREFIX)/share/doc/ttcp
|
|
install -m 644 README $(DESTDIR)$(PREFIX)/share/doc/ttcp
|
|
|
|
.PHONY: all install
|