diff options
author | leeym <leeym@FreeBSD.org> | 2004-10-13 02:30:32 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-10-13 02:30:32 +0800 |
commit | 421cf51dad85de0db7aa0e14a693ad10ce0c1d23 (patch) | |
tree | dbf77dd98ab74c6204974ff4fa22eca457326d43 /sysutils/bbsmount | |
parent | 80c9917ad2f7dfb8663b2d1dc91cd1be81650226 (diff) | |
download | freebsd-ports-gnome-421cf51dad85de0db7aa0e14a693ad10ce0c1d23.tar.gz freebsd-ports-gnome-421cf51dad85de0db7aa0e14a693ad10ce0c1d23.tar.zst freebsd-ports-gnome-421cf51dad85de0db7aa0e14a693ad10ce0c1d23.zip |
- add USE_GCC=2.95 and unbreak this port
- utilize PORTDOCS and DATADIR
PR: 71852
Submitted by: leeym
Approved by: maintainer timeout
Diffstat (limited to 'sysutils/bbsmount')
-rw-r--r-- | sysutils/bbsmount/Makefile | 24 | ||||
-rw-r--r-- | sysutils/bbsmount/pkg-plist | 33 |
2 files changed, 20 insertions, 37 deletions
diff --git a/sysutils/bbsmount/Makefile b/sysutils/bbsmount/Makefile index 80551c4c93a6..e33281e7a09f 100644 --- a/sysutils/bbsmount/Makefile +++ b/sysutils/bbsmount/Makefile @@ -19,30 +19,20 @@ WRKSRC= ${WRKDIR}/${DISTNAME} USE_XLIB= yes USE_REINPLACE= yes GNU_CONFIGURE= yes - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile with FreeBSD >= 5.x" -.endif - -post-patch: - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ - ${WRKSRC}/configure +USE_GCC= 2.95 +PORTDOCS= README BUGS NEWS AUTHORS ChangeLog post-install: +.if !defined(NOPORTDOCS) @${ECHO_MSG} "===> Installing documentation" @${MKDIR} ${DOCSDIR} - @${INSTALL} ${WRKSRC}/data/README.bbsmount ${DOCSDIR} - -.for a in README BUGS NEWS AUTHORS ChangeLog - @${INSTALL} ${WRKSRC}/${a} ${DOCSDIR} -.endfor - + ${INSTALL} ${WRKSRC}/data/README.bbsmount ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL} ${PORTDOCS} ${DOCSDIR} +.endif if [ ! -e ${PREFIX}/share/bbtools/bbsmount.bb ]; then \ ${CP} -p ${WRKSRC}/data/bbsmount.bb \ ${PREFIX}/share/bbtools/bbsmount.bb; \ fi @${INSTALL} ${WRKSRC}/data/bbsmount.bb ${PREFIX}/share/bbtools/bbsmount.bb-sample -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/bbsmount/pkg-plist b/sysutils/bbsmount/pkg-plist index 12d5c02c553d..42144aefae3d 100644 --- a/sysutils/bbsmount/pkg-plist +++ b/sysutils/bbsmount/pkg-plist @@ -5,24 +5,17 @@ share/bbtools/bbsmount.bb-sample share/bbtools/bbsmount.nobb share/bbtools/bbsmount.style share/bbtools/README.bbsmount -share/bbsmount/examples/bbsmount.bb.ex -share/bbsmount/images/notfound.xpm -share/bbsmount/images/mountedcd.xpm -share/bbsmount/images/mounteddisk.xpm -share/bbsmount/images/mounted.xpm -share/bbsmount/images/mountedzip.xpm -share/bbsmount/images/unmountedcd.xpm -share/bbsmount/images/unmounteddisk.xpm -share/bbsmount/images/unmounted.xpm -share/bbsmount/images/unmountedzip.xpm -%%PORTDOCS%%%%DOCSDIR%%/BUGS -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README.bbsmount -%%PORTDOCS%%%%DOCSDIR%%/AUTHORS -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%DATADIR%%/examples/bbsmount.bb.ex +%%DATADIR%%/images/notfound.xpm +%%DATADIR%%/images/mountedcd.xpm +%%DATADIR%%/images/mounteddisk.xpm +%%DATADIR%%/images/mounted.xpm +%%DATADIR%%/images/mountedzip.xpm +%%DATADIR%%/images/unmountedcd.xpm +%%DATADIR%%/images/unmounteddisk.xpm +%%DATADIR%%/images/unmounted.xpm +%%DATADIR%%/images/unmountedzip.xpm @unexec rmdir %D/share/bbtools 2>/dev/null || true -@unexec rmdir %D/share/bbsmount/examples 2>/dev/null || true -@unexec rmdir %D/share/bbsmount/images 2>/dev/null || true -@unexec rmdir %D/share/bbsmount 2>/dev/null || true +@unexec rmdir %D/%%DATADIR%%/examples 2>/dev/null || true +@unexec rmdir %D/%%DATADIR%%/images 2>/dev/null || true +@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true |