diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-08-18 06:31:27 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2006-08-18 06:31:27 +0000 |
commit | 98ddf4a993739dc9a814fdbdb56b136935b1f717 (patch) | |
tree | d774022f4cf4b8fed93a9c4402b19d4cb159fafc /misc/gnu-watch/Makefile | |
parent | 9f83a82e395050b44d4d7e0b2e1e66da323569f5 (diff) | |
download | ports-98ddf4a993739dc9a814fdbdb56b136935b1f717.tar.gz ports-98ddf4a993739dc9a814fdbdb56b136935b1f717.zip |
Notes
Diffstat (limited to 'misc/gnu-watch/Makefile')
-rw-r--r-- | misc/gnu-watch/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/misc/gnu-watch/Makefile b/misc/gnu-watch/Makefile index ee70ff9f0ea2..ef45ccc5b100 100644 --- a/misc/gnu-watch/Makefile +++ b/misc/gnu-watch/Makefile @@ -6,7 +6,7 @@ # PORTNAME= watch -DISTVERSION= 3.2.5 +DISTVERSION= 3.2.7 CATEGORIES= misc MASTER_SITES= http://procps.sourceforge.net/ \ http://critical.ch/distfiles/ \ @@ -20,25 +20,23 @@ COMMENT= GNU watch command USE_GETOPT_LONG=yes USE_GCC= 3.4+ -MAN1= gnu-watch.1 +LDFLAGS+= -lncurses +MAN1= gnu-watch.1 PLIST_FILES= bin/${UNIQUENAME} -CFLAGS+= -fno-common -ffast-math -D_GNU_SOURCE -O2 - .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 -post-patch: - @${PATCH} -s ${WRKSRC}/watch.c ${FILESDIR}/watch.c.patch +EXTRA_PATCHES+= ${FILESDIR}/extrapatch-watch.c .endif do-build: - ${CC} ${CFLAGS} ${LDFLAGS} -s -c ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${UNIQUENAME}.o - ${CC} ${CFLAGS} ${LDFLAGS} -s -lncurses ${WRKSRC}/${UNIQUENAME}.o -o ${WRKSRC}/${UNIQUENAME} + ${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.c \ + -o ${WRKSRC}/${UNIQUENAME} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${UNIQUENAME} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/watch.1 ${MANPREFIX}/man/man1/gnu-watch.1 + ${INSTALL_MAN} ${WRKSRC}/watch.1 ${MANPREFIX}/man/man1/${UNIQUENAME}.1 .include <bsd.port.post.mk> |