diff options
author | kris <kris@FreeBSD.org> | 2005-10-16 13:12:46 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2005-10-16 13:12:46 +0800 |
commit | e0096e3970e7c6396822f9942d55ae1be74d3d8b (patch) | |
tree | 575cb76a62b5124d165d59591d1a86ced890f3d4 | |
parent | 53b5eec0d0e7c279f8d5fa1c6dffc4375f3dfce8 (diff) | |
download | freebsd-ports-gnome-e0096e3970e7c6396822f9942d55ae1be74d3d8b.tar.gz freebsd-ports-gnome-e0096e3970e7c6396822f9942d55ae1be74d3d8b.tar.zst freebsd-ports-gnome-e0096e3970e7c6396822f9942d55ae1be74d3d8b.zip |
Respect CC, CFLAGS and PREFIX
-rw-r--r-- | misc/nsf/Makefile | 3 | ||||
-rw-r--r-- | misc/nsf/files/patch-Makefile | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/misc/nsf/Makefile b/misc/nsf/Makefile index 992f43251618..15b4be199103 100644 --- a/misc/nsf/Makefile +++ b/misc/nsf/Makefile @@ -20,7 +20,8 @@ MANCOMPRESSED= yes PLIST_FILES= bin/nsf ALL_TARGET= -post-install: +do-install: + ${INSTALL_PROGRAM} ${WRKDIR}/nsf ${PREFIX}/bin ${INSTALL_MAN} ${WRKDIR}/${MAN1} ${PREFIX}/man/man1/ ${GZIP_CMD} ${PREFIX}/man/man1/${MAN1} diff --git a/misc/nsf/files/patch-Makefile b/misc/nsf/files/patch-Makefile new file mode 100644 index 000000000000..6965aea57a94 --- /dev/null +++ b/misc/nsf/files/patch-Makefile @@ -0,0 +1,16 @@ +--- Makefile.orig Sun Oct 16 01:08:35 2005 ++++ Makefile Sun Oct 16 01:08:50 2005 +@@ -1,10 +1,11 @@ +-CFLAGS = -O #-DHPUX ++CFLAGS ?= -O #-DHPUX ++CC ?= cc + LIBS = -lncurses #if HP-UX, -lcurses + OBJS = nsf.o iloop.o + EXE = nsf + LOCAL_BIN = /usr/local/bin + $(EXE): $(OBJS) +- cc $(CFLAGS) -o $@ $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + $(OBJS): nsf.h + install: $(EXE) + strip $(EXE) |