diff options
author | Anders Nordby <anders@FreeBSD.org> | 2005-02-26 15:55:08 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2005-02-26 15:55:08 +0000 |
commit | c6cd676e7e1d021d3282f6e14029a496d1df2d5c (patch) | |
tree | fef76c584d65c2dceb584112c99392cb81957106 /x11-fm/xdiskusage/Makefile | |
parent | 5e867622ea648048fd769aa3dcfa9218d3124e80 (diff) | |
download | ports-c6cd676e7e1d021d3282f6e14029a496d1df2d5c.tar.gz ports-c6cd676e7e1d021d3282f6e14029a496d1df2d5c.zip |
Notes
Diffstat (limited to 'x11-fm/xdiskusage/Makefile')
-rw-r--r-- | x11-fm/xdiskusage/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/x11-fm/xdiskusage/Makefile b/x11-fm/xdiskusage/Makefile index 983967ebeee8..489f863560e3 100644 --- a/x11-fm/xdiskusage/Makefile +++ b/x11-fm/xdiskusage/Makefile @@ -19,6 +19,14 @@ LIB_DEPENDS= fltk.1:${PORTSDIR}/x11-toolkits/fltk MAN1= xdiskusage.1 USE_GMAKE= yes USE_X_PREFIX= yes +OPTIONS= THREADS "Threads support, necessary with threaded fltk" off + +.include <bsd.port.pre.mk> + +.if defined(WITH_THREADS) +CXXFLAGS+= ${PTHREAD_CFLAGS} +LDFLAGS+= ${PTHREAD_LIBS} +.endif do-build: .for i in panels xdiskusage @@ -27,14 +35,14 @@ do-build: .endfor ${CXX} ${CXXFLAGS} -L${X11BASE}/lib -o \ ${WRKSRC}/xdiskusage ${WRKSRC}/panels.o \ - ${WRKSRC}/xdiskusage.o -lfltk -lm -lXext -lX11 + ${WRKSRC}/xdiskusage.o -lfltk -lm -lXext -lX11 ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/xdiskusage ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/xdiskusage.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/xdiskusage - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xdiskusage + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |