aboutsummaryrefslogtreecommitdiff
path: root/misc/stickynotes_applet/Makefile
blob: e4a1722cad08d0b0d355e4be006e5529625ad6c4 (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
# New ports collection makefile for:	stickynotes_applet
# Date created:				17 February 2003
# Whom:					Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	stickynotes_applet
PORTVERSION=	1.0.11
CATEGORIES=	misc gnome
MASTER_SITES=	http://loban.caltech.edu/stickynotes/packages/

MAINTAINER=	marcus@FreeBSD.org
COMMENT=	Applet that adds sticky notes to your desktop

LIB_DEPENDS=	panel-applet-2.0:${PORTSDIR}/x11/gnomepanel

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes
USE_GNOME=	gnomeprefix gnomehack
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET=	--target=${MACHINE_ARCH}-unknown-freebsd${OSREL}

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

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for f in INSTALL COPYING NEWS AUTHORS THANKS README TODO ChangeLog
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>