1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/devel/picprog/files/patch-ab
Steve Price f7241fe884 * Modified patches to support install macros
* Added WWW: line into pkg/DESCR

PR:		15536
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
1999-12-25 01:44:43 +00:00

32 lines
768 B
Plaintext

--- Makefile.orig Mon Jun 2 06:37:54 1997
+++ Makefile Sun Oct 31 09:02:37 1999
@@ -28,9 +28,10 @@
VERSION=1.0
-CXX=g++
-CXXFLAGS=-O2 -Wall -Wmissing-prototypes
-LDFLAGS=
+CXX?=g++
+CXXFLAGS?=-O2 -Wall -Wmissing-prototypes
+CXXFLAGS+=-I$(PREFIX)/include
+LDFLAGS=-L$(PREFIX)/lib -lgnugetopt
OBJS=main.o picport.o hexfile.o program.o stringc.o
PROG=picprog
@@ -53,12 +54,5 @@
$(PROG)-$(VERSION)/*.{html,gif,diff,1,h,cc}
install: all
- install -c -o 0 -g 0 -m 755 -s $(PROG) /usr/local/bin/
- install -c -o 0 -g 0 -m 644 *.1 /usr/local/man/man1/
-
-#
-# include a dependency file if one exists
-#
-ifeq (.depend,$(wildcard .depend))
-include .depend
-endif
+ ${BSD_INSTALL_PROGRAM} $(PROG) $(PREFIX)/bin
+ ${BSD_INSTALL_MAN} picprog.1 $(PREFIX)/man/man1