aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bbsmount/Makefile
blob: 8d2b9ce2e4275652989324c12734a10fdb27e446 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# New ports collection makefile for:	bbsmount
# Date created:				11 October 2003
# Whom:				Eric J. Christeson <echriste@702com.net>
#
# $FreeBSD$
#

PORTNAME=	bbsmount
PORTVERSION=	0.3.0p1
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://phoenix.inf.upol.cz/~jezberam/bbsmount/files/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/p/pre/}

MAINTAINER=	echriste@702com.net
COMMENT=	Graphical disk mounter for the Blackbox slit

USE_X_PREFIX=	yes
WRKSRC=		${WRKDIR}/${DISTNAME}
USE_GMAKE=	yes
USE_XLIB=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
	${WRKSRC}/configure

post-install:
	@${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

	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.mk>