summaryrefslogtreecommitdiff
path: root/sysutils/lineak-xosdplugin/Makefile
blob: c6c8f2d39a1c203e5c0d259d594b00decfd712b4 (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
# Created by: Kay Lehmann <kay_lehmann@web.de>
# $FreeBSD$

PORTNAME=	lineak-xosdplugin
PORTVERSION=	0.9
PORTREVISION=	7
CATEGORIES=	sysutils deskutils
MASTER_SITES=	SF/lineak/lineak_xosdplugin/${PORTNAME}-${PORTVERSION}
DIST_SUBDIR=	lineak

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Xosd-plugin for lineakd

LICENSE=	GPLv2

LIB_DEPENDS=	xosd:${PORTSDIR}/misc/xosd \
		lineak:${PORTSDIR}/sysutils/lineakd

USE_XORG=	x11 xext xt
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_path_xosd_config_script="${TRUE}"
USE_LDCONFIG=	yes

CFLAGS+=		-fPIC
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

MAN1=		lineak_xosdplugin.1
PLIST_FILES=	lib/lineakd/plugins/xosdplugin.la \
		lib/lineakd/plugins/xosdplugin.so

post-patch:
	@${REINPLACE_CMD} -e \
		's|"-O2 $$CXXFLAGS"|"$$CXXFLAGS"| ; \
		 s|echo aout|echo elf| ; \
		 /LDFLAGS/s|-ldl||' ${WRKSRC}/configure

.include <bsd.port.mk>