diff options
author | anders <anders@FreeBSD.org> | 2005-02-26 23:55:08 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2005-02-26 23:55:08 +0800 |
commit | 5451d03b4d0ed8d180723986f675271d775a1af6 (patch) | |
tree | c064df54f3e1163387da2310c1b0785a42e70dc3 /x11-fm | |
parent | 8cc2fc72ea166a3c973818d3132487819e0a2a76 (diff) | |
download | freebsd-ports-gnome-5451d03b4d0ed8d180723986f675271d775a1af6.tar.gz freebsd-ports-gnome-5451d03b4d0ed8d180723986f675271d775a1af6.tar.zst freebsd-ports-gnome-5451d03b4d0ed8d180723986f675271d775a1af6.zip |
Add a WITH_THREADS knob/OPTION, to support threaded fltk library.
Use DOCSDIR.
PR: 68194
Diffstat (limited to 'x11-fm')
-rw-r--r-- | x11-fm/xdiskusage/Makefile | 16 | ||||
-rw-r--r-- | x11-fm/xdiskusage/pkg-plist | 4 |
2 files changed, 14 insertions, 6 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> diff --git a/x11-fm/xdiskusage/pkg-plist b/x11-fm/xdiskusage/pkg-plist index b2d2369f8a31..bda9f0e6bcb6 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%% |