From 5451d03b4d0ed8d180723986f675271d775a1af6 Mon Sep 17 00:00:00 2001 From: anders Date: Sat, 26 Feb 2005 15:55:08 +0000 Subject: Add a WITH_THREADS knob/OPTION, to support threaded fltk library. Use DOCSDIR. PR: 68194 --- x11-fm/xdiskusage/Makefile | 16 ++++++++++++---- x11-fm/xdiskusage/pkg-plist | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) (limited to 'x11-fm/xdiskusage') diff --git a/x11-fm/xdiskusage/Makefile b/x11-fm/xdiskusage/Makefile index 983967ebeee..489f863560e 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 + +.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 +.include diff --git a/x11-fm/xdiskusage/pkg-plist b/x11-fm/xdiskusage/pkg-plist index b2d2369f8a3..bda9f0e6bcb 100644 --- a/x11-fm/xdiskusage/pkg-plist +++ b/x11-fm/xdiskusage/pkg-plist @@ -1,3 +1,3 @@ bin/xdiskusage -share/doc/xdiskusage/README -@dirrm share/doc/xdiskusage +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit